|
发表于 2009-12-28 10:07:13
|
显示全部楼层
R1(config)#router eigrp 1 Kxe
R1(config-router)#no auto-summary Kxe
R1(config-router)#network 192.168.12.0 Kxe
R1(config-router)#network 192.168.14.0 Kxe
R2(config)#router eigrp 1 Kxe
R2(config-router)#no auto-summary Kxe
R2(config-router)#network 192.168.12.0 Kxe
R2(config-router)#network 192.168.23.0 Kxe
R2(config-router)#network 2.2.2.2 Kxe
R3(config)#router eigrp 1 Kxe
R3(config-router)#no auto-summary Kxe
R3(config-router)#network 192.168.23.0 Kxe
R3(config-router)#network 192.168.23.0 Kxe
R3(config-router)#network 192.168.34.0 Kxe
R(config)#router eigrp 1 Kxe
R4(config-router)#no auto-summary Kxe
R4(config-router)#network 192.168.34.0 Kxe
R4(config-router)#net 192.168.14.0Kxe
R4#show ip route Kxe
Gateway of last resort is not set Kxe
D 192.168.12.0/24 [90/3193856] via 192.168.34.3, 00:00:41, Serial2/1 Kxe
2.0.0.0/32 is subnetted, 1 subnets Kxe
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 Kxe
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/1Kxe
\\\\说明了R4到R2的loopback 0 口是走的192.168.14.1这条链路,原因如下:Kxe
R4#show ip eigrp topology Kxe
IP-EIGRP Topology Table for AS(1)/ID(192.168.34.4) Kxe
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, Kxe
r - reply Status, s - sia Status Kxe
P 2.2.2.2/32, 1 successors, FD is 2300416 Kxe
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 Kxe
via Connected, Serial2/1 Kxe
P 192.168.12.0/24, 1 successors, FD is 2195456 Kxe
via 192.168.14.1 (2195456/2169856), FastEthernet0/0 Kxe
P 192.168.14.0/24, 1 successors, FD is 51200 Kxe
via Connected, FastEthernet0/0 Kxe
P 192.168.23.0/24, 1 successors, FD is 2681856 Kxe
via 192.168.34.3 (2681856/2169856), Serial2/1Kxe
Kxe
\\\\在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的等价负载条件。Kxe
Kxe
实现等价的负载Kxe
R4(config)#int f0/0 Kxe
R4(config-if)#delay 2000 更改接口的带宽,在计算EIGRP度量值时,不需要在/10所以是2000Kxe
R4#show ip routeKxe
Gateway of last resort is not set Kxe
D 192.168.12.0/24 [90/2681856] via 192.168.14.1, 00:04:21, FastEthernet0/0 Kxe
2.0.0.0/32 is subnetted, 1 subnets Kxe
D 2.2.2.2 [90/2809856] via 192.168.14.1, 00:04:21, FastEthernet0/0 Kxe
[90/2809856] via 192.168.34.3, 00:04:21, Serial2/1 Kxe
C 192.168.14.0/24 is directly connected, FastEthernet0/0 Kxe
D 192.168.23.0/24 [90/2681856] via 192.168.34.3, 00:04:21, Serial2/1 Kxe
C 192.168.34.0/24 is directly connected, Serial2/1Kxe
以上看出了到2.2.2.2 走的是两条链路 且他们的metric值一样的所以实现了等价的负载均衡!Kxe深度3G学院
非等价的负载均衡:Kxe
先把R4的F0/0就可设置还原。Kxe
Kxe
R4(config)#router eigrp 1 Kxe
R4(config-router)#variance 2 variance代表了EIGRP支持等价的链路数目。(1-128)默认是一条链路 Kxe
R4#show ip route Kxe
Gateway of last resort is not set Kxe
D 192.168.12.0/24 [90/2195456] via 192.168.14.1, 00:00:20, FastEthernet0/0 Kxe
2.0.0.0/32 is subnetted, 1 subnets Kxe
D 2.2.2.2 [90/2323456] via 192.168.14.1, 00:00:20, FastEthernet0/0 Kxe
[90/2809856] via 192.168.34.3, 00:00:20, Serial2/1 Kxe
C 192.168.14.0/24 is directly connected, FastEthernet0/0 \\\\非等价 Kxe
D 192.168.23.0/24 [90/2681856] via 192.168.34.3, 00:00:20, Serial2/1 Kxe
C 192.168.34.0/24 is directly connected, Serial2/1Kxe
Kxe
虽然到2.2.2.2 是走的两条链路但是它们的metric是不一样的。一个是:232456 另一个是:2809856Kxe
所以现在我实现了非等价的负载均衡。Kxe |
11#
2009-12-28 10:07:13
回复(0)
收起回复
|