Eigrp:
Enhanced Interior Gateway Routing Protocol,增强型内部网络路由协议,是Cisco公司开发的一个路由协议;
同OSPF也是发送Hello包来建立和维持邻居关系;
采用组播(224.0.0.10)或单播进行路由更新;
距离矢量为90或170;
支持Vlsm,默认开启自动汇总功能;
支持等价,和非等价的负载均衡;
Eigrp基本配置:
R1:
>en
#conf t
#int s1/0
#ip add 10.1.1.1 255.255.255.0
#clock rate 64000 //配置串口速率
#no shu
#int lo 1 //打开回环借口,此处代替pc
#ip add 192.168.1.1 255.255.255.0
#route eigrp 1 //进入Eigrp
#no auto-summary //禁止路由汇总
#network 10.1.1.0 //宣告本地网段
#network 192.168.1.0
#end
R2,R3配置相同,此处不再列举。
配置完成之后:show ip route 会看到本地学习到的路由表,说明本地网络已经收敛
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial1/0
20.0.0.0/24 is subnetted, 1 subnets
C 20.1.1.0 is directly connected, Serial1/1
D 192.168.1.0/24 [90/20640000] via 10.1.1.1, 00:25:09, Serial1/0
D 192.168.2.0/24 [90/20640000] via 20.1.1.2, 00:24:25, Serial1/1
通过show eigrp neighbors 可以看到邻居接口信息:
#show ip eigrp neighbors
IP-EIGRP neighbors for process 1
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 10.1.1.1 Se1/0 10 00:28:03 40 1000 0 5
1 20.1.1.2 Se1/1 13 00:27:49 40 1000 0 6
还有show ip eigrp interfaces ,可以看到邻接口,方便了解网络拓扑