深層含義
Kxe深度3G學院
R1(config)#router eigrp 1
R1(config-router)#no auto-summary
R1(config-router)#network 192.168.12.0
R1(config-router)#network 192.168.14.0
R2(config)#router eigrp 1
R2(config-router)#no auto-summary
R2(config-router)#network 192.168.12.0
R2(config-router)#network 192.168.23.0
R2(config-router)#network 2.2.2.2
R3(config)#router eigrp 1
R3(config-router)#no auto-summary
R3(config-router)#network 192.168.23.0
R3(config-router)#network 192.168.23.0
R3(config-router)#network 192.168.34.0
R(config)#router eigrp
R4(config-router)#no auto-summary
R4(config-router)#network 192.168.34.0
R4(config-router)#net 192.168.14.0
R4#show ip route
Gateway of last resort is not set
D 192.168.12.0/24 [90/3193856] via 192.168.34.3, 00:00:41, Serial2/1
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/2809856] via 192.168.14.1, 00:00:42, F0/0 192.168.14.0/24 is directly connected, FastEthernet0/0
D 192.168.23.0/24 [90/2681856] via 192.168.34.3, 00:00:42, Serial2/1
Kxe
C 192.168.34.0/24 is directly connected, Serial2/
\\說明了R4到R2的loopback 0 口是走的192.168.14.1這條鏈路,
R4#show ip eigrp topology
IP-EIGRP Topology Table for AS(1)/ID(192.168.34.4)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 2.2.2.2/32, 1 successors, FD is 2300416
via 192.168.14.1 (2323456/2297856), FastEthernet0/0 via 192.168.34.3 (2809856/2297856), Serial2/1 P 192.168.34.0/24, 1 successors, FD is 2169856
via Connected, Serial2/1
P 192.168.12.0/24, 1 successors, FD is 2195456
via 192.168.14.1 (2195456/2169856), FastEthernet0/0
P 192.168.14.0/24, 1 successors, FD is 51200
via Connected, FastEthernet0/0
P 192.168.23.0/24, 1 successors, FD is 2681856
via 192.168.34.3 (2681856/2169856), Serial2/1
\\在EIGRP的topology table裏看到了到達2.2.2.2 有兩條鏈路。192.168.14.1 和192.168.34.3 。由於192.168.14.1的FD小於192.168.34.3的FD因此在ROUTER TABLE 中只存放了這條,由192.168.34.3 的AD小於192.168.14.1 的FD因此符合了EIGRIP的等價負載條件。
實現等價的負載
R4(config)#int f0/0
R4(config-if)#delay 2000 更改接口的帶寬,在計算EIGRP度量值時,不須要在/10因此是2000
R4#show ip route
Gateway of last resort is not set
D 192.168.12.0/24 [90/
2681856] via
192.168.14.1, 00:04:21, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/
2809856] via
192.168.14.1, 00:04:21, FastEthernet0/0
[90/
2809856] via 192.168.34.3, 00:04:21, Serial2/1
C 192.168.14.0/24 is directly connected, FastEthernet0/0
D 192.168.23.0/24 [90/2681856] via 192.168.34.3, 00:04:21, Serial2/1
C 192.168.34.0/24 is directly connected, Serial2/1
以上看出了到2.2.2.2 走的是兩條鏈路 且他們的metric值同樣的因此實現了等價的負載均衡!
非等價的負載均衡:
先把R4的F0/0就可設置還原。
R4(config)#router eigrp 1
R4(config-router)#variance 2 variance表明了EIGRP支持等價的鏈路數目。(1-128)默認是一條鏈路
R4#show ip route
Gateway of last resort is not set
D 192.168.12.0/24 [90/2195456] via 192.168.14.1, 00:00:20, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2
[90/2323456] via
192.168.14.1, 00:00:20, FastEthernet0/0
[90/
2809856] via 192.168.34.3, 00:00:20, Serial2/1
C 192.168.14.0/24 is directly connected, FastEthernet0/0 \\非等價
D 192.168.23.0/24 [90/2681856] via 192.168.34.3, 00:00:20, Serial2/1
C 192.168.34.0/24 is directly connected, Serial2/
雖然到2.2.2.2 是走的兩條鏈路可是它們的metric是不同的。一個是:232456 另外一個是:2809856
因此如今我實現了非等價的負載均衡。