<b>EIGRP路由汇总</b>
拓扑图
<a href="http://blog.51cto.com/attachment/201202/162921505.png" target="_blank"></a>
在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
interface Serial0/2
interface Serial0/3
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
Current configuration : 879 bytes
service timestamps l<b>og datetime msec</b>
<b>no service password-encryption</b>
<b>!</b>
<b>hostname R3</b>
<b>boot-start-marker</b>
<b>boot-end-marker</b>
<b>enable password cisco</b>
<b>no aaa new-model</b>
<b>memory-size iomem 5</b>
<b>ip cef</b>
<b>no ip domain lookup</b>
<b>interface Serial0/0</b>
<b> ip address 35.1.1.5 255.255.255.0</b>
<b> serial restart-delay 0</b>
<b> clock rate 64000</b>
<b>interface Serial0/1</b>
<b> ip address 13.1.1.3 255.255.255.0</b>
<b>interface Serial0/2</b>
<b> no ip address</b>
<b> shutdown</b>
<b>interface Serial0/3</b>
<b>router eigrp 90</b>
<b> network 13.1.1.0 0.0.0.255</b>
<b> network 35.1.1.0 0.0.0.255</b>
<b> auto-summary</b>
<b>ip http server</b>
<b> </b>
<b>! </b>
<b>control-plane</b>
<b>line con 0</b>
<b> exec-timeout 0 0</b>
<b> logging synchronous</b>
<b>line aux 0</b>
<b>line vty 0 4</b>
<b> login</b>
<b>end</b>
R5配置
R5#sh running-config
Current configuration : 805 bytes
hostname R5
ip address 35.1.1.5 255.255.255.0
network 35.1.1.0 0.0.0.255
手工汇总
首先计算汇总的IP地址和子网掩码
需要汇总的是
将第三个字节提取出来,转换成二进制
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的路由表
手工汇总前
<a href="http://blog.51cto.com/attachment/201202/162947130.png" target="_blank"></a>
手工汇总后
<a href="http://blog.51cto.com/attachment/201202/163004210.png" target="_blank"></a>
R3的路由表
<a href="http://blog.51cto.com/attachment/201202/163019528.png" target="_blank"></a>
<a href="http://blog.51cto.com/attachment/201202/163043964.png" target="_blank"></a>
无论手工还是自动汇总后管理距离都为5
本文转自lustlost 51CTO博客,原文链接:http://blog.51cto.com/lustlost/770590,如需转载请自行联系原作者