The trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-16> [ mode { active | passive } ] command adds member interfaces in the Eth-Trunk interface view in batches.
The undo trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-16> command deletes member interfaces in the Eth-Trunk interface view in batches.
The trunkport interfacetype interface-number command adds a member interface in the Eth-Trunk interface view.
The undo trunkport interface-type interface-number command deletes a member interface in the Eth-Trunk interface view.
By default, no member interface is added in the Eth-Trunk interface.
trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-16> [ mode { active | passive } ]
undo trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-16>
trunkport interface-type interface-number
undo trunkport interface-type interface-number
| Parameter | Description | Value |
|---|---|---|
interface-type |
Specifies the type of the interface that is added to the Eth-Trunk interface. |
The interface can be an Ethernet interface. |
interface-number1 to interface-number2 |
Specifies the range of interfaces that are added to the Eth-Trunk interface. The keyword to specifies an interface range, indicating all the interfaces between these two interfaces (including these two interfaces). |
- |
interface-number |
Specifies the number of the interface that is added to the Eth-Trunk interface. |
- |
mode |
Indicates the mode in which member interfaces of an Eth-Trunk interface send packets. |
The mode can be active or passive. |
active |
Specifies the mode in which member interfaces of an Eth-Trunk interface send packets as active. |
- |
passive |
Specifies the mode in which member interfaces of an Eth-Trunk interface send packets as passive. |
- |
Usage Scenario
To increase bandwidth, improve reliability, and implement load balancing, you can run the trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-16> command to add physical interfaces to an Eth-Trunk interface in batches.
To add only one interface to an Eth-Trunk interface, you can run the trunkport interfacetype interface-number command.
To delete member interfaces from an Eth-Trunk interface in batches, you can run the undo trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-16> command in the view of the Eth-Trunk interface.
To delete only one member interface from an Eth-Trunk interface, you can run the undo trunkport interface-type interface-number command in the view of the Eth-Trunk interface or run the undo eth-trunk command in the view of the member interface.
Member interfaces of an Eth-Trunk interface in active mode proactively send negotiation packets, and member interfaces of an Eth-Trunk interface in passive mode do not. The member interfaces of the Eth-Trunk interface in passive mode send packets to negotiate with the peer Eth-Trunk interface after receiving packets from the peer Eth-Trunk interface.
Prerequisites
Before you configure the mode in which member interfaces of an Eth-Trunk interface send packets, run the mode lacp-static command to configure the Eth-Trunk interface to work in LACP mode.
Configuration Impact
If an Eth-Trunk interface is configured with services, interfaces added to the Eth-Trunk interface carry out the services.
Follow-up Procedure
You can run the distribute-weight weight-value command to configure the weight for each member interface in the view of each member interface. This allows member interfaces to carry different loads.
Precautions
When you specify the interface range, note that:
The interface number after to must be greater than the interface number before to.
The types of the interfaces in the range must be the same.
The interfaces in the range must exist.