e-trunk select

Function

The e-trunk select link-number command configures an E-Trunk to determine the master/backup status of devices based on the number of available Eth-Trunk member links or the available Eth-Trunk bandwidth.

The undo e-trunk select link-number command restores the default configuration.

By default, an E-Trunk does not determine the master/backup status of Eth-Trunk devices based on the number of available Eth-Trunk member links or the available Eth-Trunk bandwidth.

Format

e-trunk select { link-number | bandwidth }

undo e-trunk select [ link-number | bandwidth ]

Parameters

Parameter Description Value
link-number

Configures an E-Trunk to determine the master/backup status of devices based on the number of available Eth-Trunk member links.

-

bandwidth

Configures an E-Trunk to determine the master/backup status of devices based on the available Eth-Trunk bandwidth.

-

Views

E-Trunk view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
etrunk write

Usage Guidelines

Usage Scenario

When E-Trunk member interfaces work in automatic mode, the E-Trunk determines the master/backup status of devices based on their E-Trunk priorities. If the E-Trunk priorities are the same, the E-Trunk determines the master/backup status of devices based on their system IDs. When devices added to an E-Trunk greatly differ in their available Eth-Trunk member links, to maximize link bandwidth utilization, you can run the e-trunk select link-number command to configure the E-Trunk to determine the master/backup status of the devices based on the number of available Eth-Trunk member links. The device with a larger number of available Eth-Trunk member links is determined as the master, and the other device is then determined as the backup. You can also run the e-trunk select bandwidth command to configure the E-Trunk to determine the master/backup status of the devices based on the available Eth-Trunk bandwidth. The device with a higher available Eth-Trunk bandwidth is determined as the master, and the other device is then determined as the backup.

Precautions

The e-trunk select link-number command takes effect when the following conditions are met:

  • The Eth-Trunk interfaces added to the E-Trunk are configured to work in static LACP mode using the mode lacp-static command in the Eth-Trunk interface view.
  • The Eth-Trunk interfaces added to the E-Trunk are configured to work in automatic mode using the e-trunk mode auto command in the Eth-Trunk interface view.

Example

# Configure E-Trunk1 to determine the master/backup status of Eth-Trunk devices based on the number of available Eth-Trunk member links.
<HUAWEI> system-view
[~HUAWEI] e-trunk 1
[*HUAWEI-e-trunk-1] quit
[*HUAWEI] interface eth-trunk 1
[*HUAWEI-Eth-Trunk1] mode lacp-static
[*HUAWEI-Eth-Trunk1] e-trunk 1
[*HUAWEI-Eth-Trunk1] e-trunk mode auto
[*HUAWEI-Eth-Trunk1] quit
[*HUAWEI] e-trunk 1
[*HUAWEI-e-trunk-1] e-trunk select link-number
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >