实验17 EIGRP的基本配置
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验十七 EIGRP的基本配置
一.实验目的
通过本实验可以掌握:
(1)在路由器上启动EIGRP 路由进程
(2)启用参与路由协议的接口,并且通告网络
(3)邻居表、拓扑表以及路由表的含义
(4)查看和调试EIGRP 路由协议相关信息
二、实验要求:
1):知道什么是EIGRP和相关术语
2): 知道如何配置EIGRP
三、实验内容:
1、通过拓朴图来研究EIGRP,使得两了不同网段之间能够通信
四、实验步聚
实验拓朴:
1).配置R1、R2和R3各个接口上IP 地址
R1(config)#int s0/0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no sh
R1(config)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R2(config)#int s0/0
R2(config-if)#ip add 192.168.1.2 255.255.255.0
R2(config-if)#no sh
R2(config)#int s0/1
R2(config-if)#ip add 192.168.2.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
R3(config)#int s0/1
R3(config-if)#ip add 192.168.2.2 255.255.255.0
R3(config-if)#no sh
R3(config)#int lo0
R3(config-if)#ip add 2.2.2.2 255.255.255.0
2).在R1、R2和R3上配置EIGRP
R1(config)#router eigrp 100
R1(config-router)#net 192.168.1.0
R1(config-router)#net 1.1.1.0
R2(config)#router eigrp 100
R2(config-router)#net 192.168.1.0
R2(config-router)#net 192.168.2.0
R3(config)#router eigrp 100
R3(config-router)#net 192.168.2.0
R3(config-router)#net 2.2.2.0
3).查看路由信息
R1#sh 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
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback0
D 1.0.0.0/8 is a summary, 00:02:52, Null0
D 2.0.0.0/8 [90/2809856] via 192.168.1.2, 00:00:39, Serial0/0
C 192.168.1.0/24 is directly connected, Serial0/0
D 192.168.2.0/24 [90/2681856] via 192.168.1.2, 00:00:45, Serial0/0
可以看出R1的路由表把网络中所有路由信息都获取到了。
现在我们来查看R2的邻居表
R2#sh ip eigrp nei
R2#sh ip eigrp neighbors
IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 192.168.2.
2 Se0/1 1
3 00:04:15 227 1362 0 7
0 192.168.1.1 Se0/0 14 00:06:33 233 1398 0 7
可以在R2路由器看出接它的路由器接口情况。
查看R1发送和接收的EIGRP数据包
R1#debug eigrp packets
EIGRP Packets debugging is on
(UPDATE, REQUEST, QUERY, REPL Y, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPL Y)
R1#
*Mar 1 00:18:53.811: EIGRP: Sending HELLO on Serial0/0
*Mar 1 00:18:53.811: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Mar 1 00:18:54.319: EIGRP: Received HELLO on Serial0/0 nbr 192.168.1.2
*Mar 1 00:18:54.323: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0
*Mar 1 00:18:55.031: EIGRP: Sending HELLO on Loopback0
*Mar 1 00:18:55.031: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Mar 1 00:18:55.035: EIGRP: Received HELLO on Loopback0 nbr 1.1.1.1
*Mar 1 00:18:55.035: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0
*Mar 1 00:18:55.039: EIGRP: Packet from ourselves ignored
*Mar 1 00:18:58.139: EIGRP: Sending HELLO on Serial0/0
*Mar 1 00:18:58.139: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Mar 1 00:18:58.747: EIGRP: Received HELLO on Serial0/0 nbr 192.168.1.2
*Mar 1 00:18:58.751: AS 100, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0
由于当前网络是收敛的,所以只有HELLO数据包发送和接收的报告
现在我们来查看R2上的拓朴表
R2#sh ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID(192.168.1.2)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 1.0.0.0/8, 1 successors, FD is 2297856
via 192.168.1.1 (2297856/128256), Serial0/0
P 2.0.0.0/8, 1 successors, FD is 2297856
via 192.168.2.2 (2297856/128256), Serial0/1
P 192.168.1.0/24, 1 successors, FD is 2169856
via Connected, Serial0/0
P 192.168.2.0/24, 1 successors, FD is 2169856
via Connected, Serial0/1
通过输出结果可以看出,通过1.1.1.1到达192.168.1.0网络的FD是2297856。