maximum load-balancing (OSPFv3)
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.
The default maximum number of equal-cost OSPFv3 routes for carrying out load balancing is 8.
Parameters
Parameter | Description | Value |
---|---|---|
number | Specifies the maximum number of equal-cost routes. | The value is an integer ranging from 1 to 8. |
Usage Guidelines
Applicable Environment
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.
Effect
Packets will be load-balanced by multiple equal-cost routes to a single destination.
Follow-up Procedure
If more existing equal-cost OSPFv3 routes than the value set using the maximum load-balancing command are available, valid routes are selected for load balancing based on the following criteria:
- Route preference: Routes with lower preferences are selected for load balancing.
- Interface index: If routes have the same priorities, routes with higher interface index values are selected for load balancing.
- Next hop IP address: If routes have the same priorities and interface index values, routes with larger IP address are selected for load balancing.
The nexthop 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 equal-cost routes that OSPFv3 can support to 3.
<AC6605> system-view
[AC6605] ospfv3 1
[AC6605-ospfv3-1] maximum load-balancing 3
# Restore the default maximum number of equal-cost routes for carrying out load balancing.
<AC6605> system-view
[AC6605] ospfv3 1
[AC6605-ospfv3-1] undo maximum load-balancing