RIP V2协议下对指定路由发送路由更新信息
实验拓朴如下:
实验目标:
要求在R1和R3上能收到R0的更新,而R2却收不到。
只要在R0上进行如下的配置就可以了。下面请看在R0上的配置:
Router#conf t
Router(config)#int f0/0
Router(config-if)#ip add 10.1.1.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#int loo 0
Router(config-if)#ip add 1.1.1.1 255.255.255.0
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#ver 2
Router(config-router)#no auto
Router(config-router)#netw 10.1.1.0
Router(config-router)#netw 1.1.1.0
Router(config-router)#passive-interface f0/0
Router(config-router)#neighbor 10.1.1.2
Router(config-router)#neighbor 10.1.1.4
在R1,R2和R3上的配置只要是接口IP地址的配置,然后进行RIP 的宣告就可以了。
然后在R1,R2,R3上用show ip route 命令查看路由表可以发现R1和R3上有1.1.1.0的路由。而R2上没有。就表明实验成功了。
转载于:https://blog.51cto.com/hl520/797873