EIGRP路由汇总和OSPF路由汇总配置-Cisco频道-中国IT实验室

来源:百度文库 编辑:神马文学网 时间:2024/10/01 08:13:44

EIGRP配置:

core#configure terminalcore(config)#router eigrp f10core(config-router)#network 192.168.10.0core(config-router)#network 10.0.0.0core(config-router)#no auto-summarycore(config-router)#interface ethernet 0core(config-if)#ip summary-address eigrp 10 192.168.10.64 255.255.255.224

  由于EIGRP在有类边界上会自动汇总,因此必须要使用no auto-summary命令。

  OSPF配置:

core#configure terminalcore(config)#router ospf 1core (config-router)#network 192.168.10.64 0.0.0.3 area 1core(config-router)#network 192.168.10.68 0.0.0.3 area 1core(config-router)#network 10.10.10.0 0.0.0.255 area 0core(config-router)#area 1 range 192.168.10.64 255.255.255.224

  由于OSPF在默信时并不去汇总任何边界,因此不需要配置no auto-summary命令。