在邻居间使用HELLO报文
确保EIGRP报文可靠,有序地传送到所有邻居
为去往每个目标选择最小开销,无环路的路径
EIGRP支持为IP,AppleTalk,IPX等协议计算路由
EIGRP的路由器,主动建立与其邻居的关系
建立邻接使用Hello报文发送每5或60秒
如果邻居错过了连续3个Hello报文的路由将被视为无效
默认值=15秒或180秒
通告距离(AD):也称为报告距离, 下一跳路由器到目的地的度量值.
可行距离(FD):是本地路由器到达目的地的度量值.
后继者 ( successor )
后继者是一个相邻路由器具有最低成本的路径到目的地(最低FD),是保证不会循环的一部分。后继路由用于转发数据包。如果它们具有相同的FD,可以存在多条相同路径。
可行后继(Feasible successor )
一个可行后继是离目的地很近的邻居,但不是最低开销的。一个可行后继确保一个无环拓扑,因为它的AD必须小于后继的FD。可行后继和后继在同一时间进行选择,但它只保存在拓扑表作为备份路径。拓扑表中可以保存多个可行后继为一个目的地。
EIGRP使用一个复合度量,可根据以下指标:
带宽 使用最小的带宽(BW)
可靠性 是衡量一个链接将失败的可能性
延迟 延迟是衡量一个包需要穿越路由的时间
负载 反映了多少流量是使用链接
MTU
默认情况下使用,只有带宽和延迟.
注:这往往是不正确地指出,EIGRP的还可以使用路径中最小的MTU。事实上,MTU是包含在EIGRP路由更新,但实际上并没有使用metric计算。
metric值的计算方法:
m e t r i c 值 = ( 1 0 7 / B W + d l y / 10 ) ∗ 256 metric值=(10^7/BW+dly/10)*256 metric值=(107/BW+dly/10)∗256
BW:最小带宽
dly:延迟之和,路由传递方向所有入接口的dly值的垒加
(1)指定将参与EIGRP的直连网络
(2)检验 EIGRP 配置
sh ip route eigrp
sh ip protocols
sh ip eigrp interfaces
sh ip eigrp neighbors
sh ip eigrp topology
sh ip eigrp traffic
sh ip route eigrp
R1(config)#router eigrp 100
R1(config-router)#network 12.1.1.0 0.0.0.255
//R1(config-router)#network 12.1.1.1 0.0.0.0
//R1(config-router)#network 12.0.0.0
//R1(config-router)#network 12.1.1.0
R1(config-router)#network 11.1.1.0 0.0.0.255
R1(config-router)#network 13.1.1.0 0.0.0.255
R1(config-router)#no auto-summary
R2(config)#router eigrp 100
R2(config-router)#network 12.1.1.0 0.0.0.255
R2(config-router)#network 24.1.1.0 0.0.0.255
R2(config-router)#no auto-summary
R3(config)#router eigrp 100
R3(config-router)#network 13.1.1.0 0.0.0.255
R3(config-router)#network 34.1.1.0 0.0.0.255
R3(config-router)#no auto-summary
R4(config)#router eigrp 100
R4(config-router)#network 24.1.1.0 0.0.0.255
R4(config-router)#network 34.1.1.0 0.0.0.255
R4(config-router)#network 44.1.1.0 0.0.0.255
R4(config-router)#no auto-summary
sh ip eigrp neighbors
sh ip eigrp topology
sh ip eigrp topology all-links
sh ip route
sh ip route eigrp
理解:
R1#sh ip eigrp topology all-links
---省略----
P 44.1.1.0/24, 2 successors, FD is 158720
via 13.1.1.2 (158720/156160), FastEthernet0/0
via 12.1.1.2 (2300416/156160), Serial0/3/0
(2300416/156160)对应的是(FD/AD)用于计算metric值,从而寻找S和FS。
做去往44.1.1.0网络的非定价负载均衡
计算v值:v*S FD > FS FD
即:v*158720>2300416,得到v=15
R1(config)#router eigrp 100
R1(config-router)#variance 15
R3(config)#key chain zzc
R3(config-keychain)#key 100
R3(config-keychain-key)#key-string text
R3(config)#int fa0/1
R3(config-if)#ip authentication mode eigrp 100 md5
R3(config-if)#ip authentication key-chain eigrp 100 zzc
R4(config)#key chain zzc
R4(config-keychain)#key 100
R4(config-keychain-key)#key-string text
R4(config)#int fa0/1
R4(config-if)#ip authentication mode eigrp 100 md5
R4(config-if)#ip authentication key-chain eigrp 100 zzc
R4(config)#int fa0/0
R4(config-if)#ip summary-address eigrp 100 44.1.0.0 255.255.252.0
R4(config)#int fa0/1
R4(config-if)#ip summary-address eigrp 100 44.1.0.0 255.255.252.0
汇总前:
汇总后:
被动接口(passive interface)一般应用于优化,比如在我们的拓扑中R1上有一个环回地址,向lo0口发送EIGRP报文是没必要的,当我们在EIGRP路由进程下启用lo0的被动接口后,R2将不再向lo0发送任何EIGRP报文,但是lo0的路由还是会被R2发送出去。
R1(config)#router eigrp 100
R1(config-router)#passive-interface loopback0