< Home

load-balance instance

Function

The load-balance instance command sets the load-balancing instances for a Smart Link group.

The undo load-balance instance command deletes load-balancing instances for a Smart Link group.

Format

load-balance instance { instance-id1 [ to instance-id2 ] } &<1-10> slave

undo load-balance instance { all | { instance-id1 [ to instance-id2 ] } &<1-10> [ slave ] }

Parameters

Parameter

Description

Value

instance-id1 [ to instance-id2 ]

Specifies ID of a Smart Link instance.

  • instance-id1 specifies the first instance ID. The value is an integer that ranges from 0 to 4094.
  • to instance-id2 specifies the last instance ID. The value of instance-id2 is an integer that ranges from 0 to 4094. The value of instance-id2 must be greater than the value of instance-id1. The instance-id1 and instance-id2 parameters identify a range of instances. If to instance-id2 is not specified, only one instance specified by instance-id1 is configured.

-

slave

Indicates that the slave interface sends packets of the specified Smart Link instances.

-

all

Deletes all load-balancing instances of a Smart Link group.

-

Views

Smart Link group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If load balancing is not configured for a Smart Link group, only the active link transmits data traffic and the standby link is idle.

The load-balance instance command implements load balancing in a Smart Link group. When both links in the Smart Link group are Up, the standby link transmits the traffic from the VLANs mapping the specified instances.

The instances specified in the command are Multiple Spanning Tree Protocol (MSTP) instances. Each instance maps a range of VLANs. Multiple instances can be bound to the standby link to implement load balancing.

Prerequisites

A Smart Link group has been created using the smart-link group command, and VLANs have been mapped to the specified instances using the instance command.

Follow-up Procedure

After configuring load balancing in a Smart Link group, you can use the display smart-link group command to verify the configuration.

Precautions

  • The VLANs mapping the instances in the command cannot be used as the control VLAN ID of Flush packets sent by the local device.

  • Before you run the load-balance instance command in a Smart Link group, the Smart Link group must be disabled.

  • The load balancing instance specified by the load-balance instance command must be in the protected instance list by the protected-vlan reference-instance command.

Example

# Configure load balancing in Smart Link group 3. Configure the standby link to transmit the traffic from the VLANs mapping the instance 1.

<HUAWEI> system-view
[HUAWEI] smart-link group 3
[HUAWEI-smlk-group3] load-balance instance 1 slave
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >