一、eigrp基本配置
(一)实验目的:
1、掌握eigrp的基本配置。
2、掌握eigrp的通配符掩配置方法。
3、掌握eigrp的自动汇总特性,以及如何关闭自动汇总。
4、掌握eigrp的手工汇总。
(二)实验拓扑:
(三)实验过程
1、eigrp配置
R1:
router eigrp 50
network 10.0.0.0
network 172.16.1.0 0.0.0.3
auto-summary
R2:
router eigrp 50
network 131.131.0.0
network 172.16.1.0 0.0.0.3 \\采用通配符掩码配置,可以很好的控制哪些接口加入到eigrp进程中。否则可能需要使用passive-interface进行配置\\
network 172.16.1.4 0.0.0.3
auto-summary
R3:
router eigrp 50
network 172.16.1.4 0.0.0.3
network 192.168.0.0
auto-summary
查看R2 neibour
R2#show ip eigrp neighbors
IP-EIGRP neighbors for process 50
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 172.16.1.6 Se0/1 12 03:15:50 54 324 0 15
0 172.16.1.1 Se0/0 12 03:16:18 52 312 0 16
由此确认eigrp neighbors建立没有问题。
2、自动汇总功能
查看R3路由表
R3#show ip route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
C 172.16.1.4/30 is directly connected, Serial0/0
D 172.16.0.0/16 is a summary, 03:03:00, Null0 \\可以看到eigrp自动为可以汇总的路由生成一条汇总路由并指向null0,目的一为汇总路由,二为避免路由环路
D 172.16.1.0/30 [90/2681856] via 172.16.1.5, 03:19:50, Serial0/0
D 10.0.0.0/8 [90/2809856] via 172.16.1.5, 03:13:43, Serial0/0 \\可以看到eigrp内部管理距离为90,2809856为eigrp计算的度量FD
D 131.131.0.0/16 [90/2297856] via 172.16.1.5, 03:17:02, Serial0/0
C 192.168.0.0/24 is directly connected, Loopback0
C 192.168.1.0/24 is directly connected, Loopback1
C 192.168.2.0/24 is directly connected, Loopback2
C 192.168.3.0/24 is directly connected, Loopback3
取消R3 192.168网段的network,改为重分布,并取消自动汇总
router eigrp 50
redistribute connected
network 172.16.1.4 0.0.0.3
no auto-summary
查看R1路由表
R1#show ip route
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
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D 172.16.1.4/30 [90/2681856] via 172.16.1.2, 03:27:01, Serial0/0
D 172.16.0.0/16 is a summary, 03:20:33, Null0
C 172.16.1.0/30 is directly connected, Serial0/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.3.0/24 is directly connected, Loopback3
C 10.1.2.0/24 is directly connected, Loopback2
C 10.1.1.0/24 is directly connected, Loopback1
D 10.0.0.0/8 is a summary, 03:20:33, Null0
C 10.1.4.0/24 is directly connected, Loopback4
D 131.131.0.0/16 [90/2297856] via 172.16.1.2, 03:23:53, Serial0/0
D EX 192.168.0.0/24 [170/2809856] via 172.16.1.2, 00:00:15, Serial0/0
D EX 192.168.1.0/24 [170/2809856] via 172.16.1.2, 00:00:15, Serial0/0
D EX 192.168.2.0/24 [170/2809856] via 172.16.1.2, 00:00:15, Serial0/0
D EX 192.168.3.0/24 [170/2809856] via 172.16.1.2, 00:00:15, Serial0/0
3、手工汇总功能
在R3路由器手工汇总192.168.0.0的路由
interface Serial0/0
ip address 172.16.1.6 255.255.255.252
ip summary-address eigrp 50 192.168.0.0 255.255.0.0 5 \\手工汇总192.168.0.0 为16位掩码网段地址\\
clock rate 2000000
!
查看R1路由
R1#show ip route
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
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D 172.16.1.4/30 [90/2681856] via 172.16.1.2, 03:29:19, Serial0/0
D 172.16.0.0/16 is a summary, 03:22:51, Null0
C 172.16.1.0/30 is directly connected, Serial0/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.3.0/24 is directly connected, Loopback3
C 10.1.2.0/24 is directly connected, Loopback2
C 10.1.1.0/24 is directly connected, Loopback1
D 10.0.0.0/8 is a summary, 03:22:51, Null0
C 10.1.4.0/24 is directly connected, Loopback4
D 131.131.0.0/16 [90/2297856] via 172.16.1.2, 03:26:11, Serial0/0
D 192.168.0.0/16 [90/2809856] via 172.16.1.2, 00:00:08, Serial0/0 \\发现汇总为192.168.0.0/16路由\\
(四)实验总结:
1、掌握eigrp的基本配置。
router eigrp 50 \\50为eigrp AS号码,自治系统内有效\\
network 192.168.0.0 \\不带通配符掩码配置\\
或者
network 192.168.0.0 255.255.255.0 \\带通配符掩码配置\\
3、掌握eigrp的自动汇总特性,以及如何关闭自动汇总。
router eigrp 50
auto-summary \\自动汇总\\
no auto-summary \\关闭自动汇总\\
4、掌握eigrp的手工汇总。
R3(config-if)#ip summary-address ?
eigrp Enhanced Interior Gateway Routing Protocol (EIGRP)
rip Routing Information Protocol (RIP)
eigrp和rip都可以手工汇总
int s0/0
ip summary-address eigrp 50 192.168.0.0 255.255.0.0
eigrp基本配置实验完成
本文出自 “blog.hexun.comjiangzh..” 博客,谢绝转载!