1.R1:s0/0---R2:s0/0--->1.1.1.x
2.R1:s0/1---R2:s0/01--->192.168.21.x
3.R2:f1/0---R3:f0/0 --->192.168.32.x
二、启动RIP
1。宣告所有网络,测连通
2。R2RT表里没有RIP学到路由
3。R1R2查看,RIP更新过程(查看路由表里的负载均
4。R1上打开DEBUG ip icmp查看数据包的 负载均衡
5。不关闭R2端口,让R3数据包通过R2的S0/1转发,试
6。将端口设置为被动后,立即查看R1路由表,为什
7。在R2打开debug ip rip 观察1.1.1.0网络地址向
解释R3如何ping通R1的s0/0
Router(config-if)#no sh
Router(config-if)#no sh
Router(config-router)#net 1.0.0.0
Router(config-router)#net 192.168.21.0
Router(config-if)#no sh
Router(config-if)#
Router(config-if)#
Router(config-if)#ip add 1
00:03:57: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
Router(config-if)#ip add 1.
00:03:58: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Router(config-if)#ip add 1.1.1.2 255.255.255.0
Router(config-if)#int s0/1
Router(config-if)#no sh
Router(config-if)#ip add 192.16
00:04:17: %LINK-3-UPDOWN: Interface Serial0/1, changed state to up
Router(config-if)#ip add 192.168.21
00:04:18: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up
Router(config-if)#ip add 192.168.21.2 255.255.255.0
Router(config-if)#no sh
Router(config-if)#ip add 192
00:05:19: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up
00:05:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
Router(config-if)#ip add 192.168.32.2 255.255.255.0
Router(config-router)#net 1.0.0.0
Router(config-router)#net 192.168.21.0
Router(config-router)#net 192.168.32.0
Router(config-router)#passiv
Router(config-router)#passive-interface s 0/1
Router(config-router)#passive-interface s 0/0
Router(config-router)#exit
Router(config-if)#no sh
Router(config-if)#ip add 192.1
00:06:01: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
00:06:02: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#ip add 192.168.32.3 255.255.255.0
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#net 192.168.32.0
ICMP packet debugging is on
Router#ping 192.168.32.3
Sending 5, 100-byte ICMP Echos to 192.168.32.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 68/84/92 ms
Router#
00:11:22: ICMP: echo reply rcvd, src 192.168.32.3, dst 1.1.1.1
00:11:22: ICMP: echo reply rcvd, src 192.168.32.3, dst 192.168.21.1
00:11:22: ICMP: echo reply rcvd, src 192.168.32.3, dst 1.1.1.1
00:11:22: ICMP: echo reply rcvd, src 192.168.32.3, dst 192.168.21.1
00:11:23: ICMP: echo reply rcvd, src 192.168.32.3, dst 1.1.1.1