因此对于1.1.1.0/24的度量计算应该为:
(1000000/10000+6000/10)*256=409600
并且该度量大于RD=128256,因此成为FD。
5.通过上面的分析,我们可以总结出调整EIGRP度量的办法:
a) 调整接口带宽
b) 调整接口延迟
c) 调整K值
d) 利用偏移列表(offset-list)
R1(config)#int lo0
R1(config-if)#bandwidth 1000
调整R1的环回口带宽为1000Kbit,注意,带宽为整条链路上的最小带宽,并且为入接口带宽。
R1(config)#int lo0
R1(config-if)#delay 1
调整R1的环回口延迟为10微秒,注意此处的单位。延迟为整条链路延迟之和,并且为入接口延迟。
R2(config)#router eigrp 100
R2(config-router)#metric weights
<0-8> Type Of Service (Only TOS 0 supported)
R2(config-router)#metric weights 0
<0-255> K1
R2(config-router)#metric weights 0 1
<0-255> K2
R2(config-router)#metric weights 0 1 0
<0-255> K3
R2(config-router)#metric weights 0 1 0 1
<0-255> K4
R2(config-router)#metric weights 0 1 0 1 0
<0-255> K5
R2(config-router)#metric weights 0 1 0 1 0 0
R2(config-router)#metric weights 0 1 0 1 0 0
对R2的K值进行调整。第一个数值为TOS字段,永远为1。后面五个数字分别是K1到K5。如果调整K值,需要保持邻居之间K值一致,否则将会无法建立邻居。
偏移列表可以对某一条特殊路由进行度量调整。
在R2上对来自R1的1.1.1.1/24的度量加1,使用偏移列表完成。
R2(config)#access-list 1 permit 1.1.1.0 0.0.0.255
R2(config)#router eigrp 100
R2(config-router)#offset-list ? //调用ACL 1
<0-99> Access list of networks to apply offset (0 selects all networks)
<1300-1999> Access list of networks to apply offset (expanded range)
WORD Access-list name
R2(config-router)#offset-list 1
in Perform offset on incoming updates
out Perform offset on outgoing updates
R2(config-router)#offset-list 1 in ? //偏移值
<0-2147483647> Offset
R2(config-router)#offset-list 1 in 1
Async Async interface
BVI Bridge-Group Virtual Interface
CDMA-Ix CDMA Ix interface
Ctunnel Ctunnel interface
Dialer Dialer interface
Ethernet IEEE 802.3
Lex Lex interface
Loopback Loopback interface
MFR Multilink Frame Relay bundle interface
Multilink Multilink-group interface
Null Null interface
Port-channel Ethernet Channel of interfaces
Tunnel Tunnel interface
Vif PGM Multicast Host interface
Virtual-PPP Virtual PPP interface
Virtual-Template Virtual Template interface
Virtual-TokenRing Virtual TokenRing
R2(config-router)#offset-list 1 in 1 e0/1
R2(config-router)#offset-list 1 in 1 e0/1
R2(config-router)#end
之后邻居会发生一次抖动。
*Mar 1 02:20:51.287: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.10.12.1
(Ethernet0/1) is resync: route configuration changed
再次查看关于来自R1的1.1.1.0/24的路由度量为:
来源: http://www.bubuko.com/infodetail-2426525.html