2 EIGRP协议的基本配置


第1段:杳看EIGRP路由信息
R3#sh ip route
Codes: C -connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 D - EIGRjP, EX - EIGRP external, 0 - 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, E - EGP
 i- IS-IS, LI - 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 200.1.1.0/24 is directly connected, Ethernet0
 201.1.13.0/30 is subnetted, 1 subnets
C 201.1.13.0 is directly connected, Serial0
201.1.12.0/30 is subnetted, 1 subnets
D 201.1.12.0 [90/1817600] via 200,1.1.2,00:02:57, Ethernet0
10.0.0.0/24 is subnetted, I mibnets
D 10.1.1.0 [90/1920000] via 201.1,13,1,00:02:57, Seriai0
R3#
Term_Server>2
[Resuming connection 1 to R1 ...]
R2#
R2#sh ip route eigrp
 201.1.13.0/30 is subnetted, 1 subnets
D 201.1.13.0190/1817600) via 200.1.1.3, 00:07:31, Ethernet0
 10.0.0.0/24is subnetted,1 subnets
D 10.1.1.0[90/1920000]via 201.1.1.12.1,00:07:26,Serial0
R2#
Term Server>1
[Resuming connection 1 to R1 ...]
R1#sh ip route etgrp
D 200.1.1.0/24 [90/1817600] via 201.1.12,2, 00:07:40,
[90/18176003 via 201.1.13.2,00:07:41,Serial1
R1#
[90/1817600] via 201.1.13.2, 00:07:41, Serial1
R1#sh ip route 200.1.1.0
Routing entry for 200.1.1.0/24
 Known via "eigrp 100", distance 90,metric 1817600, type internal
 Redistributing via eigrp 100
 Last update from 201.1.13.2 on Serial1, 00:35:12 ago)
 Routing Descriptor Blocks:
 *201.1.12.2, from 201.1,12.2,00:35:12 ago, via Serial0
Route metric is 1817600, traffic share count is 1
Total delay is 21000 microseconds, minimum bandwicll is. 1000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
 201.1.13.2, from 201.1.13.2, 00:35:12 ago, via Serial1
Route metric is 1817600, traffic share count is 1
Total delay is 21000 microseconds, minimum banchvidt@ii 1000111
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
第2段:查看EIGRP协议配置信息
R1#ship protocol
Routing Protocol is "eigrp 100"
 Outgoing update filter list for all interfaces is
 Incoming update filter list for all interfaces is
 Default networks flagged in outgoing updates
 Default networks accepted from incoming updates
 EIGRP metric weight K1=1,K2=0,K3=1,K4=0,K5=0
 EIGRP maximum hopcount 100
 EIGRP maximum metric variance1
 Redistributing: eigrp 100
 Automatic network summarization is not in effect
 Routing for Networks:
10.1.1.0/24
201.1.12.0/30
201.1.13.0/30
 Routing Information Sources:
GatewayDistanceLast Update
(this router)9000:42:44
201,1.12.29000:35:29
201.1.13.29000:35:27
Distance: internal 90 external 170
第3段:查看EIGRP邻居路由器
R1#sh ip eigrp neighbor
IP-EIGRP neighbors for process 100
H AddressInterfaceHoldUptimeSRTTRTOQSeq Type
 (sec) (ms) Cnt Num
1 201.1,13.2Se11200:36:0920 20006
0 201.1.12.2Se01200:38:5010 20006
R1#
(1)在R3路由器上使用show ip route命令查看其路由表,可以看到有2个由EIGRP协议所获取的路由表项,分别是关于10.1.1.0/24网段和201.1.12.0/24网段的,前面的字母"D"代表EIGRP 。
至于为什么用"D"而不用"E"代表EIGRP,是因为"E"已经代表了EGP(外部网关协议),而"D"是DUAL(扩散更新算法,EEGRP的路由算法)的头一个字母的缘故 。
在路由表项中的"[90/1817600]",斜线前的数字"90"是EIGRP协议的治理距离;斜线后的数宇"1817600"是本条路由的度量值(Metric) 。

推荐阅读