RIP配置實戰

 

 

 

 

 

R1:
en
conf t
no ip domain-lo
ser pass
enab s cisco123
line con 0
exec-t 0 0
line vty 0 4
pass cisco123
login
exit
access 1 per 172.16.0.0 0.0.7.255              \\定義Acl
int lo0
ip add 1.1.1.1 255.255.255.0
int lo1
ip add 172.16.1.1 255.255.255.0
int lo2
ip add 172.16.2.1 255.255.255.0
int lo3
ip add 172.16.3.1 255.255.255.0
int lo4
ip add 172.16.4.1 255.255.255.0
int lo5
ip add 172.16.5.1 255.255.255.0
int f0/0
ip add 12.12.12.1 255.255.255.0
ip sum rip 172.16.0.0 255.255.248.0                \\將地址彙總到RIP中.
no sh
int f1/0
ip add 10.1.13.1 255.255.255.0
ip sum rip 172.16.0.0 255.255.248.0                \\將地址彙總到RIP中.
no sh
exit
router rip
ver 2
no au
net 1.1.1.0
net 12.12.12.0
net 10.1.13.0
net 172.16.0.0
offset-list 1 out 5                   \\定義172網段的度量值爲6並從所有接口宣告出去(需求四)
end
wr

R2:
en
conf t
no ip domain-lo
ser pass
enab s cisco123
line con 0
exec-t 0 0
line vty 0 4
pass cisco123
login
exit
int lo0
ip add 2.2.2.2 255.255.255.0
int f0/0
ip add 12.12.12.2 255.255.255.0
no sh
int f1/0
ip add 10.1.23.1 255.255.255.0
passive-int f1/0                              \\關閉F1/0接口的RIP更新
neighbor 10.1.13.2                            \\配置與13.2建立更新   (需求五的第一種方法)
no sh
exit
router rip
ver 2
no au
net 2.2.2.0
net 12.12.12.0
net 10.1.23.0
end
wr

R3:
en
conf t
no ip domain-lo
ser pass
enab s cisco123
line con 0
exec-t 0 0
line vty 0 4
pass cisco123
login
exit
int lo0
ip add 3.3.3.3 255.255.255.0
int f1/0
ip add 10.1.13.2 255.255.255.0
no sh
int f0/0
ip add 10.1.23.2 255.255.255.0
no sh
exit
router rip
ver 2
no au
net 3.3.3.0
net 10.1.13.0
net 10.1.23.0
passive-int f1/0                              \\關閉F1/0接口的RIP更新
neighbor 10.1.13.1                             \\配置與13.1建立更新   (需求五的第一種方法)
end
wr

需求六:
R1:
en
conf t
router rip
no net 172.16.0.0
exit
ip route 172.16.0.0 255.255.248.0 lo1          \\配置靜態路由
router rip                
redist sta me 1                                 \\將靜態路由以1的度量值灌輸到rip
end
wr

需求七:
R2:
en
conf t
router rip
maximum-paths 1                                  \\指定負載均衡路由數量爲1
end
wr

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章