非等价负载平衡
试验拓扑:
基本配置:
R1#
interface Serial0/1
ip address 16.16.16.1 255.255.255.0
interface Ethernet1/1
ip address 61.61.61.1 255.255.255.0
router eigrp 90
variance 2
network 1.0.0.0
network 16.0.0.0
network 61.0.0.0
no auto-summary
R6#
interface Serial0/1
ip address 16.16.16.6 255.255.255.0
interface Serial0/2
ip address 26.26.26.6 255.255.255.0
bandwidth 1000000
interface Ethernet1/1
ip address 61.61.61.6 255.255.255.0
router eigrp 90
variance 2
network 6.0.0.0
network 16.0.0.0
network 26.0.0.0
network 61.0.0.0
no auto-summary
interface Loopback0
ip address 2.2.2.2 255.255.255.0
interface Serial0/2
ip address 26.26.26.2 255.255.255.0
router eigrp 90
network 2.0.0.0
network 26.0.0.0
no auto-summary
试验验证:
未配置variance 2时的路由表和拓扑表
R1#sh ip route
Gateway of last resort is not set
16.0.0.0/24 is subnetted, 1 subnets
C
16.16.16.0 is directly connected, Serial0/1
1.0.0.0/24 is subnetted, 1 subnets
C
1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
D
2.2.2.0 [90/2323456] via 61.61.61.6, 00:00:06, Ethernet1/1
6.0.0.0/24 is subnetted, 1 subnets
D
6.6.6.0 [90/409600] via 61.61.61.6, 00:00:06, Ethernet1/1
26.0.0.0/24 is subnetted, 1 subnets
D
26.26.26.0 [90/2195456] via 61.61.61.6, 00:00:06, Ethernet1/1
61.0.0.0/24 is subnetted, 1 subnets
C
61.61.61.0 is directly connected, Ethernet1/1
R1#sh ip eigrp topo
IP-EIGRP Topology Table for AS(90)/ID(1.1.1.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 1.1.1.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 2.2.2.0/24, 1 successors, FD is 2323456
via 61.61.61.6 (2323456/2297856), Ethernet1/1
via 16.16.16.6 (2809856/2297856), Serial0/1
P 6.6.6.0/24, 1 successors, FD is 409600
via 61.61.61.6 (409600/128256), Ethernet1/1
via 16.16.16.6 (2297856/128256), Serial0/1
P 16.16.16.0/24, 1 successors, FD is 2169856
via Connected, Serial0/1
P 26.26.26.0/24, 1 successors, FD is 2195456
via 61.61.61.6 (2195456/2169856), Ethernet1/1
via 16.16.16.6 (2681856/2169856), Serial0/1
P 61.61.61.0/24, 1 successors, FD is 281600
via Connected, Ethernet1/1
配置variance 2时的路由表
R1#sh ip route
16.0.0.0/24 is subnetted, 1 subnets
C
16.16.16.0 is directly connected, Serial0/1
1.0.0.0/24 is subnetted, 1 subnets
C
1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
D
2.2.2.0 [90/2323456] via 61.61.61.6, 00:28:11, Ethernet1/1
[90/2809856] via 16.16.16.6, 00:28:11, Serial0/1
6.0.0.0/24 is subnetted, 1 subnets
D
6.6.6.0 [90/409600] via 61.61.61.6, 00:28:11, Ethernet1/1
26.0.0.0/24 is subnetted, 1 subnets
D
26.26.26.0 [90/2195456] via 61.61.61.6, 00:28:11, Ethernet1/1
[90/2681856] via 16.16.16.6, 00:28:11, Serial0/1
61.0.0.0/24 is subnetted, 1 subnets
C
61.61.61.0 is directly connected, Ethernet1/1