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 setting.
By default, the maximum number of equal-cost routes on the S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720S-SI, or S6720-SI is 8, and the maximum number of equal-cost routes on the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, or S6730S-S is 16.
Product |
Support |
---|---|
S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S |
Supported |
S2720-EI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S6720-LI, and S6720S-LI |
Not supported |
Parameter | Description | Value |
---|---|---|
number |
Specifies the maximum number of equal-cost routes. |
The value is an integer that ranges from 1 to 8 on the S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720S-SI, or S6720-SI. The value ranges from 1 to 16 on the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, or S6730S-S. |
Usage Scenario
If a routing protocol discovers multiple routes with the same cost to a single destination, traffic can be balanced among these routes. 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 balanced among 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:
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 the equal-cost routes.
<HUAWEI> system-view
[HUAWEI] ospf 100
[HUAWEI-ospf-100] maximum load-balancing 2
# Restore the default maximum number of equal-cost routes for carrying out load balancing.
<HUAWEI> system-view
[HUAWEI] ospf 100
[HUAWEI-ospf-100] undo maximum load-balancing