The maximum load-balancing command sets the maximum number of equal-cost routes for load balancing.
The undo maximum load-balancing command restores the default value.
By default, load balancing is supported. For details about the maximum number of equal-cost routes, see the parameter value range.
Usage Scenario
If the destinations and costs of the multiple routes discovered by one routing protocol are the same, load balancing can be implemented among them, improving link usage on a network and reducing the network congestion caused by some overloaded links. However, routes are randomly selected for forwarding traffic, which complicates service traffic management. To address this problem, run the maximum load-balancing command to set the maximum number of equal-cost routes for load balancing based on network requirements.
Prerequisites
An IS-IS process has been created using the isis command.
Precautions
When the number of equal-cost routes on the network is greater than that specified in the maximum load-balancing command, valid routes are randomly selected for load balancing.
If the command is run in the IS-IS view, it takes effect only in the base topology. If the command is run in the IS-IS topology view, it takes effect only in the current topology.<HUAWEI> system-view [~HUAWEI] isis 100 [*HUAWEI-isis-100] undo maximum load-balancing
<HUAWEI> system-view [~HUAWEI] isis 100 [*HUAWEI-isis-100] maximum load-balancing 2