< Home

mode

Function

The mode command configures a working mode of an Eth-Trunk.

The undo mode command restores the default working mode of an Eth-Trunk.

By default, an Eth-Trunk works in manual load balancing mode.

Format

mode { lacp | manual load-balance }

undo mode

Parameters

Parameter Description Value
lacp Indicates the LACP mode. -
manual load-balance Indicates the manual load balancing mode. -

Views

Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenarios

An Eth-Trunk can use the following working modes:
  • LACP mode

    When the devices that are directly connected through an Eth-Trunk support LACP, you can run the mode lacp command to configure the Eth-Trunk to work in LACP mode. This mode can implement both load balancing and redundancy.

    In LACP mode, you must manually create an Eth-Trunk and add member interfaces to the Eth-Trunk. The difference between the LACP mode and manual load balancing mode is that active member interfaces are selected by sending LACP data units (LACPDUs). That is, when a group of interfaces are added to an Eth-Trunk, devices at both ends determine active and inactive interfaces by sending LACPDUs to each other.

  • Manual load balancing mode

    When one of the devices at the two ends of an Eth-Trunk does not support LACP, run the mode manual load-balance command to configure the Eth-Trunk to work in manual load balancing mode. In addition, you can add multiple member interfaces to the Eth-Trunk to increase the bandwidth between the two devices and improve reliability.

    The manual load balancing mode is a basic link aggregation mode. In this mode, you must manually create an Eth-Trunk and add interfaces to the Eth-Trunk. LACP is not used.

    In manual load balancing mode, all active interfaces of the Eth-Trunk forward data and load balance traffic.

Precautions

If you run the mode command multiple times, only the latest configuration takes effect.

If an Eth-Trunk interface has member interfaces, you can switch the Eth-Trunk interface's working mode between manual mode and LACP mode. However, if the Eth-Trunk interface is added to an E-Trunk, you cannot change its working mode.

Example

# Configure Eth-Trunk 1 to work in LACP mode.

<HUAWEI> system-view
[HUAWEI] interface eth-trunk 1
[HUAWEI-Eth-Trunk1] mode lacp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >