1、负载均衡解析
OSPF只支持等价负载均衡,默认为4条线路负载均衡,最大支持6条线路负载均衡,我们可以在OSPF路由进程下通过maximum-paths 6修改OSPF支持的负载均衡线路数。
2、实验拓扑
3、实验配置
R1配置
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface Ethernet0/0
ip address 192.168.0.1 255.255.255.0
interface Ethernet0/1
ip address 192.168.1.1 255.255.255.0
interface Ethernet0/2
ip address 192.168.2.1 255.255.255.0
interface Ethernet0/3
ip address 192.168.3.1 255.255.255.0
interface Ethernet1/0
ip address 192.168.4.1 255.255.255.0
interface Ethernet1/1
ip address 192.168.5.1 255.255.255.0
router ospf 110
network 1.1.1.0 0.0.0.255 area 0
network 192.168.0.0 0.0.255.255 area 0
R2配置
interface Loopback0
ip address 2.2.2.2 255.255.255.0
interface Ethernet0/0
ip address 192.168.0.2 255.255.255.0
interface Ethernet0/1
ip address 192.168.1.2 255.255.255.0
interface Ethernet0/2
ip address 192.168.2.2 255.255.255.0
interface Ethernet0/3
ip address 192.168.3.2 255.255.255.0
interface Ethernet1/0
ip address 192.168.4.2 255.255.255.0
interface Ethernet1/1
ip address 192.168.5.2 255.255.255.0
router ospf 110
network 2.2.2.0 0.0.0.255 area 0
network 192.168.0.0 0.0.255.255 area 0
4、负载均衡测试
修改maximum-paths前
修改maximum-paths后
本文出自 “开源殿堂” 博客,请务必保留此出处http://kaiyuandiantang.blog.51cto.com/10699754/1718714
原文地址:http://kaiyuandiantang.blog.51cto.com/10699754/1718714