R1:
interface Loopback0
ip address 172.16.1.1 255.255.255.0
!
interface Loopback2
ip address 172.16.2.1 255.255.255.0
!
interface Serial0/0
ip address 45.1.1.4 255.255.255.0
ip summary-address eigrp 10 172.16.0.0 255.255.0.0 5 <<--这里有个5,是默认的值
serial restart-delay 0
!
router eigrp 10
network 0.0.0.0
no auto-summary
R5:
interface Serial0/0
ip address 45.1.1.5 255.255.255.0
serial restart-delay 0
!
router eigrp 10
network 0.0.0.0
auto-summary
R1:
!
interface Serial0/0
ip address 12.1.1.1 255.255.255.0
serial restart-delay 0
!
router ospf 10
log-adjacency-changes
redistribute static metric 100 subnets network 0.0.0.0 255.255.255.255 area 0
!
ip route 172.16.0.0 255.255.0.0 Serial0/0
R2:
interface Loopback0
ip address 172.16.1.1 255.255.255.0
!
interface Loopback1
ip address 172.16.2.1 255.255.255.0
!
interface Serial0/0
ip address 12.1.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
ip address 23.1.1.2 255.255.255.0
ip summary-address eigrp 10 172.16.0.0 255.255.0.0 200 <<--注意这个200
serial restart-delay 0
!
router eigrp 10
redistribute ospf 10 metric 1500 100 255 1 1500
network 23.1.1.2 0.0.0.0
network 172.16.0.0
no auto-summary
!
router ospf 100
log-adjacency-changes
network 12.1.1.2 0.0.0.0 area 0
!
R3:
!
interface Serial0/0
ip address 23.1.1.3 255.255.255.0
serial restart-delay 0
!
router eigrp 10
network 0.0.0.0
auto-summary
R2:
r2(config-if)#ip summary-address eigrp 10 172.16.0.0 255.255.0.0 5