< Home

maximum load-balancing (OSPFv3)

Function

The maximum load-balancing command sets the maximum number of equal-cost routes for carrying out load balancing.

The undo maximum load-balancing command restores the default setting.

The default maximum number of equal-cost OSPFv3 routes for carrying out load balancing is 8.

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

Format

maximum load-balancing number

undo maximum load-balancing

Parameters

Parameter Description Value

number

Specifies the maximum number of equal-cost routes.

The value is an integer ranging from 1 to 8.

Views

OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

Applicable Environment

If a routing protocol discovers multiple routes with the same cost to a single destination, they can carry out load balancing. 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.

Effect

Packets will be load-balanced by multiple equal-cost routes to a single destination.

Load balancing is performed in either per-flow or per-packet mode. By default, packets are load-balanced in per-flow mode.

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:

  • Route preference: Routes with lower preferences are selected for load balancing.
  • Interface index: If routes have the same priorities, routes with higher interface index values are selected for load balancing.
  • Next hop IP address: If routes have the same priorities and interface index values, routes with larger IP address are selected for load balancing.

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.

Example

# Set the maximum number of equal-cost routes that OSPFv3 can support to 3.

<HUAWEI> system-view
[HUAWEI] ospfv3 1
[HUAWEI-ospfv3-1] maximum load-balancing 3

# Restore the default maximum number of equal-cost routes for carrying out load balancing.

<HUAWEI> system-view
[HUAWEI] ospfv3 1
[HUAWEI-ospfv3-1] undo maximum load-balancing
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >