Syntax
display link-aggregation interface interface-type interface-number [ to
interface-type interface-number ]
View
Any view
Parameters
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.
Examples
# Display the link aggregation details on GigabitEthernet
1/0/1.
<Sysname> display
link-aggregation interface GigabitEthernet1/0/1
GigabitEthernet1/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
|
Syntax
display link-aggregation summary
View
Any view
Parameters
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.
Examples
# 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 GigabitEthernet1/0/2
2 M none
0 1 NonS GigabitEthernet1/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
|
Syntax
display link-aggregation verbose [ agg-id ]
View
Any view
Parameters
agg-id: Aggregation
group ID, which ranges from 1 to 464 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.
Examples
# 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:
Manual, Loadsharing Type: NonS
Aggregation Description:
System ID: 0x8000, 000f-e200-5600
Port Status: S -- Selected, U --
Unselected
Local:
Port Status
Priority Key Flag
--------------------------------------------------------------------------
GigabitEthernet1/0/5 U
32768 1 {}
GigabitEthernet1/0/10 U
32768 1 {}
Remote:
Actor Partner
Priority Key SystemID Flag
--------------------------------------------------------------------------
GigabitEthernet1/0/5 0
0 0 0x0000,0000-0000-0000 {}
GigabitEthernet1/0/10 0
0 0 0x0000,0000-0000-0000 {}
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
|
Syntax
display lacp system-id
View
Any view
Parameters
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.
Examples
# 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.
1.1.5 lacp enable
Syntax
lacp enable
undo lacp enable
View
Ethernet port view
Parameters
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.
Examples
# Enable the LACP protocol on GigabitEthernet
1/0/1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface GigabitEthernet1/0/1
[Sysname-GigabitEthernet1/0/1] lacp
enable
Syntax
lacp port-priority
port-priority
undo lacp
port-priority
View
Ethernet port view
Parameters
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.
Examples
# Set the priority of GigabitEthernet 1/0/1
to 64.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface GigabitEthernet1/0/1
[Sysname-GigabitEthernet1/0/1] lacp
port-priority 64
Syntax
lacp system-priority
system-priority
undo lacp
system-priority
View
System view
Parameters
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.
Examples
# Set the system priority to 64.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] lacp system-priority 64
Syntax
link-aggregation group agg-id description agg-name
undo link-aggregation group agg-id description
View
System view
Parameters
agg-id: Aggregation
group ID, in the range of 1 to 464.
agg-name:
Aggregation group description, 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.
Examples
# 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
Syntax
link-aggregation group agg-id mode { manual | static }
undo link-aggregation group agg-id
View
System view
Parameters
agg-id:
Aggregation group ID, in the range of 1 to 464.
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 commands: display
link-aggregation summary.
Examples
# Create manual aggregation group 22
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] link-aggregation group 22
mode manual
Syntax
port link-aggregation group agg-id
undo port link-aggregation group
View
Ethernet port view
Parameters
agg-id:
Aggregation group ID, in the range of 1 to 464.
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 commands: display
link-aggregation verbose.
Examples
# Add GigabitEthernet 1/0/1 to aggregation
group 22.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface GigabitEthernet1/0/1
[Sysname-GigabitEthernet1/0/1] port
link-aggregation group 22
Syntax
reset lacp statistics [ interface interface-type interface-number [ to
interface-type interface-number ] ]
View
User view
Parameters
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 commands: display
link-aggregation interface.
Examples
# Clear LACP statistics on all Ethernet
ports.
<Sysname> reset lacp statistics