通过使用路由汇总来减少路由表的大小,增加稳定性

[ 1570 查看 / 0 回复 ]

通过使用路由汇总来减少路由表的大小,增加稳定性

Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Router1(config)#interface Serial0/0.2
Router1(config-subif)#ip summary-address rip 172.25.0.0 255.255.0.0
Router1(config-subif)#exit
Router1(config)#end
Router1#

缺省情况下RIP 会自动对路由条目汇总为无类网络路由,使用下面方法关闭

Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Router1(config)#router rip
Router1(config-router)#no auto-summary
Router1(config-router)#exit
Router1(config)#end
Router1#

注释 只要配置的汇总路由中的有一条子网路由是存在的,路由器就会继续宣告此条汇总路由
分享 转发
TOP