RIP基本实验_rip
实验拓扑图:
实验要求:
一、配置IP地址:
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转发,试
Ping 各端口(S0/0与S0/1)
6。将端口设置为被动后,立即查看R1路由表,为什
么负载均衡路由还存在
7。在R2打开debug ip rip 观察1.1.1.0网络地址向
不向外发送
   解释R3如何ping通R1的s0/0
配置r1
Router(config)#int s0/1
Router(config-if)#no sh
Router(config-if)#ip add 192.168.21.1 255.255.255.0
Router(config)#int s0/0
Router(config-if)#no sh
Router(config-if)#ip add 1.1.1.1 255.255.255.0
Router(config)#router rip
Router(config-router)#net 1.0.0.0
Router(config-router)#net 192.168.21.0
配置r2
Router(config)#int s0/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)#int f1/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 rip
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 rip
Router(config-router)#passiv
Router(config-router)#passive-interface s 0/1
Router(config-router)#passive-interface s 0/0
Router(config-router)#neighbor 1.1.1.1
Router(config-router)#exit
配置r3
 
Router(config)#int f0/0
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
R1上打开DEBUG ip icmp查看数据包的 负载均衡
过程
Router#debug ip icmp
ICMP packet debugging is on
Router#ping 192.168.32.3
Type escape sequence to abort.
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
 
6。将端口设置为被动后,立即查看R1路由表,为什
么负载均衡路由还存在
因为rip的更新周期30s没有到
7  解释R3如何ping通R1的s0/0
因为r1路由器有两个serial口  通过s0/1 ping通的s0/0