H3C S3100 Series Ethernet Switches command Manual-Release 21XX Series(V1.06)

HomeSupportSwitchesH3C S3100 Switch SeriesReference GuidesCommand ReferencesH3C S3100 Series Ethernet Switches command Manual-Release 21XX Series(V1.06)
10-Link Aggregation Commands
Title Size Download
10-Link Aggregation Commands 43.68 KB

Link Aggregation Configuration Commands

display link-aggregation interface

Syntax

display link-aggregation interface interface-type interface-number [ to interface-type interface-number ]

View

Any view

Parameter

interface-type: Port type.

interface-number: Port number.

to: Specifies a port index range, with the two interface-type interface-number argument pairs around it as the two ends.

Description

Use the display link-aggregation interface command to display the link aggregation details about a specified port or port range.

Note that as ports in a manual link aggregation groups do not acquire the information about their peers automatically, so the entries in the information about the peer ports displayed are all 0 instead of the actual values.

Example

# Display the link aggregation details on Ethernet 1/0/1.

<Sysname> display link-aggregation interface Ethernet1/0/1

 

 Ethernet1/0/1:

   Selected AggID: 1

   Local:

     Port-Priority: 32768, Oper key: 2, Flag: 0x45

   Remote:

     System ID: 0x8000, 0000-0000-0000

     Port Number: 0, Port-Priority: 32768 , Oper-key: 0, Flag: 0x38

   Received LACP Packets: 0 packet(s), Illegal: 0 packet(s)

   Sent LACP Packets: 0 packet(s)

Table 1-1 Description on the fields of the display link-aggregation interface command

Field

Description

Selected AggID

ID of the aggregation group to which the specified port belongs

Local

Information about the local end

Port-Priority

Port priority

Oper key

Operation key

Flag

Protocol status flag

Remote

Information about the remote end

System ID

Remote device ID

Port number

Port number

Received LACP Packets: 0 packet(s), Illegal: 0 packet(s)

Sent LACP Packets: 0 packet(s)

Statistics about received, invalid, and sent LACP packets

 

display link-aggregation summary

Syntax

display link-aggregation summary

View

Any view

Parameter

None

Description

Use the display link-aggregation summary command to display summary information of all aggregation groups.

Note that as ports in a manual link aggregation groups do not acquire the information about their peers automatically, so the entries in the information about the peer ports displayed are all 0 instead of the actual values.

Example

# Display summary information of all aggregation groups.

<Sysname> display link-aggregation summary

 

Aggregation Group Type:D -- Dynamic, S -- Static , M -- Manual

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

Actor ID: 0x8000, 000f-e20f-5104

 

  AL  AL   Partner ID            Select Unselect Share Master

  ID  Type                         Ports  Ports     Type  Port

--------------------------------------------------------------------------

  1   S    0x8000,0000-0000-0000 0      1        NonS  Ethernet1/0/2

  2   M    none                     0      1        NonS  Ethernet1/0/3

Table 1-2 Description on the fields of the display link-aggregation summary command

Field

Description

Aggregation Group Type

Aggregation group type: D for dynamic, S for static, and M for manual

Loadsharing Type

Load sharing type: Shar for load sharing and NonS for non-load sharing

Actor ID

Local device ID

AL ID

Aggregation group ID

AL Type

Aggregation group type: D (dynamic), S (static), or M (manual)

Partner ID

ID of the remote device, including the system priority and system MAC address of the remote device

For a device belonging to an dynamic aggregation group or static aggregation group, if no LACP packet is received, the partner ID is displayed as 0x8000, 0000-0000-0000.

Select Ports

Number of the selected ports

Unselect Ports

Number of the unselected ports

Share Type

Load sharing type: Shar (load-sharing), or NonS (non-load-sharing)

Master Port

the smallest port number in an aggregation group

 

display link-aggregation verbose

Syntax

display link-aggregation verbose [ agg-id ]

View

Any view

Parameter

agg-id: Aggregation group ID to be displayed, which ranges from 1 to 28 and must be the ID of an existing aggregation group.

Description

Use the display link-aggregation verbose command to display the details about a specified aggregation group or all aggregation groups.

Note that as ports in a manual link aggregation groups do not acquire the information about their peers automatically, so the entries in the information about the peer ports displayed are all 0 instead of the actual values.

Example

# Display the details about aggregation group 1.

<Sysname> display link-aggregation verbose 1

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

Flags:  A -- LACP_Activity, B -- LACP_timeout, C -- Aggregation,

        D -- Synchronization, E -- Collecting, F -- Distributing,

        G -- Defaulted, H -- Expired

 

Aggregation ID: 1,  AggregationType: Static,   Loadsharing Type: NonS

Aggregation Description: abc

System ID: 0x16, 0012-a990-2240

Port Status: S -- Selected,  U -- Unselected

Local:

Port                     Status  Priority  Key    Flag

-------------------------------------------------------------------------

Ethernet1/0/4            S       32768     2      {ACDEFG}

Ethernet1/0/5            U       32768     2      {ACG}

 

Remote:

Actor                    Partner Priority Key   SystemID              Flag

--------------------------------------------------------------------------

Ethernet1/0/4            0       32768    0     0x8000,0000-0000-0000 {DEF}

Ethernet1/0/5            0       32768    0     0x8000,0000-0000-0000 {DEF}

Table 1-3 Description on the fields of the display link-aggregation verbose command

Field

Description

Loadsharing Type

Loadsharing type, including Loadsharing and Non-Loadsharing

Flags

Flag types of LACP

Aggregation ID

Aggregation group ID

Aggregation Description

Aggregation group description string

AggregationType

Aggregation group type

System ID

Device ID

Port Status

Port status, including selected and unselected

 

display lacp system-id

Syntax

display lacp system-id

View

Any view

Parameter

None

Description

Use the display lacp system-id command to display the device ID of the local system, including the system priority and the MAC address.

Example

# Display the device ID of the local system.

<Sysname> display lacp system-id

 Actor System ID: 0x8000, 000f-e20f-0100

The Actor System ID field is the device ID (consisting of the system priority and the system MAC address) of the local system.

lacp enable

Syntax

lacp enable

undo lacp enable

View

Ethernet port view

Parameter

None

Description

Use the lacp enable command to enable LACP on the current port.

Use the undo lacp enable command to disable LACP.

By default, LACP is disabled on a port.

Example

# Enable the LACP protocol on Ethernet 1/0/1.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface Ethernet1/0/1

[Sysname-Ethernet1/0/1] lacp enable

lacp port-priority

Syntax

lacp port-priority port-priority

undo lacp port-priority

View

Ethernet port view

Parameter

port-priority: Port priority, ranging from 0 to 65,535.

Description

Use the lacp port-priority command to set the priority of the current port.

Use the undo lacp port-priority command to restore the default port priority.

By default, the port priority is 32,768.

You can use the display link-aggregation verbose command or the display link-aggregation interface command to check the configuration result.

Example

# Set the priority of Ethernet1/0/1 to 64.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface Ethernet1/0/1

[Sysname-Ethernet1/0/1] lacp port-priority 64

lacp system-priority

Syntax

lacp system-priority system-priority

undo lacp system-priority

View

System view

Parameter

system-priority: System priority, ranging from 0 to 65,535.

Description

Use the lacp system-priority command to set the system priority.

Use the undo lacp system-priority command to restore the default system priority.

By default, the system priority is 32,768.

Example

# Set the system priority to 64.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] lacp system-priority 64

link-aggregation group description

Syntax

link-aggregation group agg-id description agg-name

undo link-aggregation group agg-id description

View

System view

Parameter

agg-id: Aggregation group ID, in the range of 1 to 28.

agg-name: Aggregation group name, a string of 1 to 32 characters.

Description

Use the link-aggregation group description command to set a description for an aggregation group.

Use the undo link-aggregation group description command to remove the description of an aggregation group.

 

If you have saved the current configuration with the save command, after system reboot, the configuration concerning manual and static aggregation groups and their descriptions still exists, but that of the dynamic aggregation groups and their descriptions gets lost.

 

You can use the display link-aggregation verbose command to check the configuration result.

Example

# Set the description "abc" for aggregation group 1.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] link-aggregation group 1 description abc

link-aggregation group mode

Syntax

link-aggregation group agg-id mode { manual | static }

undo link-aggregation group agg-id

View

System view

Parameter

agg-id: Aggregation group ID, in the range of 1 to 28.

manual: Creates a manual aggregation group.

static: Creates a static aggregation group.

Description

Use the link-aggregation group mode command to create a manual or static aggregation group.

Use the undo link-aggregation group command to remove  the specified aggregation group.

Related command: display link-aggregation summary.

Example

# Create manual aggregation group 22

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] link-aggregation group 22 mode manual

port link-aggregation group

Syntax

port link-aggregation group agg-id

undo port link-aggregation group

View

Ethernet port view

Parameter

agg-id: Aggregation group ID, in the range of 1 to 28.

Description

Use the port link-aggregation group command to add the current Ethernet port to a manual or static aggregation group.

Use the undo port link-aggregation group command to remove the current Ethernet port from the aggregation group.

Related command: display link-aggregation verbose.

Example

# Add Ethernet1/0/1 to aggregation group 22.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface Ethernet1/0/1

[Sysname-Ethernet1/0/1] port link-aggregation group 22

reset lacp statistics

Syntax

reset lacp statistics [ interface interface-type interface-number [ to interface-type interface-number ] ]

View

User view

Parameter

interface-type: Port type

interface-number: Port number

to: Specifies a port index range, with the two interface-type interface-number argument pairs around it as the two ends.

Description

Use the reset lacp statistics command to clear LACP statistics on specified port(s), or on all ports if no port is specified.

Related command: display link-aggregation interface.

Example

# Clear LACP statistics on all Ethernet ports.

<Sysname> reset lacp statistics

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网