< Home

eth-trunk

Function

The eth-trunk command adds an interface to an Eth-Trunk.

The undo eth-trunk command removes an interface from an Eth-Trunk.

By default, an interface does not belong to any Eth-Trunk.

Format

eth-trunk trunk-id [ mode { active | passive } ]

undo eth-trunk

Parameters

Parameter

Description

Value

trunk-id

Indicates the ID of an Eth-Trunk.

The value is an integer. The value varies according to device model:
  • S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, and S5720-SI: 0-119
  • S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, S5735S-S, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S: 0-127
  • S5730-SI, S5730S-EI, S6720-SI, S6720S-SI, S6720-LI, S6720S-LI: 0-249

On the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720-EI, and S6720S-EI, you can run the assign trunk command to set the value, and run the display trunk configuration command to check the configuration.

mode { active | passive }

Indicates the mode in which an Eth-Trunk member interface sends packets. This parameter is valid for only the Eth-Trunk in LACP mode. By default, the mode an Eth-Trunk member interface sends packets is active.
  • active: indicates that an Eth-Trunk member interface proactively sends negotiation packets.
  • passive: indicates that an Eth-Trunk member interface sends packets to negotiate with its remote end only after receiving a packet from its remote end.

-

Views

Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, 25GE interface view

Default Level

2: Configuration level

Usage Guidelines

To improve the connection reliability and increase the bandwidth, you can use the eth-trunk command to bind multiple interfaces into an Eth-Trunk.

You can add an interface to an Eth-Trunk only after you run the interface Eth-Trunk command to create the Eth-Trunk.

An Eth-Trunk contains a maximum of 32 member interfaces on the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S, 16 member interfaces on the S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI, and 8 member interfaces on all other models. Interfaces added to an Eth-Trunk are called member interfaces. On the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720-EI and S6720S-EI, you can run the assign trunk command to set the value, and run the display trunk configuration command to check the configuration.

When you add an Ethernet interface to an Eth-Trunk, the interface must use default settings of some attributes. Otherwise, the interface cannot be added to the Eth-Trunk. The attributes include:

  • Link type
  • VLAN that the interface belongs to
  • VLAN mapping
  • VLAN stacking
  • QinQ protocol number
  • Interface priority
  • Whether the interface allows BPDUs to pass through
  • MAC address learning
  • Adding the interface to a multicast group statically
  • Discarding broadcast packets
  • Discarding unknown multicast packets
  • Discarding unknown unicast packets
  • Controllable multicast profile bound to the interface

The attributes on all member interfaces of an Eth-Trunk must be consistent and cannot be changed separately. If the preceding attributes of an Eth-Trunk are changed, the attributes of all the member interfaces are changed accordingly.

It is recommended that you run the shutdown (interface view) command to disable an interface before adding the interface to an Eth-Trunk. After adding interfaces at both ends of a link to an Eth-Trunk, run the undo shutdown (interface view) command to enable the interfaces. Otherwise, traffic interruption or broadcast storms may occur.

It is recommended that you run the shutdown (interface view) command to disable a member interface before running the undo eth-trunk command to remove the member interface from an Eth-Trunk.

The number of member interfaces of the Eth-Trunk on devices at both ends must be the same. The interfaces at both ends must be connected with straight-through cables.

Example

# Add GigabitEthernet0/0/1 to Eth-Trunk 2.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] eth-trunk 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >