< 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.

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.

The undo maximum load-balancing command restores the default maximum number of 8 equal-cost routes that are discovered by OSPFv3 for load balancing.

Follow-up Procedure

If more existing equal-cost OSPFv3 routes than the value set using the maximum load-balancing command are available, the system randomly selects equal-cost routes equal to the value set using this command to carry out 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 2.

<sysname> system-view
[sysname] ospfv3 1
[sysname-ospfv3-1] maximum load-balancing 2

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

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