|
楼主 |
发表于 2011-9-7 20:52:40
|
显示全部楼层
配置如下:
R1:
R1(config)#inter lo 0
R1(config-if)#ip add 12.2.1.1 255.255.255.0
R1(config-if)#inter s0/0
R1(config-if)#ip add 12.1.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#router eigrp 1
R1(config-router)#auto-summary
R1(config-router)#net 12.0.0.0
R2:
R2(config)#inter s0/0
R2(config-if)#ip add 12.1.1.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#clo ra 64000
R2(config-if)#inter s0/1
R2(config-if)#ip add 2.1.1.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#clo ra 64000
R2(config-if)#router eigrp 1
R2(config-router)#auto-summary
R2(config-router)#net 12.0.0.0
R2(config-router)#net 2.0.0.0
R3:
R3(config)#inter s0/1
R3(config-if)#ip add 2.1.1.1 255.255.255.0
R3(config-if)#no shut
R3(config-if)#router eigrp 1
R3(config-router)#auto-summary
R3(config-router)#net 2.0.0.0
路由输出如下:
R1:D 2.0.0.0/8 [90/2681856] via 12.1.1.2, 00:16:19, Serial0/0
12.0.0.0/24 is subnetted, 2 subnets
C 12.1.1.0 is directly connected, Serial0/0
C 12.2.1.0 is directly connected, Loopback0
R2:
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.1.1.0/24 is directly connected, Serial0/1
D 2.0.0.0/8 is a summary, 00:17:05, Null0
12.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Serial0/0
D 12.0.0.0/8 is a summary, 00:17:05, Null0
D 12.2.1.0/24 [90/2297856] via 12.1.1.1, 00:17:09, Serial0/0
R3:
2.0.0.0/24 is subnetted, 1 subnets
C 2.1.1.0 is directly connected, Serial0/1
D 12.0.0.0/8 [90/2681856] via 2.1.1.2, 00:18:01, Serial0/1
对于R1和R3的路由输出没有什么疑问,但是R1已经启用了自动汇总,为什么R2还能够学到12.2.1.0/24这个网络的路由明细呢?
烦请知道的朋友为我解惑,谢谢大家!
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|