当网络中存在不连续子网的时候,EIGRP的自动汇总会出现问题。
R0:
 
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface Loopback1
 ip address 12.1.1.1 255.255.255.0
!
interface Serial1/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/1
 ip address 10.1.1.1 255.255.255.252
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router eigrp 1
 network 10.1.1.0 0.0.0.255
 network 12.1.1.0 0.0.0.255
 auto-summary
!
 
R1:
interface Serial1/0
 ip address 10.1.1.2 255.255.255.252
 serial restart-delay 0
!         
interface Serial1/1
 ip address 10.1.1.5 255.255.255.252
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router eigrp 1
 network 10.1.1.0 0.0.0.255
 auto-summary
!
 
R2
interface Loopback1
 ip address 12.1.2.1 255.255.255.0
!
interface Serial1/0
 ip address 10.1.1.6 255.255.255.252
 serial restart-delay 0
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router eigrp 1
 network 10.1.1.0 0.0.0.255
 network 12.1.2.0 0.0.0.255
 auto-summary
!   
 
这时,R0会把12.1.1.1自动汇总成12.0.0.0
R2会把12.1.2.1自动汇总成12.0.0.0
R1的路由表:
R1会认为,去往12.0.0.0.0有两条路径,默认会负载均衡。
 
在R0、R2上面关闭自动汇总,no auto-summary后,查看R1路由表
 
再次ping 12.1.1.1
 
小结:eigrp会默认开启自动汇总,当网络中存在不连续子网时,路由器会认为负载均衡,这时要对网络重新编址或者关闭自动汇总。