display eth-trunk

Function

The display eth-trunk command is used to view configurations of the Eth-Trunk interface.

Format

display eth-trunk [ trunk-id [ interface { interface-type interface-number | interface-name } | verbose ] ]

display eth-trunk brief

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.

interface-type

Specifies the type of an interface.

-

interface-number

Specifies the number of an interface.

-

interface-name

Specifies the name of an interface.

-

verbose

Displays detailed Eth-Trunk information.

-

brief

Displays brief Eth-Trunk information.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
trunk read

Usage Guidelines

Usage Scenario

After configuring an Eth-Trunk interface on a device, you can run the display eth-trunk command to check whether the configurations of the Eth-Trunk interface are correct.

Prerequisites

The interface specified in this command must be an existing one. This ensures that valid entries are displayed after you execute the command.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the configuration of Eth-Trunk 1 in manual 1:1 master/backup mode.
<HUAWEI> display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: BACKUP
WorkingState: Master
--------------------------------------------------------------------------------
PortName                      Slave/Master
GigabitEthernet0/1/1          M
GigabitEthernet0/1/2          S
# Display detailed configurations of Eth-Trunk 10 (the Eth-Trunk interface in static LACP mode added to an E-Trunk).
<HUAWEI> display eth-trunk 10 verbose
Eth-Trunk10's state information is:
(h): high priority
(r): reference port
Local:
LAG ID: 10                       WorkingMode: STATIC
Preempt Delay: 30              Hash Arithmetic: According to flow
System Priority: 50            System ID: 00e0-fc12-3457(LOCAL)
Least Active-linknumber:2    Max Active-linknumber:32
Operate Status: up             Number Of Up Ports In Trunk: 2
Timeout Period: Slow
PortKeyMode: Auto
--------------------------------------------------------------------------------------
ActorPortName              Status    PortType  PortPri PortNo  PortKey   PortState   Weight
GigabitEthernet0/1/1(h)    Unselect  1GE       10      6145    2609       11100011    2
GigabitEthernet0/1/3(hr)   Selected  1GE       32768   6146    2609       11111100    1
 
Partner:
--------------------------------------------------------------------------------------
ActorPortName              SysPri    SystemID         PortPri PortNo  PortKey   PortState
GigabitEthernet0/1/1       0        00e0-fc12-3459  0         0        0          11100011
GigabitEthernet0/1/3       12       00e0-fc12-3461  32768    6147     2609      11111100
# Display the detailed configurations of Eth-Trunk 10 in static LACP mode.
<HUAWEI> display eth-trunk 10 verbose
Eth-Trunk10's state information is:
(h): high priority
(r): reference port
Local:
LAG ID: 10                  WorkingMode: STATIC
Preempt Delay Time: 10      Hash arithmetic: According to flow
System Priority: 120        System ID: 00e0-fc12-3456
Least Active-linknumber: 1  Max Active-linknumber: 8
Operate status: up          Number Of Up Ports In Trunk: 2
Timeout Period: Slow
PortKeyMode: Auto
------------------------------------------------------------------------------------
ActorPortName              Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/1/2(hr)   Selected 1GE      10      262    2609    10111100  1
GigabitEthernet0/1/3(h)    Selected 1GE      10      263    2609    10111100  1
GigabitEthernet0/1/4(h)    Unselect 1GE      32768   264    2609    10100000  1

Partner:
------------------------------------------------------------------------------------
ActorPortName              SysPri    SystemID  PortPri PortNo  PortKey   PortState
GigabitEthernet0/1/2       32768  00e0-fc12-3460  32768  262   2609      10111100
GigabitEthernet0/1/3       32768  00e0-fc12-3460  32768  263   2609      10111100
GigabitEthernet0/1/4       32768  00e0-fc12-3460  32768  264   2609      10110000

Flow statistic
 Interface GigabitEthernet0/1/2,
    Last 300 seconds input rate 32 bits/sec, 0 packets/sec
    Last 300 seconds output rate 32 bits/sec, 0 packets/sec
    148 packets input, 18944 bytes, 0 drops
    246 packets output, 31488 bytes, 0 drops
 Interface GigabitEthernet0/1/3,
    Last 300 seconds input rate 32 bits/sec, 0 packets/sec
    Last 300 seconds output rate 32 bits/sec, 0 packets/sec
    147 packets input, 18816 bytes, 0 drops
    246 packets output, 31488 bytes, 0 drops
 Interface GigabitEthernet0/1/4,
    Last 300 seconds input rate 56 bits/sec, 0 packets/sec
    Last 300 seconds output rate 48 bits/sec, 0 packets/sec
    144 packets input, 18432 bytes, 0 drops
    174 packets output, 22272 bytes, 0 drops
 Interface Eth-Trunk10
    Last 300 seconds input rate 96 bits/sec, 0 packets/sec
    Last 300 seconds output rate 96 bits/sec, 0 packets/sec
    439 packets input, 56192 bytes, 0 drops
    666 packets output, 85248 bytes, 0 drops
# Display the detailed configurations of Eth-Trunk 20 in manual load balancing mode.
<HUAWEI> display eth-trunk 20 verbose
Eth-Trunk20's state information is:
WorkingMode: NORMAL         Hash arithmetic: According to flow
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 16
Operate status: up          Number Of Up Ports In Trunk: 1
--------------------------------------------------------------------------------
PortName                      Status      Weight
GigabitEthernet0/1/1          Up          1
GigabitEthernet0/1/2          Offline     1

Flow statistic
 Interface GigabitEthernet0/1/1,
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    0 packets input, 0 bytes, 0 drops
    0 packets output, 0 bytes, 0 drops
 Interface Eth-Trunk20
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    0 packets input, 0 bytes, 0 drops
    0 packets output, 0 bytes, 0 drops
# Display the configurations of Eth-Trunk 10 in static LACP mode.
<HUAWEI> display eth-trunk 10
Eth-Trunk10's state information is:
(h): high priority
(r): reference port
Local:
LAG ID: 10                  WorkingMode: STATIC
Preempt Delay Time: 10      Hash arithmetic: According to flow
System Priority: 120        System ID: 00e0-fc12-3456
Least Active-linknumber: 1  Max Active-linknumber: 8
Operate status: up          Ports: 2
Timeout Period: Slow
PortKeyMode: Auto
------------------------------------------------------------------------------------
ActorPortName              Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/1/2(hr)   Selected 1GE      10      262    2609    10111100  1
GigabitEthernet0/1/3(h)    Selected 1GE      10      263    2609    10111100  1
GigabitEthernet0/1/4(h)    Unselect 1GE      32768   264    2609    10100000  1

Partner:
------------------------------------------------------------------------------------
ActorPortName              SysPri    SystemID  PortPri PortNo  PortKey   PortState
GigabitEthernet0/1/2       32768  00e0-fc12-3460  32768  262   2609      10111100
GigabitEthernet0/1/3       32768  00e0-fc12-3460  32768  263   2609      10111100
GigabitEthernet0/1/4       32768  00e0-fc12-3460  32768  264   2609      10110000
# Display the configurations of Eth-Trunk 20 in manual load balancing mode.
<HUAWEI> display eth-trunk 20
Eth-Trunk20's state information is:
WorkingMode: NORMAL         Hash arithmetic: According to flow
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 16
Operate status: up          Number Of Up Ports In Trunk: 1
--------------------------------------------------------------------------------
PortName                      Status      Weight
GigabitEthernet0/1/1          Up          1
GigabitEthernet0/1/2          Offline     1
# Display the configurations of all Eth-Trunk interfaces.
<HUAWEI> display eth-trunk
Eth-Trunk10's state information is:
(h): high priority
(r): reference port
Local:
LAG ID: 10                  WorkingMode: STATIC
Preempt Delay Time: 10      Hash arithmetic: According to flow
System Priority: 120        System ID: 00e0-fc12-3456
Least Active-linknumber: 1  Max Active-linknumber: 8
Operate status: up          Number Of Up Ports In Trunk: 2
Timeout Period: Slow
PortKeyMode: Auto
------------------------------------------------------------------------------------
ActorPortName              Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/1/2(hr)   Selected 1GE      10      262    2609    10111100  1
GigabitEthernet0/1/3(h)    Selected 1GE      10      263    2609    10111100  1
GigabitEthernet0/1/4(h)    Unselect 1GE      32768   264    2609    10100000  1

Partner:
------------------------------------------------------------------------------------
ActorPortName              SysPri    SystemID  PortPri PortNo  PortKey   PortState
GigabitEthernet0/1/2       32768  00e0-fc12-3460  32768  262   2609      10111100
GigabitEthernet0/1/3       32768  00e0-fc12-3460  32768  263   2609      10111100
GigabitEthernet0/1/4       32768  00e0-fc12-3460  32768  264   2609      10110000

Eth-Trunk20's state information is:
WorkingMode: NORMAL         Hash arithmetic: According to flow
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 16
Operate status: up          Number Of Up Ports In Trunk: 1
--------------------------------------------------------------------------------
PortName                      Status      Weight
GigabitEthernet0/1/1          Up          1
GigabitEthernet0/1/2          Offline     1
# Display brief configurations of a specified Eth-Trunk interface.
<HUAWEI> display eth-trunk brief
Status: Operate status
Role: E-Trunk status
Act: Active link number
Inact: Inactive link number
Cfgd: Configured link number
BW: Bandwidth
Interface              Mode      Status    Role      Act/Inact/Cfgd   BW(Mbps)    
Eth-Trunk1             NORMAL    Up        M         0/1/2            200           
Eth-Trunk2             NORMAL    Up        S         0/1/3            100
Table 1 Description of the display eth-trunk command output
Item Description
PortName

Eth-Trunk member interface name.

Slave/Master

Master/backup status of an Eth-Trunk member interface:

  • M: indicates a master interface.
  • S: indicates a backup interface.
LAG ID

ID of the Eth-Trunk interface.

Preempt Delay

Preemption delay of an Eth-Trunk interface in static LACP mode.

You can configure and change the preemption delay of an Eth-Trunk interface in static LACP mode using the lacp preempt delay command.

Hash arithmetic

Load balancing mode:

  • According to flow: per-flow load balancing.
  • According to packet all: per-packet load balancing.
System Priority

LACP priority of the system.

After Eth-Trunk interfaces in static LACP mode are added to an E-Trunk, you can configure or modify the system priority using the lacp e-trunk priority command.

System ID

System ID.

After Eth-Trunk interfaces in static LACP mode are added to an E-Trunk, you can configure or modify the system ID using the lacp system-id command.

Least active-linknumber

Minimum number of active member links.

If the number of Eth-Trunk member interfaces that are in the Up state is less than the Least Active-linknumber value, the Eth-Trunk interface goes Down.

You can change the Least Active-linknumber value by running the least active-linknumber (Eth-Trunk interface view) command.

Max Active-linknumber

Maximum number of active member links.

You can configure and change the maximum number of active member links using the max active-linknumber command.

Max bandwidth-affected-linknumber

Maximum number of member interfaces that affect the actual bandwidth of the Layer 2 Eth-Trunk interface.

Operate status

Status of the Eth-Trunk interface:

  • UP: indicates that the Eth-Trunk interface is in the Up state and can forward traffic.
  • DOWN: indicates that the Eth-Trunk interface is in the Down state and cannot forward traffic.
Number Of Up Ports In Trunk

Number of Up member interfaces in the Eth-Trunk interface.

Timeout Period

Timeout period during which an Eth-Trunk interface in static LACP mode fails to receive LACPDUs.

You can configure or modify the timeout period using the lacp timeout command.

ActorPortName

Name of a member interface.

Status

Status of local member interfaces:

  • Selected: A member interface in the Selected state is active.
  • Unselected: A member interface in the Unselected state is inactive.
  • Up: The member interface is brought up.
  • Down: The member interface is shut down.
  • Offline: The member interface is offline.

If an Eth-Trunk interface works in static LACP mode and Status is Unselected, no interface is selected as the Eth-Trunk interface's member interface. Consequently, LACP negotiation fails.

PortType

Type of local member interface.

PortPri

LACP priority of the member interface in an Eth-Trunk interface in static LACP mode.

You can configure and change the LACP priority of the member interface using the lacp priority command.

PortNo

LACP number of the member interface in an Eth-Trunk interface in static LACP mode.

PortKey

LACP key of the member interface in an Eth-Trunk interface in static LACP mode.

PortState

Status variable of the member interface in an Eth-Trunk interface in static LACP mode.

The status variable is an 8-bit binary number, such as 10111100. The descriptions of each bit are as follows:

  • First bit: whether the member interface is an Actor. This bit has a fixed value 1.
  • Second bit: whether the member interface uses a long or short timeout period to receive LACPDUs.
    • 1: The member interface uses a short timeout period.
    • 0: The member interface uses a long timeout period.

By default, an Eth-Trunk member interface uses the long timeout (90 seconds) period to receive LACPDUs. The value can be changed using the lacp timeout command.

  • Third bit: whether the system allows the member interface to be aggregated.
    • 1: the system allows the member interface to be aggregated.
    • 0: the system does not allow the member interface to be aggregated.
  • Fourth bit: whether the member interface is added to the link aggregation group (LAG).
    • 1: The member interface is added to the LAG.
    • 0: The member interface is not added to the LAG.
  • Fifth bit: whether the member interface can receive packets.
    • 1: The member interface can receive packets.
    • 0: The member interface cannot receive packets.
  • Sixth bit: whether the member interface can send packets.
    • 1: The member interface can send packets.
    • 0: The member interface cannot send packets.
  • Seventh bit: whether the packets have default contents.
    • 1: The packets have default contents.
    • 0: The packets do not have default contents.
  • Eighth bit: whether the receive state machine of the Actor is in Expired state.
    • 1: It is in Expired state.
    • 0: It is not in Expired state.
Weight

Weight of the member interface in an Eth-Trunk interface.

Flow statistic

Eth-Trunk traffic statistics.

Interface

Interface name and number.

Last 300 seconds input rate Last 300 seconds output rate

Rates at which bits and packets are sent and received by the interface in the last 300 seconds.

Each time this command is run, the rates at which bits and packets are sent and received by the interface within the last 300s are re-collected. The rates at which bits and packets are sent and received by the interface within the last 300s are displayed. The rates at which bits and packets are sent and received by the interface within the last 300s are calculated respectively.

The interval at which traffic statistics are collected can be changed using the set flow-stat interval command.

Role

Member interface role of the Eth-Trunk interface in static LACP mode:

  • MASTER: master role.
  • SLAVE: backup role.
  • NONE: no role set.

You can set or change the role of a member interface using the lacp port-role command.

Local

Configuration of the local Eth-Trunk interface.

WorkingMode

Operation mode of the Eth-Trunk interface:

  • NORMAL: manual load balancing mode.
  • STATIC: static LACP mode.

You can configure and change the operation mode of an Eth-Trunk interface using the mode command.

Partner

Information about remote Eth-Trunk member interfaces.

Input

Total number of packets and bytes received by an interface.

  • packets: total number of packets.

    The total number of packets received by an Eth-Trunk interface is the total number of packets received by all Eth-Trunk member interfaces.

  • bytes: total number of bytes.

    The total number of bytes received by an Eth-Trunk interface is the total number of bytes received by all Eth-Trunk member interfaces.

  • drops: number of discarded packets.
Output

Total number of packets and bytes sent by an interface.

  • packets: total number of packets.

    The total number of packets sent by an Eth-Trunk interface is the total number of packets sent by all Eth-Trunk member interfaces.

  • bytes: total number of bytes.

    The total number of bytes sent by an Eth-Trunk interface is the total number of bytes sent by all Eth-Trunk member interfaces.

  • drops: number of discarded packets.
Remote

Interface's system ID synchronized with that on the peer device through an E-Trunk connection.

Act

Number of activated links.

Inact

Number of deactivated links.

Cfgd

Number of configured links.

BW

Link bandwidth.

WorkingState

Master/backup status of an Eth-Trunk interface:

  • Master: indicates a master interface.
  • Slave: indicates a backup interface.
preempt delay time

Preemption delay.

ports

Port number.

PortKeyMode

LACP member interface's PortKey generation mode:

  • Auto: The system automatically generates a value.
  • Manual: The configuration is generated manually.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >