rip 路由信息協議 距離矢量路由協議 動態路由協議 Cisco

一:按rip默認的version 1配置:

1:拓撲結構圖

2:配置代碼

R1:
enable
config terminal
host r1
no ip domain-lookup
int f0/0
ip address 10.0.1.2 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.2.1 255.255.255.0
no shut
exit
router rip  //rip協議,version 1 的配置
version 1
network 10.0.1.0 
network 192.168.2.0 
exit

R2:
enable
config terminal
host r2
no ip domain-lookup
int f0/0
ip address 192.168.2.2 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.3.1 255.255.255.0
no shut
exit
router rip  //rip協議,version 1 的配置
version 1
network 192.168.2.0 
network 192.168.3.0 
exit

R3:
enable
config terminal
host r3
no ip domain-lookup
int f0/0
ip address 192.168.3.2 255.255.255.0
no shut
exit
int f0/1
ip address 10.0.2.2 255.255.255.0
no shut
exit
router rip  //rip協議,version 1 的配置
version 1
network 192.168.3.0 
network 10.0.2.0 
Exit

3:配置結果與截圖

R1#show ip route

R2#show ip route

R3#show ip route

PC1:

PC2:

分析過程和PC1的完全一樣

 

二:按rip默認的version 2配置:

1:拓撲結構圖

2:配置代碼

R1:
enable
config terminal
host r1
no ip domain-lookup
int f0/0
ip address 10.0.1.2 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.2.1 255.255.255.0
no shut
exit
router rip  //rip 協議 version 2 的配置
version 2
no auto-summary
network 10.0.1.0 
network 192.168.2.0 
exit

R2:
enable
config terminal
host r2
no ip domain-lookup
int f0/0
ip address 192.168.2.2 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.3.1 255.255.255.0
no shut
exit
router rip  //rip 協議 version 2 的配置
version 2
no auto-summary
network 192.168.2.0 
network 192.168.3.0 
exit

R3:
enable
config terminal
host r3
no ip domain-lookup
int f0/0
ip address 192.168.3.2 255.255.255.0
no shut
exit
int f0/1
ip address 10.0.2.2  255.255.255.0
no shut
exit
router rip  //rip 協議 version 2 的配置
version 2
no auto-summary
network 192.168.3.0 
network 10.0.2.0 
Exit

3:配置結果與截圖

R1#show ip route

R2#show ip route

R3#show ip route

PC1:

PC2:過程同PC1

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