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