Setting the Maximum Number of Equal-Cost Routes
Procedure
- Run system-view
The system view is displayed.
- Run ospfv3 [ process-id ]
The OSPFv3 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.
If the number of equal-cost routes is greater than number specified in the maximum load-balancing number command, routes are selected for load balancing based on the following criteria:
- Route priority: Routes with smaller priority values are selected for load balancing.
- Interface index: If routes have the same priority, those with greater interface index values are selected for load balancing.
- Next hop IP address: If routes have the same priority and interface index, those with larger IP addresses are selected for load balancing.
- (Optional) Run nexthop router-id interface-type interface-number weight value
The preference for equal-cost routes is set.
OSPFv3 selects a next hop from these equal-cost routes according to the weight. The smaller the weight is, the higher the route preference is.
By default, the preference is not set for equal-cost routes. That is, equal-cost routes forward packets at the same time for load balancing.
- Run commit
The configuration is committed.