< Home

trunkport (Eth-Trunk interface view)

Function

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.

Format

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

Parameters

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.

-

Views

Eth-Trunk interface view, Layer-2 Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

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 adding Ethernet interfaces to an Eth-Trunk interface, ensure that no service is configured on the Ethernet interfaces. For example:
  • Layer-3 configurations such as IP addresses
  • Static MAC entries

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

After physical interfaces are added to an Eth-Trunk interface, the following purposes are achieved:
  • Increased bandwidth: The bandwidth of an Eth-Trunk interface is the total bandwidth of all member interfaces.
  • Improved reliability: When a member link fails, traffic is automatically switched to other available member links. This ensures reliability of Eth-Trunk.

If an Eth-Trunk interface is configured with services, interfaces added to the Eth-Trunk interface carry out the services.

A physical interface added to an Eth-Trunk interface is affected by the Eth-Trunk interface:
  • If the shutdown command is run on the Eth-Trunk interface before or after the physical interface is added, the physical status of the Eth-Trunk interface becomes Administratively DOWN. Accordingly, the configuration file shows that the physical interface is shutdown and its physical status is Administratively DOWN.
  • If the undo shutdown command is run on the Eth-Trunk interface after the physical interface is added, the configuration file shows that the physical interface is undo shutdown.

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

  • Eth-Trunk must be composed of 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 corresponding member interface through the distribute-weight command, 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 to bundle interfaces with different forwarding capacities into an Eth-Trunk interface.
  • Ethernet interfaces on different interface 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:

    • 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.

  • If the trunkport command is run more than once, all configurations take effect.

Example

# Add 4 member interfaces ranging from GigabitEthernet 0/0/1 to 0/0/3 to Eth-Trunk1.

<sysname> system-view
[sysname] interface eth-trunk 1
[sysname-Eth-Trunk1] trunkport GigabitEthernet 0/0/1 to 0/0/3 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >