CCNP-EIGRP路由汇总
精选 转载CCNP-EIGRP路由汇总:
实验拓扑:
实验目标:
EIGRP的自动汇总和EIGRP的手工汇总
路由的基本配置(略)
IP地址配置:(R1.R2启用2个环回接口,R4启用4个环回接口)
r1(config)#in s1/0
r1(config-if)#ip add 219.146.0.1 255.255.255.0
r1(config-if)#no sh
r1(config-if)#in loo 0
r1(config-if)#ip add 219.146.4.1 255.255.255.0
r1(config-if)#in loo 1
r1(config-if)#ip add 219.146.5.1 255.255.255.0
r1(config-if)#exi
r2(config)#in s1/0
r2(config-if)#ip add 219.146.2.1 255.255.255.0
r2(config-if)#no sh
r2(config-if)#in loo 0
r2(config-if)#ip add 219.146.6.1 255.255.255.0
r2(config-if)#in loo 1
r2(config-if)#ip add 219.146.7.1 255.255.255.0
r2(config-if)#exi
r3(config)#in s1/0
r3(config-if)#ip add 219.146.0.2 255.255.255.0
r3(config-if)#no sh
r3(config-if)#in s1/1
r3(config-if)#ip add 219.146.2.2 255.255.255.0
r3(config-if)#no sh
r3(config-if)#in s1/2
r3(config-if)#ip add 219.146.3.1 255.255.255.0
r3(config-if)#no sh
r3(config-if)#exi
r4(config)#in s1/0
r4(config-if)#ip add 219.146.3.2 255.255.255.0
r4(config-if)#no sh
r4(config-if)#in loo 0
r4(config-if)#ip add 219.146.8.1 255.255.255.0
r4(config-if)#in loo 1
r4(config-if)#ip add 219.146.9.1 255.255.255.0
r4(config-if)#in loo 2
r4(config-if)#ip add 219.146.10.1 255.255.255.0
r4(config-if)#in loo 3
r4(config-if)#ip add 219.146.11.1 255.255.255.0
r4(config-if)#exi
EIGRP的自动汇总:
配置EIGRP:(不关闭自动汇总)
r1(config)#no router e 10
r1(config)#router e 10
r1(config-router)#net 219.146.0.0 0.0.0.255
r1(config-router)#net 219.146.4.0 0.0.1.255 //汇总宣告(并不是路由汇总)
r1(config-router)#exi
r2(config)#router e 10
r2(config-router)#net 219.146.2.0 0.0.0.255
r2(config-router)#net 219.146.6.0 0.0.1.255
r2(config-router)#exi
r3(config)#router e 10
r3(config-router)#net 219.146.0.0 0.0.0.255
r3(config-router)#net 219.146.2.0 0.0.1.255
r3(config-router)#exi
r4(config)#router e 10
r4(config-router)#net 219.146.3.0 0.0.0.255
r4(config-router)#net 219.146.8.0 0.0.0.255 //注意这里的宣告。不能全部汇总。
r4(config-router)#net 219.146.9.0 0.0.0.255
r4(config-router)#net 219.146.10.0 0.0.1.255
r4(config-router)#exi
现在来看一下路由表:
r1(config)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D 219.146.6.0/24 [90/2809856] via 219.146.0.2, 00:00:27, Serial1/0
D 219.146.7.0/24 [90/2809856] via 219.146.0.2, 00:00:27, Serial1/0
C 219.146.4.0/24 is directly connected, Loopback0
C 219.146.5.0/24 is directly connected, Loopback1
D 219.146.2.0/24 [90/2681856] via 219.146.0.2, 00:00:29, Serial1/0
D 219.146.3.0/24 [90/2681856] via 219.146.0.2, 00:00:29, Serial1/0
C 219.146.0.0/24 is directly connected, Serial1/0
D 219.146.10.0/24 [90/2809856] via 219.146.0.2, 00:00:26, Serial1/0
D 219.146.11.0/24 [90/2809856] via 219.146.0.2, 00:00:26, Serial1/0
D 219.146.8.0/24 [90/2809856] via 219.146.0.2, 00:00:26, Serial1/0
D 219.146.9.0/24 [90/2809856] via 219.146.0.2, 00:00:26, Serial1/0
r2(config)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
C 219.146.6.0/24 is directly connected, Loopback0
C 219.146.7.0/24 is directly connected, Loopback1
D 219.146.4.0/24 [90/2809856] via 219.146.2.2, 00:01:45, Serial1/0
D 219.146.5.0/24 [90/2809856] via 219.146.2.2, 00:01:45, Serial1/0
C 219.146.2.0/24 is directly connected, Serial1/0
D 219.146.3.0/24 [90/2681856] via 219.146.2.2, 00:01:45, Serial1/0
D 219.146.0.0/24 [90/2681856] via 219.146.2.2, 00:01:45, Serial1/0
D 219.146.10.0/24 [90/2809856] via 219.146.2.2, 00:01:44, Serial1/0
D 219.146.11.0/24 [90/2809856] via 219.146.2.2, 00:01:44, Serial1/0
D 219.146.8.0/24 [90/2809856] via 219.146.2.2, 00:01:44, Serial1/0
D 219.146.9.0/24 [90/2809856] via 219.146.2.2, 00:01:44, Serial1/0
r3(config-if)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D 219.146.6.0/24 [90/2297856] via 219.146.2.1, 00:02:04, Serial1/1
D 219.146.7.0/24 [90/2297856] via 219.146.2.1, 00:02:04, Serial1/1
D 219.146.4.0/24 [90/2297856] via 219.146.0.1, 00:02:06, Serial1/0
D 219.146.5.0/24 [90/2297856] via 219.146.0.1, 00:02:06, Serial1/0
C 219.146.2.0/24 is directly connected, Serial1/1
C 219.146.3.0/24 is directly connected, Serial1/2
C 219.146.0.0/24 is directly connected, Serial1/0
D 219.146.10.0/24 [90/2297856] via 219.146.3.2, 00:02:04, Serial1/2
D 219.146.11.0/24 [90/2297856] via 219.146.3.2, 00:02:04, Serial1/2
D 219.146.8.0/24 [90/2297856] via 219.146.3.2, 00:02:04, Serial1/2
D 219.146.9.0/24 [90/2297856] via 219.146.3.2, 00:02:04, Serial1/2
r4(config)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D 219.146.6.0/24 [90/2809856] via 219.146.3.1, 00:02:28, Serial1/0
D 219.146.7.0/24 [90/2809856] via 219.146.3.1, 00:02:28, Serial1/0
D 219.146.4.0/24 [90/2809856] via 219.146.3.1, 00:02:28, Serial1/0
D 219.146.5.0/24 [90/2809856] via 219.146.3.1, 00:02:28, Serial1/0
D 219.146.2.0/24 [90/2681856] via 219.146.3.1, 00:02:28, Serial1/0
C 219.146.3.0/24 is directly connected, Serial1/0
D 219.146.0.0/24 [90/2681856] via 219.146.3.1, 00:02:28, Serial1/0
C 219.146.10.0/24 is directly connected, Loopback2
C 219.146.11.0/24 is directly connected, Loopback3
C 219.146.8.0/24 is directly connected, Loopback0
C 219.146.9.0/24 is directly connected, Loopback1
看到虽然开启了自动汇总,但实际上并没有汇总,因为这里的有类网络相同(C类),子网掩码相同(/24),所以EIGRP不进行自动汇总。修改一下:
r1(config)#in loo 0
r1(config-if)#no ip add
r1(config-if)#ip add 219.146.4.1 255.255.255.128
r1(config-if)#in loo 1
r1(config-if)#no ip add
r1(config-if)#ip add 219.146.4.129 255.255.255.128
r1(config-if)#exi
r1(config)#router e 10
r1(config-router)#no net 219.146.4.0 0.0.1.255
r1(config-router)#net 219.146.4.0 0.0.0.255
r1(config-router)#exi
再查看一下:
r3(config)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D 219.146.6.0/24 [90/2297856] via 219.146.2.1, 00:18:06, Serial1/1
D 219.146.7.0/24 [90/2297856] via 219.146.2.1, 00:18:06, Serial1/1
D 219.146.4.0/24 [90/2297856] via 219.146.0.1, 00:00:05, Serial1/0
C 219.146.2.0/24 is directly connected, Serial1/1
C 219.146.3.0/24 is directly connected, Serial1/2
C 219.146.0.0/24 is directly connected, Serial1/0
D 219.146.10.0/24 [90/2297856] via 219.146.3.2, 00:18:06, Serial1/2
D 219.146.11.0/24 [90/2297856] via 219.146.3.2, 00:18:06, Serial1/2
D 219.146.8.0/24 [90/2297856] via 219.146.3.2, 00:18:06, Serial1/2
D 219.146.9.0/24 [90/2297856] via 219.146.3.2, 00:18:06, Serial1/2
已经进行了汇总。
下面在R1上关闭自动汇总,会发生什么情况?
r1(config)#router e 10
r1(config-router)#no au
r1(config-router)#exi
再看一下R3的路由表:
r3(config)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D 219.146.6.0/24 [90/2297856] via 219.146.2.1, 00:21:30, Serial1/1
D 219.146.7.0/24 [90/2297856] via 219.146.2.1, 00:21:30, Serial1/1
219.146.4.0/25 is subnetted, 2 subnets
D 219.146.4.0 [90/2297856] via 219.146.0.1, 00:01:16, Serial1/0
D 219.146.4.128 [90/2297856] via 219.146.0.1, 00:01:16, Serial1/0
C 219.146.2.0/24 is directly connected, Serial1/1
C 219.146.3.0/24 is directly connected, Serial1/2
C 219.146.0.0/24 is directly connected, Serial1/0
D 219.146.10.0/24 [90/2297856] via 219.146.3.2, 00:21:29, Serial1/2
D 219.146.11.0/24 [90/2297856] via 219.146.3.2, 00:21:29, Serial1/2
D 219.146.8.0/24 [90/2297856] via 219.146.3.2, 00:21:29, Serial1/2
D 219.146.9.0/24 [90/2297856] via 219.146.3.2, 00:21:29, Serial1/2
看到现在并没有进行汇总,当然在R2、R4上也没有进行汇总。
因为EIGRP只对参与的网络(直连网络)进行自动汇总。
总结:
EIGRP自动汇兑的条件:
(1)有类网络不同
(2)子网掩码不同
(3)参与的网络
EIGRP的手工汇总:
以R1为例:
r1(config)#in s1/0 //在接口下做路由汇总
r1(config-if)#ip summary-address eigrp 10 219.146.4.0 255.255.255.0
r1(config-if)#exi
r3(config)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D 219.146.6.0/24 [90/2297856] via 219.146.2.1, 00:40:19, Serial1/1
D 219.146.7.0/24 [90/2297856] via 219.146.2.1, 00:40:19, Serial1/1
D 219.146.4.0/24 [90/2297856] via 219.146.0.1, 00:00:34, Serial1/0
C 219.146.2.0/24 is directly connected, Serial1/1
C 219.146.3.0/24 is directly connected, Serial1/2
C 219.146.0.0/24 is directly connected, Serial1/0
D 219.146.10.0/24 [90/2297856] via 219.146.3.2, 00:40:18, Serial1/2
D 219.146.11.0/24 [90/2297856] via 219.146.3.2, 00:40:18, Serial1/2
D 219.146.8.0/24 [90/2297856] via 219.146.3.2, 00:40:18, Serial1/2
D 219.146.9.0/24 [90/2297856] via 219.146.3.2, 00:40:18, Serial1/2
已经汇总了。再查看一下R1.这样看:
r1#sh ip rou 219.146.4.0 255.255.255.0
Routing entry for 219.146.4.0/24
Known via "eigrp 10", distance 5, metric 128256, type internal
Redistributing via eigrp 10
Routing Descriptor Blocks:
* directly connected, via Null0
Route metric is 128256, traffic share count is 1
Total delay is 5000 microseconds, minimum bandwidth is 10000000 Kbit
Reliability 255/255, minimum MTU 1514 bytes
Loading 1/255, Hops 0
看到这条汇总的路由管理距离是5.这个管理距离只在本地有效。在别的路由器上看不是5.
r1#sh run int s1/0
Building configuration...
Current configuration : 146 bytes
!
interface Serial1/0
ip address 219.146.0.1 255.255.255.0
ip summary-address eigrp 10 219.146.4.0 255.255.255.0 5
serial restart-delay 0
end
这样也能看到管理距离是5.
手工汇总总结:
EIGRP手工汇总可以在任意接口下。(出接口)
EIGRP手工汇总后的度量值是汇总前所有路由度量值最小的。
EIGRP手工汇总后在本地会产生一条指向Null0的路由。(避免环路)
EIGRP手工汇总后只有当所有明细路由都消失了才会删除汇总路由。
EIGRP不支持CIDR(超网)。
本文出自 “放飞梦想” 博客,请务必保留此出处http://chenbin.blog.51cto.com/945033/281122
本文出自 51CTO.COM技术博客上一篇:IGRP和EIGRP的无缝结合
下一篇:CISCO路由器封锁QQ客户端
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
CCNP-EIGRP路由汇总(附实验PDF下载)
实验目标:EIGRP的自动汇总和EIGRP的手工汇总
职场 ccnp EIGRP 休闲 路由汇总 -
CCNP-EIGRP路由认证(附实验PDF下载)
EIGRP的认证。
职场 路由 eigrp 认证 休闲 -
CCNP-EIGRP发布默认路由的方法总结
实验目标:总结EIGRP发布默认路由的方法
职场 EIGRP 休闲 -
CCNP-EIGRP不等价负载均衡
实验目标:EIGRP的不等价负载均衡。(因为等价的负载均衡比较简单,这里讨论不等价的负载均衡)
负载均衡 CCNP EIGRP 休闲 不等价 -
CCNP路由-08 EIGRP-2
CCNP路由-08 EIGRP-2
CCNP EIGRP-2 -
路由汇总之EIGRP手动汇总
本文的PDF版
EIGRP 汇总 休闲 EIGRP路由协议 EIGRP路由协议汇总 -
CCNP路由-20 BGP路由汇总
CCNP路由-20 BGP路由汇总
CCNP 路由汇总 BGP