The interface eth-trunk command creates an Eth-Trunk interface.
The undo interface eth-trunk command removes an existing Eth-Trunk interface.
| Parameter | Description | Value |
|---|---|---|
trunk-id |
Specifies the trunk ID. |
The value is an integer ranging from 0 to 63. |
subnumber |
Specifies the number of the Eth-Trunk sub-interface. |
The value is an integer ranging from 1 to 4096. |
The interface parameters must be configured in the interface view. You must create an Eth-Trunk interface before you configure it.
Run the interface eth-trunk trunk-id command in the system view. If the Eth-Trunk exists, enter the Eth-Trunk interface view. If the LAG that corresponds to trunk-id does not exist, create an aggregation group.
Ensure that an Eth-Trunk does not contain any member interfaces before deleting the Eth-Trunk. You can delete member interfaces by running the undo eth-trunk command in the Ethernet interface view.
The undo interface eth-trunk command cannot be used in the system view of a virtual system.
# Create the Eth-Trunk interface 1.
<sysname> system-view [sysname] interface eth-Trunk 1 [sysname-Eth-Trunk1]
# Create an Eth-Trunk sub-interface numbered 10.10.
<sysname> system-view [sysname] interface eth-Trunk 10 [sysname-Eth-Trunk10] quit [sysname] interface eth-Trunk 10.10 [sysname-Eth-Trunk10.10]