EIGRP 汇总配置
实验目的:学会做 EIGRP 的路由汇总。了解 EIGRP 在做手工配置汇总路由前须关闭协议自身的在主网络边界自动汇总的功能,否则配置汇总路由不生效,以及 EIGRP 的路由汇总时在接口上进行的。
需求:在 R2 上增加三个环回口地址:11.1.1.1/24 11.1.2.1/24 11.1.3.1/24 并且保证 R3和R1 能与这些网络进行通信,同时尽量减小路由表的大小。
 
2010-8-31 23:57 上传

配置步骤: 1. 配置 EIGRP 是路由全通(参照实验1.9的配置)----注:no auto-summary关闭自动汇总
2. 将这三个换回地址宣告到 EIGRP 协议中去。
3. 在 R2 的 s1/0 口做路由汇总。
配置如下:
R2(config)#int loopback 1
R2(config-if)#ip add 11.1.1.1 255.255.255.0
R2(config-if)#exit
R2(config)#int loopback 2
R2(config-if)#ip add 11.1.2.1 255.255.255.0
R2(config-if)#exit
R2(config)#int loopback 3
R2(config-if)#ip add 11.1.3.1 255.255.255.0
R2(config-if)#exit
R2(config)#router eigrp 10 R2(config-router)#net 11.1.0.0 0.0.3.255
R2(config-router)#exit
R2(config)#int s1/0 R2(config-if)#ip summary-address eigrp 10 11.1.0.0 255.255.252.0
R2(config-if)#end
测试:
<1> 完成今本配置后,查看路由条目应是完整、路由应是能够全互通的。 R1#sh ip rou Gateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, Loopback0 2.0.0.0/24 is subnetted, 1 subnets D 2.2.2.0 [90/2297856] via 12.1.1.2, 02:00:42, Serial1/0 3.0.0.0/24 is subnetted, 1 subnets D 3.3.3.0 [90/2297856] via 13.1.1.3, 00:34:48, Serial1/1 12.0.0.0/24 is subnetted, 1 subnets C 12.1.1.0 is directly connected, Serial1/0 13.0.0.0/24 is subnetted, 1 subnets C 13.1.1.0 is directly connected, Serial1/1
 
2010-8-31 23:58 上传

注:连通性没有问题。
<2> 查看是否在路由表有新加进来的环回口路由。
R1#sh ip rou
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 12.1.1.2, 02:10:55, Serial1/0
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/2297856] via 13.1.1.3, 00:45:01, Serial1/1
11.0.0.0/24 is subnetted, 3 subnets D 11.1.2.0 [90/2297856] via 12.1.1.2, 00:00:06, Serial1/0 D 11.1.3.0 [90/2297856] via 12.1.1.2, 00:00:06, Serial1/0 D 11.1.1.0 [90/2297856] via 12.1.1.2, 00:00:06, Serial1/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, Serial1/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, Serial1/1
<3> 验证汇总配置是否成功:
R1#sh ip route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 12.1.1.2, 02:17:18, Serial1/0
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/2297856] via 13.1.1.3, 00:51:24, Serial1/1
11.0.0.0/22 is subnetted, 1 subnets D 11.1.0.0 [90/2297856] via 12.1.1.2, 00:04:01, Serial1/0----汇总配置生效
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, Serial1/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, Serial1/1
 
2010-8-31 23:59 上传

注:EIGRP 的汇总路由的管理距离默认是 5 。
 
2010-8-31 23:59 上传

注:EIGRP 的内部路由管理距离默认是 90 ,外部 170 (图)

<4> EIGRP 的排错命令 Show ip protocols(如上图所使用的效果) Show ip route eigrp(图)---仅显示 EIGRP 自己产生的路由<路由表中由“D“标识>
 
2010-9-1 00:00 上传

Show eigrp topology(查看 EIGRP 的拓扑表)---图
 
2010-9-1 00:01 上传

Show ip eigrp interface 查看当前设备运行 EIGRP 的接口信息的摘要(图)