EIGRP 既支持等价负载均衡 也支持非等价负载均衡 下面做非等价负载均衡
首先要满足的是要有FS 如果只有succeesor 没有FS 那么就不会产生非等价不在均衡
非等价负载均衡主要是调variance值 variance值*FS的FD>successor的FD就可以了。
从上面的拓扑图很容易看出去往1.1.1.1这个网段肯定是走以太网口 因为以太网的带宽大
R3#show ip eigrp topology all-links
IP-EIGRP Topology Table for AS(90)/ID(3.3.3.3)
P 1.1.1.1/32, 1 successors, FD is 409600, serno 31
via 13.1.1.1 (409600/128256), Ethernet1/0
via 23.1.1.2 (2809856/2297856), Serial0/1 AD<successor的FD 不能成为FS
P 2.2.2.2/32, 1 successors, FD is 2297856, serno 29
via 23.1.1.2 (2297856/128256), Serial0/1
via 13.1.1.1 (2323456/2297856), Ethernet1/0
P 3.3.3.3/32, 1 successors, FD is 128256, serno 8
via Connected, Loopback0
P 12.1.1.0/24, 1 successors, FD is 2195456, serno 32
via 13.1.1.1 (2195456/2169856), Ethernet1/0
via 23.1.1.2 (2681856/2169856), Serial0/1
P 13.1.1.0/24, 1 successors, FD is 281600, serno 24
via Connected, Ethernet1/0
P 23.1.1.0/24, 1 successors, FD is 2169856, serno 1
via Connected, Serial0/1
我们就要通过调整K值来让它成为FS 我们调整延迟 把以太口的延迟调整为100000
R3(config)#int e1/0
R3(config-if)#delay 10000
重新查看拓扑表
P 1.1.1.1/32, 1 successors, FD is 2809856, serno 45
via 23.1.1.2 (2809856/2297856), Serial0/1
via 13.1.1.1 (2944000/128256), Ethernet1/0 AD<successor的FD 成为了FS
现在我们可以做非等价负载均衡了 只需将variance值调整为2即可
R3(config)#router eigrp 90
R3(config-router)#variance 2
查看R3的路由表
R3#show ip route
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/2809856] via 23.1.1.2, 00:00:02, Serial0/1
[90/2944000] via 13.1.1.1, 00:00:02, Ethernet1/0
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/2297856] via 23.1.1.2, 00:00:02, Serial0/1
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.1.1.0 is directly connected, Serial0/1
12.0.0.0/24 is subnetted, 1 subnets
D 12.1.1.0 [90/2681856] via 23.1.1.2, 00:00:02, Serial0/1
[90/4729856] via 13.1.1.1, 00:00:02, Ethernet1/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, Ethernet1/0
R3#show ip route 1.1.1.1 255.255.255.255
Routing entry for 1.1.1.1/32
Known via "eigrp 90", distance 90, metric 2809856, type internal
Redistributing via eigrp 90
Last update from 13.1.1.1 on Ethernet1/0, 00:00:16 ago
Routing Descriptor Blocks:
* 23.1.1.2, from 23.1.1.2, 00:00:16 ago, via Serial0/1
Route metric is 2809856, traffic share count is 240
Total delay is 45000 microseconds, minimum bandwidth is 1544 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
13.1.1.1, from 13.1.1.1, 00:00:16 ago, via Ethernet1/0
Route metric is 2944000, traffic share count is 229
Total delay is 105000 microseconds, minimum bandwidth is 10000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
可以看出从s0/1发出240个包 e1/0发出229个包