eth-trunk

Function

The eth-trunk command adds an Ethernet interface to an Eth-Trunk interface.

The undo eth-trunk command deletes an Ethernet interface from an Eth-Trunk interface.

By default, no Ethernet interface is added to an Eth-Trunk interface.

Format

eth-trunk trunk-id [ mode { passive | active } ]

undo eth-trunk

Parameters

Parameter Description Value
trunk-id

Specifies the ID of an Eth-Trunk interface.

The Eth-Trunk ID is an integer ranging from 0 to 65535.

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.

-

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.

-

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.

-

Views

Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, Layer 2 50GE interface view, 50GE interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
trunk write

Usage Guidelines

Usage Scenario

You can run the eth-trunk command to add physical interfaces to an Eth-Trunk interface to increase the bandwidth, improve reliability, and perform load balancing.

You can run the undo eth-trunk command in the view of a member interface to delete the member interface from the Eth-Trunk interface. You can also run the undo trunkport command in the Eth-Trunk interface view to delete a member interface from an Eth-Trunk interface.

Prerequisites

The Eth-Trunk interface to which Ethernet interfaces will be added has been successfully created.

Ethernet interfaces are not configured with any service. For example:

Layer 3 configurations such as IP addresses

Static MAC entries

Configuration Impact

After physical interfaces are added to an Eth-Trunk interface:

  • Bandwidth is increased: The bandwidth of an Eth-Trunk interface is the total bandwidth of all member interfaces.
  • Reliability is improved: When a member link fails, traffic automatically switches 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 take over the services.

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. Before adding an interface to another Eth-Trunk interface, you must delete it from the original Eth-Trunk interface.

Ethernet interfaces of different rates can be added to the same Eth-Trunk interface. If no weight is configured for a member interface, the member interfaces have the same weight. In this case, the forwarding capability of each interface is only the same as that of the interface with the lowest capability. Therefore, it is not recommended that you bundle interfaces with different forwarding capacities into the same Eth-Trunk interface.

Ethernet interfaces on different boards can be added to the same Eth-Trunk. If an Eth-Trunk is configured on the local device, the peer interface directly connected to a member interface of the Eth-Trunk must also be added to an Eth-Trunk interface so that the two ends can communicate with each other.

In a multi-chassis scenario, interfaces on different chassis can be added to the same Eth-Trunk.

When a physical interface is added to or removed from an Eth-Trunk interface, the statistics on the physical interface are cleared.

Each Eth-Trunk interface can contain up to 16 member interfaces.

Example

# Add GE 0/1/1 to Eth-Trunk 1.
<HUAWEI> system-view
[~HUAWEI] interface eth-trunk 1
[*HUAWEI-Eth-Trunk1] quit
[*HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] eth-trunk 1
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >