EIGRP路由汇总
拓扑图
在R1上建立若干条明细路由
192.168.1.1/24
192.168.2.1/24
192.168.3.1/24
4个要点
在路由传播方向出接口配置
产生null0???这点不是很清楚
所有明细路由down了才删除汇总路由
metric值取明细路由中最小的值
基本配置
R1配置
R1#sh running-config
Building configuration...
Current configuration : 1018 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
enable password cisco
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!!
!
interface Loopback0
ip address 192.168.1.1 255.255.255.0
!
interface Loopback1
ip address 192.168.2.1 255.255.255.0
!
interface Loopback2
ip address 192.168.3.1 255.255.255.0
!
interface Serial0/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/1
ip address 13.1.1.1 255.255.255.0
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 90
network 13.1.1.0 0.0.0.255
network 192.168.0.0 0.0.255.255
auto-summary
!
ip http server
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
R3配置
R3#sh running-config
Building configuration...
Current configuration : 879 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
enable password cisco
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
interface Serial0/0
ip address 35.1.1.5 255.255.255.0
serial restart-delay 0
clock rate 64000
!
interface Serial0/1
ip address 13.1.1.3 255.255.255.0
serial restart-delay 0
clock rate 64000
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 90
network 13.1.1.0 0.0.0.255
network 35.1.1.0 0.0.0.255
auto-summary
!
ip http server
!
!
control-plane
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
R5配置
R5#sh running-config
Building configuration...
Current configuration : 805 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R5
!
boot-start-marker
boot-end-marker
!
enable password cisco
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
interface Serial0/0
ip address 35.1.1.5 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 90
network 35.1.1.0 0.0.0.255
auto-summary
!
ip http server
!
control-plane
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
手工汇总
首先计算汇总的IP地址和子网掩码
需要汇总的是
192.168.1.1/24
192.168.2.1/24
192.168.3.1/24
将第三个字节提取出来,转换成二进制
00000001为1
00000010为2
00000011为3
提取前6字节为子网号,即192.168.0.0/22
然后进入R1的S0/1 针对S0/1通告手工汇总后的路由
ip summary-address eigrp 90 192.168.0.0 255.255.252.0
R1的路由表
手工汇总前
手工汇总后
R3的路由表
手工汇总前
手工汇总后
无论手工还是自动汇总后管理距离都为5
本文转自lustlost 51CTO博客,原文链接:http://blog.51cto.com/lustlost/770590,如需转载请自行联系原作者