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.
| Parameter | Description | Value |
|---|---|---|
| number | Specifies the maximum number of equal-cost routes. | The value is an integer ranging from 1 to 8 |
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.
The undo maximum load-balancing command restores the default maximum number of 8 equal-cost routes that are discovered by OSPFv3 for load balancing.
Follow-up Procedure
If more existing equal-cost OSPFv3 routes than the value set using the maximum load-balancing command are available, the system randomly selects equal-cost routes equal to the value set using this command to carry out 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.
# Set the maximum number of equal-cost routes that OSPFv3 can support to 2.
<sysname> system-view
[sysname] ospfv3 1
[sysname-ospfv3-1] maximum load-balancing 2
# Restore the default maximum number of equal-cost routes for carrying out load balancing.
<sysname> system-view
[sysname] ospfv3 1
[sysname-ospfv3-1] undo maximum load-balancing