CCNA学习笔记28--RIPv2单播更新(实验)

实验目的:掌握如何实验RIP的单播更新
实验拓扑:

实验步骤
1.配置基本信息
2.配置端口ip
3.配置RIPv2,使全网互通
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 11.0.0.0
R1(config-router)#network 12.0.0.0
 
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 12.0.0.0
R2(config-router)#network 22.0.0.0
R2(config-router)#network 23.0.0.0
 
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 33.0.0.0
R3(config-router)#network 23.0.0.0
4.检查是否全网互通
R1#show ip route
R        22.1.1.0 [120/1] via 12.1.1.2, 00:00:03, Ethernet0/0
      23.0.0.0/24 is subnetted, 1 subnets
R        23.1.1.0 [120/1] via 12.1.1.2, 00:00:03, Ethernet0/0
      33.0.0.0/24 is subnetted, 1 subnets
R        33.1.1.0 [120/2] via 12.1.1.2, 00:00:03, Ethernet0/0
R1#ping 22.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 22.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/5/5 ms
R1#ping 33.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
5.在R2上与R1相连的接口给passive掉
R2(config)#router rip
R2(config-router)#passive-interface ethernet 0/0
6.分别在R1和R2上查看路由表(注意,查看路由表之前,需要清空之前路由表)
R1#clear ip route *
R1#show ip route
C        11.1.1.0/24 is directly connected, Loopback0
L        11.1.1.1/32 is directly connected, Loopback0
C        12.1.1.0/24 is directly connected, Ethernet0/0
L        12.1.1.1/32 is directly connected, Ethernet0/0
R2#show ip route  
R        11.1.1.0 [120/1] via 12.1.1.1, 00:00:08, Ethernet0/0
R        33.1.1.0 [120/1] via 23.1.1.3, 00:00:04, Ethernet0/1
//发现R1上已经学不到R2和R3上的路由了,这是因为R2连接R1的端口被passive掉了,R2不再给R1发送更新,R1上自然学不到R2的路由。
7.使用单播指邻居的方式使R1学得到R2R3的路由
R1(config)#router rip
R1(config-router)#neighbor 12.1.1.2
R2(config)#router rip
R2(config-router)#neighbor 12.1.1.1
//R1和R2互相指对方为邻居。以单播的方式发送路由更新。
8.检查
R1#show ip route
R        22.1.1.0 [120/1] via 12.1.1.2, 00:00:12, Ethernet0/0
      23.0.0.0/24 is subnetted, 1 subnets
R        23.1.1.0 [120/1] via 12.1.1.2, 00:00:12, Ethernet0/0
      33.0.0.0/24 is subnetted, 1 subnets
R        33.1.1.0 [120/2] via 12.1.1.2, 00:00:12, Ethernet0/0
 

posted on 2019-06-03 20:10  Erica程  阅读(279)  评论(0)    收藏  举报

导航