< Home

display eth-trunk

Function

The display eth-trunk command displays the configuration of an Eth-Trunk interface.

Format

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

Parameters

Parameter Description Value

trunk-id

Specifies the ID of an Eth-Trunk interface.

The value ranges from 0 to 63.

interface interface-type interface-number

Specifies a member interface of an Eth-Trunk.

-

verbose

Displays detailed information about an Eth-Trunk interface.

-

Views

All views

Default Level

1: Monitoring level

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 configuration of the Eth-Trunk interface is correct.

When using the display eth-trunk command, note that:

  • If no optional parameter is specified, the configurations of all Eth-Trunk interfaces are displayed.

  • If trunk-id is specified only, the configuration of a specified Eth-Trunk interface is displayed.

  • If trunk-id and interface interface-type interface-number are specified, the status of a specified member interface of a specified Eth-Trunk interface is displayed.

  • If trunk-id is specified and verbose is configured, the detailed configuration of a specified Eth-Trunk interface is displayed, including the statistics about interface traffic.

Prerequisites

The interface specified in this command must be an existing one.

Precautions

If there is a great deal of statistics about traffic on Eth-Trunk interfaces, you are recommended to specify trunk-id or interface interface-type interface-number to filter output information.

Example

# Display the configurations of all Eth-Trunk interfaces.

<sysname> display eth-trunk
Eth-Trunk1's state information is:
WorkingMode: NORMAL            Hash arithmetic: According to flow
Least Active-linknumber: 1     Max Bandwidth-affected-linknumber: 8
Operate status: up             Number Of Up Port In Trunk: 1
--------------------------------------------------------------------
PortName                       Status   Weight
GigabitEthernet0/0/3           Up       1
Eth-Trunk3's state information is:
WorkingMode: NORMAL            Hash arithmetic: According to flow
Least Active-linknumber: 1     Max Bandwidth-affected-linknumber: 8
Operate status: up             Number Of Up Port In Trunk: 2
--------------------------------------------------------------------
PortName                       Status   Weight
GigabitEthernet0/0/1           Up       1
GigabitEthernet0/0/2           Up       1

# Display the configuration of Eth-Trunk 1 in manual load balancing mode.

<sysname> display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL            Hash arithmetic: According to flow
Least Active-linknumber: 2     Max Bandwidth-affected-linknumber: 8
Operate status: up             Number Of Up Port In Trunk: 2
---------------------------------------------------------------------
PortName                       Status   weight
GigabitEthernet0/0/1           Up        1
GigabitEthernet0/0/2           Up        2
Table 1 Description of the display eth-trunk (manual load balancing mode) command output

Item

Description

WorkingMode

Operating mode of an Eth-Trunk interface
  • NORMAL: manual load balancing mode

  • STATIC: static LACP mode

  • BACKUP: manual 1:1 active/standby mode

Hash arithmetic

Load balancing mode of an Eth-Trunk interface
  • According to flow: per-flow load balancing
  • According to packet all: per-packet load balancing

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.

Max Bandwidth-affected-linknumber

Maximum number of links that affect the actual bandwidth of the Layer-2 Eth-Trunk interface

Operate status

Status of an 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 Port In Trunk

Number of Up member interfaces in an Eth-Trunk interface

PortName

Name of the member interface in an Eth-Trunk interface

Status

Status of the member interface in an Eth-Trunk interface
  • Up: indicates that the member interface is in the Up state.

  • Down: indicates that the member interface is in the Down state.

Weight

Weight of the member interface in an Eth-Trunk interface

# Display the configuration of Eth-Trunk 10 in manual 1:1 active/standby mode.
<sysname> display eth-trunk 10
Eth-Trunk10's state information is:
WorkingMode: BACKUP
WorkingState: Master
--------------------------------------------------------------------------------
PortName                      Slave/Master
GigabitEthernet 0/0/1                 M
GigabitEthernet 0/0/2                 S   
Table 2 Description of the display eth-trunk (manual 1:1 active/standby mode) command output

Item

Description

WorkingMode

Operating mode of an Eth-Trunk interface
  • NORMAL: manual load balancing mode

  • STATIC: static LACP mode

  • BACKUP: manual 1:1 active/standby mode

WorkingState

Status of an Eth-Trunk interface
  • Master: indicates that the Eth-Trunk interface is used as a master interface.
  • Slave: indicates that the Eth-Trunk interface is used as a slave interface.
  • Initial: initial state.

PortName

Name of the member interface in an Eth-Trunk interface

Slave/Master

Status of the member interface in an Eth-Trunk interface
  • M: indicates that the member interface is used as a master interface.

  • S: indicates that the member interface is used as a slave interface.

# Display the configuration of Eth-Trunk 10 in static LACP mode.

<sysname> display eth-trunk 10
Eth-Trunk10's state information is:
Local:
LAG ID: 10                     WorkingMode: STATIC
Preempt Delay: 30              Hash arithmetic: According to flow
System Priority: 50            System ID: 00e0-fc7f-7242
Least Active-linknumber: 2     Max Active-linknumber: 8
Operate status: up             Number Of Up Port In Trunk: 2
----------------------------------------------------------------------------------
ActorPortName          Status    PortType  PortPri PortNo  PortKey   PortState   Weight
GigabitEthernet 0/0/1   Unselect  1GE       32768   6144    2609      11100010    1
GigabitEthernet 0/0/2   Unselect  1GE       10      6145    2609      11100011    2
GigabitEthernet 0/0/3   Selected  1GE       32768   6146    2609      11111100    1
GigabitEthernet0/0/4   Selected  1GE       10      6147    2609      11111100    1

Partner:
----------------------------------------------------------------------------------
ActorPortName          SysPri    SystemID          PortPri PortNo  PortKey   PortState
GigabitEthernet 0/0/1   0         0000-0000-0000    0       0       0         11100011
GigabitEthernet 0/0/2   0         0000-0000-0000    0       0       0         11100011
GigabitEthernet 0/0/3   12        00e0-fca8-0418    32768   6146    2609      11111100
GigabitEthernet0/0/4   12        00e0-fca8-0418    32768   6147    2609      11111100

# Display the detailed configuration of Eth-Trunk 10 in static LACP mode.

<sysname> display eth-trunk 10 verbose
Eth-Trunk10's state information is:
Local:
LAG ID: 10                       WorkingMode: STATIC
Preempt Delay Time: 30           Hash arithmetic: According to flow
System Priority: 50              System ID: 00e0-fc7f-7242
Least active-linknumber: 2       Max Active-linknumber: 8
Operate status: up               Number Of Up Port in Trunk: 2
----------------------------------------------------------------------------------
ActorPortName          Status    PortType  PortPri PortNo  PortKey   PortState   Weight
GigabitEthernet 0/0/1   Unselect  1GE       32768   6144    2609      11100010    1
GigabitEthernet 0/0/2   Unselect  1GE       10      6145    2609      11100011    2
GigabitEthernet 0/0/3   Selected  1GE       32768   6146    2609      11111100    1
GigabitEthernet0/0/4   Selected  1GE       10      6147    2609      11111100    1

Partner:
----------------------------------------------------------------------------------
ActorPortName          SysPri    SystemID          PortPri PortNo  PortKey   PortState
GigabitEthernet 0/0/1   0         0000-0000-0000    0       0       0         11100011
GigabitEthernet 0/0/2   0         0000-0000-0000    0       0       0         11100011
GigabitEthernet 0/0/3   12        00e0-fca8-0418    32768   6146    2609      11111100
GigabitEthernet0/0/4   12        00e0-fca8-0418    32768   6147    2609      11111100

Flow statistic:
 Interface GigabitEthernet 0/0/1
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    34 packets input, 4352 bytes, 0 drops
    71 packets output, 9088 bytes, 0 drops
 Interface GigabitEthernet 0/0/2
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    12 packets input, 1536 bytes, 0 drops
    49 packets output, 6272 bytes, 0 drops
 Interface GigabitEthernet 0/0/3
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    11 packets input, 1408 bytes, 0 drops
    48 packets output, 6144 bytes, 0 drops
 Interface GigabitEthernet0/0/4
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    20 packets input, 2014 bytes, 0 drops
    54 packets output, 5321 bytes, 0 drops

 Interface Eth-Trunk10
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    77 packets input, 9310 bytes, 0 drops
    222 packets output, 26825 bytes, 0 drops
Table 3 Description of the display eth-trunk (static LACP mode) command output

Item

Description

Local

Local Eth-Trunk interface

LAG ID

ID of an Eth-Trunk interface in static LACP mode

WorkingMode

Operation mode of an Eth-Trunk interface
  • NORMAL: manual load balancing mode

  • STATIC: static LACP mode

  • BACKUP: manual 1:1 active/standby mode

Preempt Delay

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

Hash arithmetic

Load balancing mode of an Eth-Trunk interface
  • According to flow: per-flow load balancing
  • According to packet all: per-packet load balancing

System Priority

System priority of the E-Trunk to which an Eth-Trunk interface in static LACP mode is added

System ID

System ID of the E-Trunk to which an Eth-Trunk interface in static LACP mode is added

Least Active-linknumber

Minimum number of active member links

Max Active-linknumber

Maximum number of active member links

Operate status

Status of an 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 Port In Trunk

Number of Up member interfaces in an Eth-Trunk interface

ActorPortName

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

Status

Status of the member interface in an Eth-Trunk interface
  • Selected: indicates that the member interface is an active interface and forwards traffic.

  • Unselected: indicates that the member interface is an inactive interface and forwards no traffic.

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 and LACP negotiation fails. If Status of all Eth-Trunk member interfaces is Unselected, it indicates that no member interface is selected in the Eth-Trunk interface in static LACP mode.

PortType

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

PortPri

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

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 LACP packets.

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

  • 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

Partner

Remote Eth-Trunk interface

SysPri

System priority of the E-Trunk to which a remote Eth-Trunk interface in static LACP mode is added

SystemID

System ID of the E-Trunk to which a remote Eth-Trunk interface in static LACP mode is added

Flow statistic

Statistics about interface traffic

Last 300 seconds input rate

Last 300 seconds output rate

Indicates the rates at which bytes and packets are sent and received by the interface in the last 300 seconds.

The rates are re-calculated in bytes/300s and packets/300s each time the display eth-trunk command is run.

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
NOTE:

The statistics of discarded packets are separately collected. The number of discarded packets is not included in the total number of 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
NOTE:

The statistics of discarded packets sent by an interface are separately collected. The number of discarded packets is not included in the total number of packets.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >