maximum load-balancing (OSPF view)
Use maximum load-balancing to set the maximum number of equal-cost multi-path (ECMP) routes for load balancing.
Use undo maximum load-balancing to restore the default.
Syntax
maximum load-balancing number
undo maximum load-balancing
Default
The maximum number of OSPF ECMP routes equals the maximum number of ECMP routes supported by the system.
Views
OSPF view
Predefined user roles
network-admin
Parameters
number: Specifies the maximum number of ECMP routes. Load balancing is not implemented when the value is 1. The value range for the number argument depends on the maximum number of ECMP routes supported by the system. You can use the max-ecmp-num command to set the maximum number of ECMP routes supported by the system to m. After a reboot, the value range for the number argument is 1 to m.
Examples
# Set the maximum number of ECMP routes to 2.
<Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] maximum load-balancing 2
Related commands
max-ecmp-num