EIGRP配置:
core#configure terminal
core(config)#router eigrp f10
core(config-router)#network 192.168.10.0
core(config-router)#network 10.0.0.0
core(config-router)#no auto-summary
core(config-router)#interface ethernet 0
core(config-if)#ip summary-address eigrp 10 192.168.10.64 255.255.255.224 |
由于EIGRP在有类边界上会自动汇总,因此必须要使用no auto-summary命令。
OSPF配置:
core#configure terminal
core(config)#router ospf 1
core (config-router)#network 192.168.10.64 0.0.0.3 area 1
core(config-router)#network 192.168.10.68 0.0.0.3 area 1
core(config-router)#network 10.10.10.0 0.0.0.255 area 0
core(config-router)#area 1 range 192.168.10.64 255.255.255.224 |
由于OSPF在默信时并不去汇总任何边界,因此不需要配置no auto-summary命令。
|