EIGRP非等价负载均衡

EIGRP的非等价路由负载均衡是指:
从路由器A到达指定目的地有多条路径,但这些路径的开销 (带宽/延时)不同,默认情况下EIGRP只会选择开销低的路径来传输,下面实验将会让eigrp从两条不同带宽的链路上实现负载均衡

 

 

按照上图配置好接口与EIGRP,
R4:
interface Serial0/0
 bandwidth 256
 ip address 155.1.0.4 255.255.255.0
 encapsulation frame-relay
 clock rate 2000000
 frame-relay map ip 155.1.0.5 405 broadcast
 no frame-relay inverse-arp
interface Serial0/1
 bandwidth 64
 ip address 155.1.45.4 255.255.255.0
 clock rate 2000000
router eigrp 100
 network 150.1.4.4 0.0.0.0
 network 155.1.0.4 0.0.0.0
 network 155.1.45.4 0.0.0.0
 no auto-summary

 
R5:
interface Serial0/0
 bandwidth 256
 ip address 155.1.0.5 255.255.255.0
 encapsulation frame-relay
 clock rate 2000000
 frame-relay map ip 155.1.0.4 504 broadcast
 no frame-relay inverse-arp
interface Serial0/1
 bandwidth 64
 ip address 155.1.45.5 255.255.255.0
 clock rate 9600
router eigrp 100
 network 150.1.5.5 0.0.0.0
 network 155.1.0.5 0.0.0.0
 network 155.1.45.5 0.0.0.0

 
配置非等价负载均衡之前:我们查看路由表,看到只有1条路由
R5# show ip route eigrp
     150.1.0.0/24 is subnetted, 2 subnets
D       150.1.4.0 [90/10639872] via 155.1.0.4, 00:00:06, Serial0/0

 
查看拓扑表,注意红色部分,其中是两条链路的cost值,我们用 40640000/ 10639872<4
R5# show ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID(150.1.5.5)

 
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - reply Status, s - sia Status

 
P 150.1.5.0/24, 1 successors, FD is 128256
        via Connected, Loopback0
P 150.1.4.0/24, 1 successors, FD is 10639872
        via 155.1.0.4 (10639872/128256), Serial0/0
        via 155.1.45.4 (40640000/128256), Serial0/1
P 155.1.0.0/24, 1 successors, FD is 10511872
        via Connected, Serial0/0
P 155.1.45.0/24, 1 successors, FD is 40512000
        via Connected, Serial0/1

 
非等价的路由配置
R5:
router eigrp 100
variance 4

 
配置之后
我们再看R5的路由表,是不是多了1条路由
R5#show ip route eigrp
     150.1.0.0/24 is subnetted, 2 subnets
D       150.1.4.0 [90/40640000] via 155.1.45.4, 00:00:10, Serial0/1
               [90/10639872] via 155.1.0.4, 00:00:10, Serial0/0

 

你可能感兴趣的:(负载均衡,EIGRP,非等价)