一:按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