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.
Parameter |
Description |
Value |
---|---|---|
trunk-id |
Indicates the ID of an Eth-Trunk. |
The value is an integer. The value varies according to device model:
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.
|
- |
Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, 25GE interface view
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:
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.