高级距离矢量路由协议 EIGRP

EIGRP基本概念

1、EIGRP的关键技术

  • 邻居发现/恢复机制

在邻居间使用HELLO报文

  • 可靠的传输协议(RTP)

确保EIGRP报文可靠,有序地传送到所有邻居

  • DUAL(扩散更新算法)

为去往每个目标选择最小开销,无环路的路径

  • 协议无关模块(PDMs)

EIGRP支持为IP,AppleTalk,IPX等协议计算路由

2、邻居发现/恢复

EIGRP的路由器,主动建立与其邻居的关系

建立邻接使用Hello报文发送每5或60秒

如果邻居错过了连续3个Hello报文的路由将被视为无效

默认值=15秒或180秒

3、AD 和 FD

通告距离(AD):也称为报告距离, 下一跳路由器到目的地的度量值.

可行距离(FD):是本地路由器到达目的地的度量值.

4、后继者和可行后继

高级距离矢量路由协议 EIGRP_第1张图片

后继者 ( successor )

后继者是一个相邻路由器具有最低成本的路径到目的地(最低FD),是保证不会循环的一部分。后继路由用于转发数据包。如果它们具有相同的FD,可以存在多条相同路径。

可行后继(Feasible successor )

一个可行后继是离目的地很近的邻居,但不是最低开销的。一个可行后继确保一个无环拓扑,因为它的AD必须小于后继的FD。可行后继和后继在同一时间进行选择,但它只保存在拓扑表作为备份路径。拓扑表中可以保存多个可行后继为一个目的地。

5、EIGRP Packets

高级距离矢量路由协议 EIGRP_第2张图片

6、Initial Route Discovery

高级距离矢量路由协议 EIGRP_第3张图片

7、EIGRP度量值计算

EIGRP使用一个复合度量,可根据以下指标:

带宽 使用最小的带宽(BW)

可靠性 是衡量一个链接将失败的可能性

延迟 延迟是衡量一个包需要穿越路由的时间

负载 反映了多少流量是使用链接

MTU

默认情况下使用,只有带宽和延迟.

注:这往往是不正确地指出,EIGRP的还可以使用路径中最小的MTU。事实上,MTU是包含在EIGRP路由更新,但实际上并没有使用metric计算。

8、EIGRP Metrics Calculation Example

高级距离矢量路由协议 EIGRP_第4张图片

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值的垒加

9、EIGRP 配置

(1)指定将参与EIGRP的直连网络

  • network参数可以是网络地址、子网地址或者直连接口的地址,它决定了路由器将哪些链路上发送和侦听通告以及通告哪些网络。配置network命令时,应只指定将通过它发送和接收更新的接口.
  • wildcard-mask(可选)指出如何解释网络号,其中0表示必须匹配,1表示无关紧要。例如,0.0.255.255表示前两个字节必须匹配。

(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

10、实例

高级距离矢量路由协议 EIGRP_第5张图片

0x01配置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

高级距离矢量路由协议 EIGRP_第6张图片

理解:

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。

0x02负载均衡

做去往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

0x03MD5认证

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

0x04手动地址汇总

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

汇总前:

高级距离矢量路由协议 EIGRP_第7张图片

汇总后:

高级距离矢量路由协议 EIGRP_第8张图片

0x05配置被动接口

被动接口(passive interface)一般应用于优化,比如在我们的拓扑中R1上有一个环回地址,向lo0口发送EIGRP报文是没必要的,当我们在EIGRP路由进程下启用lo0的被动接口后,R2将不再向lo0发送任何EIGRP报文,但是lo0的路由还是会被R2发送出去。

R1(config)#router eigrp 100
R1(config-router)#passive-interface loopback0

你可能感兴趣的:(路由交换技术)