maximum load-balancing (OSPF)
Function
The maximum load-balancing command sets the maximum number of equal-cost routes for carrying out load balancing.
The undo maximum load-balancing command restores the default setting.
By default, the maximum number of equal-cost routes is 8.
Parameters
Parameter | Description | Value |
---|---|---|
number | Specifies the maximum number of equal-cost routes. | The value is an integer that ranges from 1 to 8. |
Usage Guidelines
Usage Scenario
If a routing protocol discovers multiple routes with the same cost to a single destination, they can carry out load balancing. The maximum load-balancing command sets the maximum number of equal-cost routes that can carry out load balancing. This optimizes the routing policy and ensures traffic forwarding on a complex network.
Configuration Impact
Packets will be load-balanced by multiple equal-cost routes to a single destination.
Follow-up Procedure
If more existing equal-cost OSPF routes than the value set using the maximum load-balancing command are available, if equal-cost routes need to be specified for load balancing, the nexthop ip-address weight value command allows routes with a specified weight to carry out load balancing.
Precautions
To disable load balancing, set the value of number to 1.
Example
# Set the maximum number of the equal-cost routes.
<AC6605> system-view
[AC6605] ospf 100
[AC6605-ospf-100] maximum load-balancing 2
# Restore the default maximum number of equal-cost routes for carrying out load balancing.
<AC6605> system-view
[AC6605] ospf 100
[AC6605-ospf-100] undo maximum load-balancing