一、环境
GNS3、secureCRT
二、RIP v1部署
RIP是应用层协议,基于UDP端口520
将拓扑搭建成如图所示,并为其每个接口设置ip地址,每个路由器创建换回接口如图所示。操作可参见之前博文。
部署RIP协议
R1配置命令
R1(config)#router rip
R1(config-router)#network 12.0.0.0
R1(config-router)#network 1.0.0.0
R1(config-router)#network 22.0.0.0
R2配置命令
R2(config)#router rip
R2(config-router)#network 12.0.0.0
R2(config-router)#network 2.0.0.0
R2(config-router)#network 32.0.0.0
R3配置命令
R3(config)#router rip
R3(config-router)#network 3.0.0.0
R3(config-router)#network 32.0.0.0
R3(config-router)#network 22.0.0.0
每台路由器都将与自己直连的网段添加进去,由于RIP v1无法识别子网掩码,则直接通过网络数字的大小进行判断,无需输入子网掩码。配置完成后进行测试
测试R1
R1#ping 2.2.2.2 source 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/40/60 ms
R1#ping 3.3.3.3 source 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/28/32 ms
R1#ping 32.0.0.2