ZXR105900ESeriesCongurationGuide(IPv4Routing)
StepCommandFunction
2ZXR10(config-ospfv2)#maximum-paths<number>Setsthepath.Theswitch
supportsupto32pathsthat
havethesamecost.
CongurationExample
EnableOSPFonS1andS2,enablerouteloadbalancingbetweenS1andS2,and
congurethemaximumnumberofroutesthatcanbesupportedbyOSPFwhentheload
issharedinbalancedmodetotwo.
DeviceRouterID
S11.1.1.2
S21.1.1.3
Figure3-9OSPFRouteLoadBalancingCongurationExample
RunthefollowingcommandsonS1:
S1(config)#interfaceloopback1
S1(config-if-loopback1)#ipadderss1.1.1.2255.255.255.255
S1(config-if-loopback1)#exit
S1(config)#interfacevlan10
S1(config-if-vlan10)#ipaddress30.0.0.1255.255.255.252
S1(config-if-vlan10)#exit
S1(config)#interfacevlan20
S1(config-if-vlan20)#ipaddress30.0.1.1255.255.255.252
S1(config-if-vlan20)#exit
S1(config)#routerospf1
S1(config-ospf-1)#router-id1.1.1.2
S1(config-ospf-1)#network30.0.0.00.0.0.3area0
S1(config-ospf-1)#network30.0.1.00.0.0.3area0
S1(config-ospf-1)#network2.2.2.00.0.0.3area0
S1(config-ospf-1)#maximum-paths2
/*Setsthemaximumnumberofroutesthatcanbesupportedby
OSPFwhentheloadissharedinbalancedmodetotwo*/
3-28
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential