- Table of Contents
-
- 02-Layer 2-LAN Switching Command Reference
- 00-Preface
- 01-Ethernet interface configuration commands
- 02-Loopback and null interface configuration commands
- 03-Bulk interface configuration commands
- 04-MAC address table configuration commands
- 05-Ethernet link aggregation configuration commands
- 06-Port isolation configuration commands
- 07-Spanning tree configuration commands
- 08-BPDU tunneling configuration commands
- 09-VLAN configuration commands
- 10-GVRP configuration commands
- 11-LLDP configuration commands
- 12-Service loopback group configuration commands
- 13-MVRP commands
- Related Documents
-
Title | Size | Download |
---|---|---|
05-Ethernet link aggregation configuration commands | 139.94 KB |
Ethernet link aggregation configuration commands
display link-aggregation load-sharing mode
display link-aggregation member-port
display link-aggregation summary
display link-aggregation verbose
link-aggregation load-sharing mode
link-aggregation port-priority
link-aggregation selected-port minimum
default
Use default to restore the default settings for an aggregate interface.
Syntax
default
Views
Layer 2 aggregate interface view
Default command level
2: System level
Usage guidelines
|
CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you perform it on a live network. |
This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. Use the display this command in interface view to identify these commands, and then use their undo forms or follow the command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message instructions to resolve the problem.
Examples
# Restore the default settings for Layer 2 aggregate interface Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] default
This command will restore the default settings. Continue? [Y/N]:y
description
Use description to set a description for an interface. For example, you can include information such as the purpose of the interface for the ease of management.
Use undo description to restore the default setting.
Syntax
description text
undo description
Default
The description of an interface is interface-name Interface. For example, the default description of Bridge-Aggregation1 is Bridge-Aggregation1 Interface.
Views
Layer 2 aggregate interface view
Default command level
2: System level
Parameters
text: Specifies the interface description, a string of 1 to 80 characters.
Examples
# Set the description of Layer 2 aggregate interface Bridge-Aggregation 1 to connect to the lab.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] description connect to the lab
display interface
Use display interface to display aggregate interface information.
Syntax
display interface [ bridge-aggregation ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface bridge-aggregation interface-number [ brief ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
bridge-aggregation: Displays information about Layer 2 aggregate interfaces.
interface-number: Specifies an existing aggregate interface number. The value range for the interface-number argument is the set of all existing aggregate interface numbers.
brief: Displays brief interface information. If you do not specify this keyword, this command displays detailed interface information.
down: Displays information about interfaces in DOWN state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If bridge-aggregation is not specified, this command displays information about all interfaces.
If bridge-aggregation is specified without any interface number specified, this command displays information about all Layer 2 aggregate interfaces.
If bridge-aggregation interface-number is specified, this command displays information about the specified aggregate interface.
Examples
# Display information about Layer 2 aggregate interface Bridge-Aggregation 1.
<Sysname> display interface bridge-aggregation 1
Bridge-Aggregation1 current state: DOWN
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e207-f2e0
Description: Bridge-Aggregation1 Interface
Unknown-speed mode, unknown-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
PVID: 1
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last clearing of counters: Never
Last 300 seconds input: 0 packets/sec 0 bytes/sec -%
Last 300 seconds output: 0 packets/sec 0 bytes/sec -%
Input (total): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts
Input (normal): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts
Input: 0 input errors, 0 runts, 0 giants, 0 throttles
0 CRC, 0 frame, 0 overruns, 0 aborts
0 ignored, 0 parity errors
Output (total): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Output (normal): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Output: 0 output errors, 0 underruns, 0 buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
0 lost carrier, 0 no carrier
# Display brief information about Layer 2 aggregate interface Bridge-Aggregation 1.
<Sysname> display interface bridge-aggregation 1 brief
The brief information of interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Speed or Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
BAGG1 UP 40G(a) F(a) A 1
# Display information about all Layer 2 aggregate interfaces in DOWN state.
<Sysname> display interface bridge-aggregation brief down
The brief information of interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
BAGG1 DOWN Not connected
Table 1 Command output
Field |
Description |
Bridge-Aggregation1 current state |
State of the Layer 2 aggregate interface: · DOWN (Administratively)—The interface is administratively shut down with the shutdown command. · DOWN—The interface is administratively up but physically down (possibly because no physical link is present or the link is faulty). · UP—The Ethernet interface is both administratively and physically up. |
Unknown-speed mode, unknown-duplex mode |
The interface speed and duplex mode are unknown. |
PVID |
Port VLAN ID (PVID). |
Last clearing of counters |
Time when the reset counters interface command was last used to clear the interface statistics. Never indicates the reset counters interface command has never been used on the interface after the device's startup. |
Last 300 seconds input/output |
Average input/output rate over the last 300 seconds. |
Input/Output (total) |
Statistics of all packets received/sent on the interface. |
Input/Output (normal) |
Statistics of all normal packets received/sent on the interface. |
Line protocol current state |
Link layer state of the interface. |
Internet protocol processing |
IP packet processing. Disabled indicates that IP packets cannot be processed. For an interface configured with an IP address, this field changes to Internet Address is. |
The brief information of interface(s) under bridge mode |
Brief information about Layer 2 interfaces. |
Link: ADM - administratively down; Stby - standby |
Link status: · ADM—The interface has been administratively shut down. To recover its physical layer state, use the undo shutdown command. · Stby—The interface is operating as a backup interface. |
Speed or Duplex: (a)/A - auto; H - half; F - full |
If the speed of an interface is automatically negotiated, its speed attribute includes the auto negotiation flag (an "a" in parentheses). If the duplex mode of an interface is automatically negotiated, its duplex mode attribute includes the auto negotiation flag, letter a in parentheses or a capital A. Letter H indicates the half duplex mode, and letter F indicates the full duplex mode. |
Type: A - access; T - trunk; H - hybrid |
Link type options for Ethernet interfaces. |
Protocol: (s) - spoofing |
If the network layer protocol state of an interface is shown as UP, but its link is an on-demand link or not present, its protocol attribute includes the spoofing flag (an s in parentheses). |
Interface |
Abbreviated interface name. |
Link |
Physical link state of the interface. |
Speed |
Interface speed, in bps. |
Cause |
Cause of a DOWN physical link. |
display lacp system-id
Use display lacp system-id to display the system ID of the local system.
Syntax
display lacp system-id [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
The system ID comprises the system LACP priority and the system MAC address.
Although you specify the LACP priority value in decimal format in the lacp system-priority command, it is displayed as a hexadecimal value with the display lacp system-id command.
Examples
# Display the local system ID.
<Sysname> display lacp system-id
Actor System ID: 0x8000, 0000-fc00-6504
Table 2 Command output
Field |
Description |
Actor System ID: 0x8000, 0000-fc00-6504 |
Local system ID, which comprises the system LACP priority (0x8000 in this sample output) and the system MAC address (0000-fc00-6504 in this sample output). |
Related commands
lacp system-priority
display link-aggregation load-sharing mode
Use display link-aggregation load-sharing mode to display global or group-specific link-aggregation load sharing criteria.
Syntax
display link-aggregation load-sharing mode [ interface [ bridge-aggregation interface-number ] ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
bridge-aggregation: Displays the load sharing criteria of the aggregation group corresponding to the specified Layer 2 aggregate interface.
interface-number: Specifies an existing aggregate interface number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
To display the global link-aggregation load sharing criteria, run the command without the interface keyword.
To display all group-specific load sharing criteria, run the command with the interface keyword, but do not specify a particular interface.
To display the load sharing criteria of a particular aggregation group, use the command with the aggregate interface specified.
The bridge-aggregation keyword becomes available only after you create Layer 2 aggregate interfaces on the device.
Examples
# Display the default global link-aggregation load sharing criteria.
<Sysname> display link-aggregation load-sharing mode
Link-Aggregation Load-Sharing Mode:
Layer 2 traffic: packet type-based sharing
# Display the default link-aggregation load sharing criteria of the aggregation group corresponding to Layer 2 aggregate interface Bridge-Aggregation 10.
<Sysname> display link-aggregation load-sharing mode interface bridge-aggregation 10
Bridge-Aggregation10 Load-Sharing Mode:
Layer 2 traffic: packet type-based sharing
Table 3 Command output
Field |
Description |
Link-Aggregation Load-Sharing Mode |
Global link-aggregation load sharing criteria. |
Bridge-Aggregation10 Load-Sharing Mode |
Link-aggregation load sharing criteria of the aggregation group corresponding to the aggregate interface Bridge-Aggregation 10. |
Layer 2 traffic: packet type-based sharing |
Default link-aggregation load sharing criteria for Layer 2 traffic. In this sample output, the criterion is the packet type. |
display link-aggregation member-port
Use display link-aggregation member-port to display detailed link aggregation information for the specified member ports. If no port is specified, this command displays detailed link aggregation information for all member ports.
Syntax
display link-aggregation member-port [ interface-list ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number1 [ to interface-type interface-number2 ], where interface-type interface-number specifies an interface by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
Only the port number and operational key of a member port in a static aggregation group are displayed, because the aggregation group is not aware of the partner’s information.
Examples
# Display detailed link aggregation information for GigabitEthernet 1/0/1, a member port of a static aggregation group.
<Sysname> display link-aggregation member-port gigabitethernet 1/0/1
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
GigabitEthernet1/0/1:
Aggregation Interface: Bridge-Aggregation1
Port Number: 1
Port Priority: 32768
Oper-Key: 1
# Display detailed link aggregation information for GigabitEthernet 1/0/2, a member port of a dynamic aggregation group.
<Sysname> display link-aggregation member-port gigabitethernet 1/0/2
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
GigabitEthernet1/0/2:
Aggregation Interface: Bridge-Aggregation10
Local:
Port Number: 2
Port Priority: 32768
Oper-Key: 2
Flag: {ACDEF}
Remote:
System ID: 0x8000, 000f-e267-6c6a
Port Number: 26
Port Priority: 32768
Oper-Key: 2
Flag: {ACDEF}
Received LACP Packets: 5 packet(s)
Illegal: 0 packet(s)
Sent LACP Packets: 7 packet(s)
Table 4 Command output
Field |
Description |
Flags |
LACP state flags: · A—LACP is enabled. · B—LACP short timeout. · C—The sending system detects that the link is aggregatable. · D—The sending system detects that the link is synchronized. · E—The sending system detects that the incoming frames are collected. · F—The sending system detects that the outgoing frames are distributed. · G—The sending system receives frames in default state. · H—The sending system receives frames in expired state. |
Aggregation Interface |
Aggregate interface to which the member port belongs. |
Local |
Information about the local end. |
Port Priority |
Aggregation priority of the port. |
Oper-key |
Operational key. |
Flag |
LACP protocol state flag. |
Remote |
Information about the remote end. |
System ID |
Remote end system ID, comprising the system LACP priority and the system MAC address. |
Received LACP Packets |
Total number of LACP packets received. |
Illegal |
Total number of illegal packets. |
Sent LACP Packets |
Total number of LACP packets sent. |
display link-aggregation summary
Use display link-aggregation summary to display the summary information for all aggregation groups.
Syntax
display link-aggregation summary [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
The information about the remote system for a static link aggregation group may be displayed as none or may not be displayed, because the aggregation group is not aware of the partner’s information.
Examples
# Display the summary information for all aggregation groups.
<Sysname> display link-aggregation summary
Aggregation Interface Type:
BAGG -- Bridge-Aggregation
Aggregation Mode: S -- Static, D -- Dynamic
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 000f-e267-6c6a
AGG AGG Partner ID Select Unselect Share
Interface Mode Ports Ports Type
-------------------------------------------------------------------------
BAGG1 S none 1 0 Shar
Table 5 Command output
Field |
Description |
Aggregation Interface Type |
Aggregate interface type. BAGG indicates Layer 2 aggregate interfaces. |
Aggregation Mode |
Aggregation group type: · S—Static link aggregation. · D—Dynamic aggregation. |
Loadsharing Type |
Load sharing type: · Shar—Load sharing. · NonS—Non-load sharing. |
Actor System ID |
Local system ID, which comprises the system LACP priority and the system MAC address. |
AGG Interface |
Type and number of the aggregate interface. |
AGG Mode |
Aggregation group type. |
Partner ID |
System ID of the partner, which comprises the system LACP priority and the system MAC address. |
Select Ports |
Total number of Selected ports. |
Unselect Ports |
Total number of Unselected ports. |
Share Type |
Load sharing type. |
display link-aggregation verbose
Use display link-aggregation verbose to display detailed information about the aggregation groups corresponding to the aggregate interfaces.
Syntax
display link-aggregation verbose [ bridge-aggregation [ interface-number ] ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
bridge-aggregation: Displays detailed information about the Layer 2 aggregation groups corresponding to Layer 2 aggregate interfaces.
interface-number: Specifies an existing aggregate interface number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
To display the information about a specific Layer 2 aggregation group, use the display link-aggregation verbose bridge-aggregation interface-number command.
To display the information about all Layer 2 aggregation groups, use the display link-aggregation verbose bridge-aggregation command.
To display the information about all aggregation groups, use the display link-aggregation verbose command.
The bridge-aggregation keyword is available only when you create Layer 2 aggregate interfaces on the device.
Examples
# Display detailed information about the aggregation group corresponding to Layer 2 aggregate interface Bridge-Aggregation 10, which is a dynamic aggregation group.
<Sysname> display link-aggregation verbose bridge-aggregation 10
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregation Interface: Bridge-Aggregation10
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Oper-Key Flag
-------------------------------------------------------------------------------
GE1/0/6 S 32768 2 {ACDEF}
GE1/0/10 S 32768 2 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
-------------------------------------------------------------------------------
GE1/0/6 32 32768 2 0x8000, 000f-e267-57ad {ACDEF}
GE1/0/10 26 32768 2 0x8000, 000f-e267-57ad {ACDEF}
# Display detailed information about the aggregation group corresponding to Layer 2 aggregate interface Bridge-Aggregation 20, which is a static aggregation group.
<Sysname> display link-aggregation verbose bridge-aggregation 20
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregation Interface: Bridge-Aggregation20
Aggregation Mode: Static
Loadsharing Type: NonS
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
GE1/0/21 U 32768 1
GE1/0/22 U 32768 1
GE1/0/23 U 63 1
Table 6 Command output
Field |
Description |
Loadsharing Type |
Load sharing type: · Shar—Load sharing. · NonS—Non-load sharing. |
Port Status |
Port state: Selected or unselected. |
Flags |
LACP state flags: · A—LACP is enabled. · B—LACP short timeout. · C—The sending system detects that the link is aggregatable. · D—The sending system detects that the link is synchronized. · E—The sending system detects that the incoming frames are collected. · F—The sending system detects that the outgoing frames are distributed. · G—The sending system receives frames in default state. · H—The sending system receives frames in expired state. |
Aggregation Interface |
Name of the aggregate interface. |
Aggregation Mode |
Mode of the aggregation group: · Static for static aggregation. · Dynamic for dynamic aggregation. |
System ID |
Local system ID, comprising the system LACP priority and the system MAC address. |
Local |
Information about the local end. |
Port |
Port type and number. |
Status |
Port state: selected or unselected. |
Priority |
Port aggregation priority. |
Oper-Key |
Operational key. |
Flag |
LACP protocol state flag. |
Remote |
Information about the remote end. |
Actor |
Local port type and number. |
Partner |
Remote port index. |
enable snmp trap updown
Use enable snmp trap updown to enable linkUp/linkDown trap generation for the aggregate interface.
Use undo enable snmp trap updown to disable linkUp/linkDown trap generation for the aggregate interface.
Syntax
enable snmp trap updown
undo enable snmp trap updown
Default
LinkUp/linkDown trap generation is enabled for an aggregate interface.
Views
Layer 2 aggregate interface view
Default command level
2: System level
Usage guidelines
For an aggregate interface to generate linkUp/linkDown traps when its link state changes, you must enable linkUp/linkDown trap generation globally with the snmp-agent trap enable [ standard [ linkdown | linkup ] * ] command.
For more information about the snmp-agent trap enable command, see Network Management and Monitoring Command Reference.
Examples
# Enable linkUp/linkDown trap generation on Layer 2 aggregate interface Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] snmp-agent trap enable
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] enable snmp trap updown
interface bridge-aggregation
Use interface bridge-aggregation to create a Layer 2 aggregate interface and enter the Layer 2 aggregate interface view.
Use undo interface bridge-aggregation to remove a Layer 2 aggregate interface.
Syntax
interface bridge-aggregation interface-number
undo interface bridge-aggregation interface-number
Views
System view
Default command level
2: System level
Parameters
interface-number: Specifies a Layer 2 aggregate interface number in the range of 1 to 128.
Usage guidelines
When you create a Layer 2 aggregate interface, a Layer 2 aggregation group with the same number is automatically created. If you remove the Layer 2 aggregate interface, you also remove the Layer 2 aggregation group, and any member ports leave the aggregation group.
Examples
# Create Layer 2 aggregate interface Bridge-Aggregation 1 and enter its view.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1]
lacp period short
Use lacp period short to set the LACP timeout interval on a port to the short timeout interval (1 second).
Use undo lacp period to restore the default setting.
Syntax
lacp period short
undo lacp period
Default
The LACP timeout interval is the long timeout interval (30 seconds).
Views
Ethernet interface view
Default command level
2: System level
Examples
# Set the LACP timeout interval on GigabitEthernet 1/0/1 to the short timeout interval (1 second).
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lacp period short
lacp system-priority
Use lacp system-priority to set the LACP priority of the local system.
Use undo lacp system-priority to restore the default setting.
Syntax
lacp system-priority system-priority
undo lacp system-priority
Default
The system LACP priority is 32768.
Views
System view
Default command level
2: System level
Parameters
system-priority: Specifies the LACP priority of the local system, in the range of 0 to 65535. The smaller the value, the higher the system LACP priority.
Examples
# Set the system LACP priority to 64.
<Sysname> system-view
[Sysname] lacp system-priority 64
link-aggregation load-sharing mode
Use link-aggregation load-sharing mode to configure the global or group-specific link-aggregation load sharing criteria.
Use undo link-aggregation load-sharing mode to restore the default setting.
Syntax
In system view:
link-aggregation load-sharing mode { destination-ip | destination-mac | destination-port | ingress-port | source-ip | source-mac | source-port }*
In Layer 2 aggregate interface view:
link-aggregation load-sharing mode { destination-ip | destination-mac | source-ip | source-mac } *
undo link-aggregation load-sharing mode
Default
The system selects the load sharing criteria according to the packet type, and the group-specific link-aggregation load sharing criteria are the same as the global ink-aggregation load sharing criteria.
Views
System view, Layer 2 aggregate interface view
Default command level
2: System level
Parameters
destination-ip: Performs load sharing in link aggregation groups based on destination IP address. destination-mac: Performs load sharing in link aggregation groups based on destination MAC address.
destination-port: Performs load sharing in link aggregation groups based on destination port.
ingress-port: Performs load sharing in link aggregation groups based on ingress port.
source-ip: Performs load sharing in link aggregation groups based on source IP address.
source-mac: Performs load sharing in link aggregation groups based on source MAC address.
source-port: Performs load sharing in link aggregation groups based on source port.
Usage guidelines
This command applies to only unicast packets, and can change the load sharing criteria for unicast packets. Broadcast packets and multicast packets always use the default load sharing criteria.
The load sharing criteria that you configure will overwrite the previous criteria.
If unsupported load sharing criteria are configured, an error prompt will appear.
In system view, the WX5540E switching engine supports the following load sharing criteria and combinations:
· Load sharing criteria automatically determined based on the packet type
· Source IP address
· Destination IP address
· Source MAC address
· Destination MAC address
· Source IP address and destination IP address
· Source IP address and source port
· Destination IP address and destination port
· Source IP address, source port, destination IP address, and destination port
· Any combination of incoming port, source MAC address, and destination MAC address
In Layer 2 aggregate interface view, the WX5540E switching engine supports the following load sharing criteria and combinations:
· Load sharing criteria automatically determined based on the packet type
· Source IP address
· Destination IP address
· Source MAC address
· Destination MAC address
· Destination IP address and source IP address
· Destination MAC address and source MAC address
Examples
# Configure the source MAC address and destination MAC address as the global link-aggregation load sharing criteria.
<Sysname> system-view
[Sysname] link-aggregation load-sharing mode source-mac destination-mac
# Configure the destination MAC address as the load sharing criterion specific to the link aggregation group of aggregate interface Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] link-aggregation load-sharing mode destination-mac
link-aggregation mode
Use link-aggregation mode dynamic to configure an aggregation group to operate in dynamic aggregation mode.
Use undo link-aggregation mode to restore the default setting.
Syntax
link-aggregation mode dynamic
undo link-aggregation mode
Default
An aggregation group operates in static aggregation mode.
Views
Layer 2 aggregate interface view
Default command level
2: System level
Usage guidelines
To change the aggregation mode of an aggregation group that contains member ports, remove all member ports from the aggregation group first.
Examples
# Configure the aggregation group corresponding to Bridge-Aggregation 1 to operate in dynamic aggregation mode.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] link-aggregation mode dynamic
link-aggregation port-priority
Use link-aggregation port-priority to set the aggregation priority of a port.
Use undo link-aggregation port-priority to restore the default setting.
Syntax
link-aggregation port-priority port-priority
undo link-aggregation port-priority
Default
The aggregation priority of a port is 32768.
Views
Ethernet interface view
Default command level
2: System level
Parameters
port-priority: Specifies a port aggregation priority in the range of 0 to 65535. The smaller the value, the higher the port aggregation priority.
Examples
# Set the aggregation priority of port GigabitEthernet 1/0/1 to 64.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] link-aggregation port-priority 64
link-aggregation selected-port minimum
Use link-aggregation selected-port minimum to configure the minimum number of Selected ports in the aggregation group.
Use undo link-aggregation selected-port minimum to restore the default setting.
Syntax
link-aggregation selected-port minimum number
undo link-aggregation selected-port minimum
Default
The minimum number of Selected ports in an aggregation group is not specified.
Views
Layer 2 aggregate interface view
Default command level
2: System level
Parameters
number: Specifies the minimum number of Selected ports in an aggregation group required to bring up the aggregate interface. The value range is 1 to 8.
Usage guidelines
Executing this command might cause all the member ports in the aggregation group to become unselected.
Make sure that the minimum number of Selected ports in an aggregation group is the same as that on the peer.
Examples
# Configure the minimum number of Selected ports as 3 in the aggregation group corresponding to Layer 2 aggregate interface Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] link-aggregation selected-port minimum 3
port link-aggregation group
Use port link-aggregation group to assign the Ethernet interface to the specified aggregation group.
Use undo port link-aggregation group to remove the Ethernet interface from the aggregation group to which it belongs.
Syntax
port link-aggregation group number
undo port link-aggregation group
Views
Ethernet interface view
Default command level
2: System level
Parameters
number: Specifies the number of the aggregate interface corresponding to an aggregation group. The value range is 1 to 128 for a Layer 2 aggregate interface.
Usage guidelines
A Layer 2 Ethernet interface can be assigned to a Layer 2 aggregation group only.
An Ethernet interface can belong to only one aggregation group.
Examples
# Assign Layer 2 Ethernet interface GigabitEthernet 1/0/1 to Layer 2 aggregation group 1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port link-aggregation group 1
reset counters interface
Use reset counters interface to clear the statistics of the specified aggregate interface or interfaces.
Syntax
reset counters interface [ bridge-aggregation [ interface-number ] ]
Views
User view
Default command level
2: System level
Parameters
bridge-aggregation: Clears statistics for Layer 2 aggregate interfaces.
interface-number: Specifies an aggregate interface number. If this argument is not specified, the command clears statistics for all aggregate interfaces of the specified type.
Usage guidelines
Before collecting statistics for a Layer 2 aggregate interface within a specific period, clear the existing statistics of the interface.
· If no keyword or argument is specified, the command clears the statistics of all interfaces in the system.
· If only the bridge-aggregation keyword is specified, the command clears the statistics of all Layer 2 aggregate interfaces.
· If the bridge-aggregation interface-number option is specified, the command clears the statistics of the specified Layer 2 aggregate interface.
· The bridge-aggregation keyword becomes available only after you create Layer 2 aggregate interfaces on the device.
Examples
# Clear the statistics of Layer 2 aggregate interface Bridge-Aggregation 1.
<Sysname> reset counters interface bridge-aggregation 1
reset lacp statistics
Use reset lacp statistics to clear the LACP statistics on the specified member ports or all member ports, if no member ports are specified.
Syntax
reset lacp statistics [ interface interface-list ]
Views
User view
Default command level
1: Monitor level
Parameters
interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number1 [ to interface-type interface-number2 ], where interface-type interface-number specifies an interface by its type and number.
Examples
# Clear the LACP statistics on all link aggregation member ports.
<Sysname> reset lacp statistics
Related commands
display link-aggregation member-port
shutdown
Use shutdown to shut down the aggregate interface.
Use undo shutdown to bring up the aggregate interface.
Syntax
shutdown
undo shutdown
Default
Aggregate interfaces are up.
Views
Layer 2 aggregate interface view
Default command level
2: System level
Examples
# Shut down Layer 2 aggregate interface Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] shutdown