EricaCheng

CCNA学习笔记27--在接口禁止运行RIP(即配置passive端口)(实验)

实验目的:掌握passive-interface命令在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.在R1连接R2的ethernet 0/0口禁止运行RIP
R1(config)#router rip
R1(config-router)#passive-interface ethernet 0/0
//passive端口,就是不再发送日rip更新消息,但是会接收rip消息
6.在R2上查看路由表,查看做完passive接口之后的效果
R2#clear ip route *       //清空路由表,加快RIP收敛
R2#show ip route
R        33.1.1.0 [120/1] via 23.1.1.3, 00:00:04, Ethernet0/1
//发现R2上已经学习不到R1的路由信息
R1#clear ip route *
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上依旧能学到R2 R3上的路由消息
总结:在RIP协议中,使用passive-interface在某个端口禁掉RIP之后,知识不发送RIP更新,但是能正常学习RIP的更新

分类:

技术点:

相关文章: