Setting the Maximum Number of Equal-Cost Routes
Context
A CloudEngine 12800 and 12800E series switches supports load balancing among equal-cost routes. That is, you can configure multiple routes, which have the same destination and preference.
Procedure
- Run system-view
The system view is displayed.
- Run ospf [ process-id ]
The OSPF process view is displayed.
- Run maximum load-balancing number
By default, load balancing is supported and a maximum of 128 equal-cost routes can participate in load balancing.
When the number of equal-cost routes is greater than the number specified in the maximum load-balancing command, OSPF selects valid routes for load balancing according to the following criteria:- Route preference: Routes with higher preferences are selected for load balancing.
- Interface index: If routes have the same preference, routes with larger interface indexes are selected for load balancing.
- Next-hop IP address: If routes have the same preference and same interface index, routes with larger next-hop IP addresses are selected for load balancing.
- Run commit
The configuration is committed.