The trunkport command adds an interface to an Eth-Trunk interface in the Eth-Trunk interface view.
The undo trunkport command deletes an interface from an Eth-Trunk interface in the Eth-Trunk interface view.
By default, no member interface is added to an Eth-Trunk interface.
Parameter | Description | Value |
---|---|---|
interface-type |
Specifies the type of the interface that is added to the Eth-Trunk interface. |
- |
interface-number1 |
Specifies the start number of the Eth-Trunk interface. |
The value is a string of 1 to 49 case-sensitive characters, spaces not supported. |
interface-number2 |
Specifies the end number of the Eth-Trunk interface. |
The value is a string of 1 to 49 case-sensitive characters, spaces not supported. |
mode |
Indicates a mode in which the member interface of an Eth-Trunk interface in static LACP mode sends LACPDUs. This parameter can be specified only for Eth-Trunk interfaces in static LACP mode. If this parameter is not specified, member interfaces of an Eth-Trunk interface in static LACP mode send LACPDUs in active mode. |
- |
active |
Indicates the active mode in which the member interface of an Eth-Trunk interface in static LACP mode sends LACPDUs. Member interfaces in active mode proactively send LACPDUs to the peer end for negotiation. |
- |
passive |
Indicates the passive mode in which the member interface of an Eth-Trunk interface in static LACP mode sends LACPDUs. Member interfaces in passive mode respond to LACPDUs only when receiving LACPDUs from the peer end that works in active mode. |
- |
interface-name |
Specifies the name of the interface that is added to the Eth-Trunk interface. |
The value is a string of 1 to 49 case-sensitive characters, spaces not supported. |
Usage Scenario
To increase bandwidth, improve reliability, and implement load balancing, you can run this command to add physical interfaces to an Eth-Trunk interface in batches.
Prerequisites
No service is configured on the Ethernet interfaces to be added to the Eth-Trunk interface. For example:
Layer 3 configurations such as IP addresses Static MAC entriesConfiguration Impact
After physical interfaces are added to an Eth-Trunk interface:
Follow-up Procedure
Configure the weight for each member interface in the view of each member interface. This allows member interfaces to carry different loads.
Precautions
Eth-Trunk consists of only Ethernet links.
Eth-Trunk interfaces cannot be added to Eth-Trunk interfaces. An Ethernet interface can be added to only one Eth-Trunk interface. Before adding an Ethernet interface to another Eth-Trunk interface, you must delete it from the original Eth-Trunk interface. Ethernet interfaces with different rates can be added to the same Eth-Trunk interface. If no weight is configured for any member interface, the weight of each member interface is the same. In this case, the lowest forwarding capability among all member interfaces is adopted and applied to each member interface. Therefore, it is not recommended that you bundle interfaces with different forwarding capacities into an Eth-Trunk interface. Ethernet interfaces on different boards can be added to the same Eth-Trunk interface. If a member interface of an Eth-Trunk interface is connected to the peer, the directly connected interface on the peer must also be a member interface of an Eth-Trunk interface; otherwise, the devices cannot communicate with each other. When you specify the interface range, note that: 1.The interface number after to must be greater than the interface number before to. 2.The types of the interfaces in the range must be the same. 3.The interfaces in the range must exist. 4.If the trunkport command is run more than once, all configurations take effect.<HUAWEI> system-view [~HUAWEI] interface eth-trunk 1 [*HUAWEI-Eth-Trunk1] trunkport GigabitEthernet 0/1/1
<HUAWEI> system-view [~HUAWEI] interface eth-trunk 1 [*HUAWEI-Eth-Trunk1] mode lacp-static [*HUAWEI-Eth-Trunk1] trunkport GigabitEthernet 0/1/1 mode passive
<HUAWEI> system-view [~HUAWEI] interface eth-trunk 2 [*HUAWEI-Eth-Trunk2] trunkport GigabitEthernet 0/1/1 to 0/1/4