Cisco EIGRP 路由度量值計算實驗

172853281.jpg


一、如圖搭建拓撲,作基本配置,確保直連網絡連通性。網絡

二、配置EIGRPide

R1(config)#router eigrp 100oop

R1(config)#no au測試

R1(config)#network x.x.x.x x.x.x.xspa

三、配置完成EIGRP,測試全網的連通性。router

四、EIGRP的度量值計算公式爲:blog

256*{K1(10^7/帶寬)+K2(10^7/帶寬)/(256-負載)+K3(延遲)+K5/(可靠性+K4)}
默認狀況下,K1和K3是1,其餘的K值都是0.

因此一般狀況下,度量值=256×(10^7/最小帶寬+累積延時)接口

五、接口帶寬和延遲經過「show interface」查看ip


R4#show int f 2/0get

FastEthernet2/0 is up, line protocol is up

Hardware is AmdFE, address is cc03.1494.0020 (bia cc03.1494.0020)

Internet address is 24.24.24.4/24

MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Full-duplex, 100Mb/s, 100BaseTX/FX

----------------------------------------------------------------------------------

R1#show int loopback 0

Loopback0 is up, line protocol is up

Hardware is Loopback

Internet address is 1.1.1.1/24

MTU 1514 bytes, BW 8000000 Kbit, DLY 5000 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation LOOPBACK, loopback not set

---------------------------------------------------------------------------------

R2#show int f 0/0

FastEthernet0/0 is up, line protocol is up

Hardware is AmdFE, address is cc01.1494.0000 (bia cc01.1494.0000)

Internet address is 12.12.12.2/24

MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

---------------------------------------------------------------------------------

R4#show ip rout

Codes: C - connected, S - static, 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

i - IS-IS, su - IS-IS summary, 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


34.0.0.0/24 is subnetted, 1 subnets

C 34.34.34.0 is directly connected, FastEthernet3/0

/ 1.///0.0.0/24 is subnetted, 1 subnets

D 1.1.1.0 [90/158720] via 24.24.24.2, 01:09:05, FastEthernet2/0

2.0.0.0/24 is subnetted, 1 subnets

D 2.2.2.0 [90/156160] via 24.24.24.2, 00:26:13, FastEthernet2/0

3.0.0.0/24 is subnetted, 1 subnets

D 3.3.3.0 [90/156160] via 34.34.34.3, 01:08:54, FastEthernet3/0

4.0.0.0/24 is subnetted, 1 subnets

C 4.4.4.0 is directly connected, Loopback0

23.0.0.0/24 is subnetted, 1 subnets

D 23.23.23.0 [90/30720] via 34.34.34.3, 01:09:06, FastEthernet3/0

[90/30720] via 24.24.24.2, 01:09:06, FastEthernet2/0

24.0.0.0/24 is subnetted, 1 subnets

C 24.24.24.0 is directly connected, FastEthernet2/0

12.0.0.0/24 is subnetted, 1 subnets

D 12.12.12.0 [90/30720] via 24.24.24.2, 01:09:07, FastEthernet2/0

---------------------------------------------------------------------------------

根據以上信息,計算R4到達1.1.1.0網絡的度量值

[10^7/100000+(100+100+5000)/10]*256=158720


100000是到達1.1.1.0網絡的鏈路的最小帶寬,lookback口爲8000000;

100+100+5000是R4 F2/0,R2 F0/0, r1 lookback 0口的延遲之和


計算R4到達2.2.2.0網絡的度量值

[10^7/100000+(100+5000)/10]*256=156160


實驗結束

相關文章
相關標籤/搜索