04-Layer 2 - LAN Switching Command Reference

HomeSupportSwitchesH3C S9500E Switch SeriesReference GuidesCommand ReferencesH3C S9500E Command Reference-Release1728-6W17004-Layer 2 - LAN Switching Command Reference
04-Ethernet Link Aggregation Commands
Title Size Download
04-Ethernet Link Aggregation Commands 154.19 KB

default

Syntax

default

View

Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view

Default level

2: System level

Parameters

None

Description

Use the default command to restore the default settings for an aggregate interface or subinterface.

This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. You can use the display this command in interface view to check for these commands, and perform their undo forms or follow the command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message to resolve the problem.

 

CAUTION

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.

 

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

Syntax

description text

undo description

View

Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view

Default level

2: System level

Parameters

text: Description of the interface, which is a string of 1 to 80 characters.

Description

Use the description command to set the description of the interface.

Use the undo description command to restore the default.

By default, the description of an interface is interface-name Interface. For example, the default description of interface Bridge-Aggregation 1 is Bridge-Aggregation1 Interface.

Examples

# Set the description of Layer 2 aggregate interface Bridge-Aggregation 1 to link-aggregation interface.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] description link-aggregation interface

display interface

Syntax

display interface [ bridge-aggregation | route-aggregation ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]

display interface { bridge-aggregation | route-aggregation } interface-number [ brief ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

bridge-aggregation: Displays information about Layer 2 aggregate interfaces.

route-aggregation: Displays information about Layer 3 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 the 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.

Description

Use the display interface command to display aggregate interface information.

·           If bridge-aggregation | route-aggregation is not specified, this command displays information about all interfaces.

·           If bridge-aggregation or route-aggregation is specified without any interface number specified, this command displays information about all aggregate interfaces.

·           If bridge-aggregation interface-number or route-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 broadcasts, 0 multicasts, 0 pauses

 Input (normal):  0 packets, 0 bytes

          0 broadcasts, 0 multicasts, 0 pauses

 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 broadcasts, 0 multicasts, 0 pauses

 Output (normal): 0 packets, 0 bytes

          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 information about Layer 3 aggregate interface Route-Aggregation 1.

<Sysname> display interface route-aggregation 1

Route-Aggregation1 current state: DOWN

Line protocol current state: DOWN

Description: Route-Aggregation1 Interface

The Maximum Transmit Unit is 1500

Internet protocol processing : disabled

IP Packet Frame Type: PKTFMT_ETHNT_2,  Hardware Address: 000f-e20a-0001

IPv6 Packet Frame Type: PKTFMT_ETHNT_2,  Hardware Address: 000f-e20a-0001

Output queue : (Urgent queuing : Size/Length/Discards)  0/100/0

Output queue : (Protocol queuing : Size/Length/Discards)  0/500/0

Output queue : (FIFO queuing : Size/Length/Discards)  0/75/0

 Last clearing of counters:  Never

# 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                DOWN auto    A      A    1

# Display brief information about Layer 3 aggregate interface Route-Aggregation 1.

<Sysname> display interface route-aggregation 1 brief

The brief information of interface(s) under route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Main IP         Description

RAGG1                DOWN DOWN     --

# Display information about all Layer 2 aggregate interfaces in the 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

# Display information about all Layer 3 aggregate interfaces in the down state.

<Sysname> display interface route-aggregation brief down

The brief information of interface(s) under route mode:

Link: ADM - administratively down; Stby - standby

Interface            Link Cause

RAGG1                DOWN Not connected

Table 1 Output description

Field

Description

Bridge-Aggregation1/Route-Aggregation1 current state

The Layer 2/Layer 3 interface status, which can be:

·       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

The default VLAN ID.

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 since the switch’s startup.

Last 300 seconds input/output

The average input/output rate over the last 300 seconds.

Input/Output (total)

The statistics of all packets received/sent on the interface.

Input/Output (normal)

The 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.

Output queue : (Urgent queuing : Size/Length/Discards)

Output queue (current message number in the urgent queue/ maximum number of messages allowed in the urgent queue/number of discarded messages).

Output queue : (Protocol queuing : Size/Length/Discards)

Output queue (current message number in the protocol queue/ maximum number of messages allowed in the protocol queue/number of discarded messages).

Output queue : (FIFO queuing : Size/Length/Discards)

Output queue (current message number in the FIFO queue/ maximum number of messages allowed in the FIFO queue/number of discarded messages).

The brief information of interface(s) under route mode

Brief information about Layer 3 interfaces.

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, perform 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, letter 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

The abbreviated interface name.

Link

The physical link state of the interface.

Speed

The interface speed, in bps.

Cause

The cause of a DOWN physical link.

 

display lacp system-id

Syntax

display lacp system-id [ | { begin | exclude | include } regular-expression ]

View

Any view

Default 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.

Description

Use the display lacp system-id command to display the system ID of the local system.

The system ID comprises the system LACP priority and the system MAC address.

You can use the lacp system-priority command to change the LACP priority of the local system.

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.

Related commands: lacp system-priority.

Examples

# Display the local system ID.

<Sysname> display lacp system-id

 Actor System ID: 0x8000, 00e0-fc00-0100

Table 2 Output description

Field

Description

Actor System ID

The local system ID, which comprises the system LACP priority (0x8000 in this sample output) and the system MAC address (00e0-fc00-0100 in this sample output).

 

display link-aggregation load-sharing mode

Syntax

display link-aggregation load-sharing mode [ | { begin | exclude | include } regular-expression ]

View

Any view

Default 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.

Description

Use the display link-aggregation load-sharing mode command to display the load sharing mode of load-sharing link aggregation groups.

Examples

# Display the default load sharing mode when no load sharing mode has been configured.

<Sysname> display link-aggregation load-sharing mode

 

Link-Aggregation Load-Sharing Mode:

Layer 2 traffic: destination-mac address, source-mac address

Layer 3 traffic: destination-mac address, source-mac address,

                 destination-ip address,  source-ip address

Layer 4 traffic: destination-mac address, source-mac address,

                 destination-ip address,  source-ip address,

                 destination-port,        source-port

MPLS traffic   : destination-mac address, source-mac address,

                 mpls-label1,             mpls-label2,

                 mpls-label3

# After you configure a load sharing mode, display the load sharing mode configuration.

<Sysname> display link-aggregation load-sharing mode

 

Link-Aggregation Load-Sharing Mode:

  destination-mac address, source-mac address

Table 3 Output description

Field

Description

Link-Aggregation Load-Sharing Mode

Displays the load sharing criteria for load-sharing link aggregation groups.

·       By default, the link-aggregation load sharing criteria for Layer 2 traffic, Layer 3 traffic, Layer 4 traffic, and MPLS traffic are displayed.

·       Otherwise, the user-configured link-aggregation load sharing criteria are displayed.

Layer 2 traffic

The default link-aggregation load sharing criteria for Layer 2 traffic.

Layer 3 traffic

The default link-aggregation load sharing criteria for Layer 3 traffic.

Layer 4 traffic

The default link-aggregation load sharing criteria for Layer 4 traffic.

MPLS traffic

The default link-aggregation load sharing criteria for MPLS traffic.

destination-mac address, source-mac address

The user-configured link-aggregation load sharing criteria.

 

display link-aggregation member-port

Syntax

display link-aggregation member-port [ interface-list ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number [ to interface-type interface-number ], where interface-type interface-number indicates the port type and port 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.

Description

Use the display link-aggregation member-port command to display the detailed link aggregation information of the specified member ports or all member ports if no port is specified.

For a member port in a static aggregation group, only the port number and operational key are displayed, because the aggregation group is unaware of information about the peer groups.

Examples

# Display the detailed link aggregation information of GigabitEthernet 4/0/1, a member port of a static aggregation group.

<Sysname> display link-aggregation member-port gigabitethernet 4/0/1

 

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

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

       G -- Defaulted, H -- Expired

 

GigabitEthernet4/0/1:

Aggregation Interface: Bridge-Aggregation1

Port Number: 1

Port Priority: 32768

Oper-Key: 1

Table 4 Output description

Field

Description

Flags

One-octet LACP state flags field:

·       A indicates whether LACP is enabled. 1 for enabled and 0 for disabled.

·       B indicates the timeout control value. 1 for short timeout and 0 for long timeout.

·       C indicates whether the link is considered as aggregatable by the sending system. 1 for true, and 0 for false.

·       D indicates whether the link is considered as synchronized by the sending system. 1 for true, and 0 for false.

·       E indicates whether the sending system considers that collection of incoming frames is enabled on the link. 1 for true and 0 for false.

·       F indicates whether the sending system considers that distribution of outgoing frames is enabled on the link. 1 for true and 0 for false.

·       G indicates whether the receive state machine of the sending system is using default operational partner information. 1 for true and 0 for false.

·       H indicates whether the receive state machine of the sending system is in the expired state. 1 for true and 0 for false.

If a flag bit is set to 1, the corresponding English letter that otherwise is not output is displayed.

Aggregation Interface

Aggregate interface to which the port belongs.

Port Priority

Aggregation priority of the port.

Oper-key

Operational key.

 

display link-aggregation summary

Syntax

display link-aggregation summary [ | { begin | exclude | include } regular-expression ]

View

Any view

Default 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.

Description

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

Information about the remote system for a static link aggregation group may be either shown as none or not displayed, because the aggregation group is unaware of information about the peer groups.

Examples

# Display the summary information of all aggregation groups.

<Sysname> display link-aggregation summary

 

Aggregation Interface Type:

     BAGG -- Bridge-Aggregation, RAGG -- Route-Aggregation

     Aggregation Mode: S -- Static, D -- Dynamic

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

Actor System ID: 0x8000, 00e0-fc00-9512

 

AGG         AGG       Partner ID               Select Unselect   Share

Interface   Mode                               Ports  Ports      Type

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

BAGG2       S         none                     1      1          Shar

Table 5 Output description

Field

Description

Aggregation Interface Type

Aggregate interface type:

·       BAGG for a Layer 2 aggregate interface.

·       RAGG for a Layer 3 aggregate interface.

Aggregation Mode

Aggregation group type:

·       S for static link aggregation.

·       D for dynamic aggregation.

Loadsharing Type

Loadsharing type:

·       Shar for load sharing.

·       NonS for 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

The number of Selected ports.

Unselect Ports

The number of Unselected ports.

Share Type

Load sharing type.

 

display link-aggregation verbose

Syntax

display link-aggregation verbose [ { bridge-aggregation | route-aggregation } [ interface-number ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

bridge-aggregation: Displays detailed information about the Layer 2 aggregation groups corresponding to Layer 2 aggregate interfaces.

route-aggregation: Displays detailed information about the Layer 3 aggregation groups corresponding to Layer 3 aggregate interfaces.

interface-number: Specifies an aggregate interface number, ranging from 1 to 1024. You can configure up to 240 aggregation groups on the switch.

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

Description

Use the display link-aggregation verbose command to display detailed information about the aggregation groups corresponding to the aggregate interfaces in the system.

To display the information of a specific Layer 2 aggregation group, use the display link-aggregation verbose bridge-aggregation interface-number command.

To display the information of all Layer 2 aggregate interfaces, use the display link-aggregation verbose bridge-aggregation command.

Examples

# Display the 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: Static

Loadsharing Type: Shar

  Port             Status  Priority  Oper-Key

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

  GE3/0/1          S       32768     1

  GE3/0/2          U       32768     2

Table 6 Output description

Field

Description

Loadsharing Type

Loadsharing type:

·       Shar for load sharing.

·       NonS for non-load sharing.

Port Status

Port state: Selected or unselected.

Flags

One-octet LACP state flags field:

·       A indicates whether LACP is enabled. 1 for enabled and 0 for disabled.

·       B indicates the timeout control value. 1 for short timeout, and 0 for long timeout.

·       C indicates whether the link is considered as aggregatable by the sending system. 1 for true, and 0 for false.

·       D indicates whether the link is considered as synchronized by the sending system. 1 for true, and 0 for false.

·       E indicates whether the sending system considers that collection of incoming frames is enabled on the link. 1 for true and 0 for false.

·       F indicates whether the sending system considers that distribution of outgoing frames is enabled on the link. 1 for true and 0 for false.

·       G indicates whether the receive state machine of the sending system is using default operational partner information. 1 for true and 0 for false.

·       H indicates whether the receive state machine of the sending system is in the expired state. 1 for true and 0 for false.

If a flag bit is set to 1, the corresponding English letter that otherwise is not output is displayed.

Aggregation Interface

Name of the aggregate interface.

Aggregation Mode

Type of the aggregation group:

·       Static for static aggregation.

·       Dynamic for dynamic aggregation.

Port

Port type and number.

Status

State of the port.

Oper-Key

Operational key value.

 

enable snmp trap updown

Syntax

enable snmp trap updown

undo enable snmp trap updown

View

Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view

Default level

2: System level

Parameters

None

Description

Use the enable snmp trap updown command to enable link state trapping for the aggregate interface.

Use the undo enable snmp trap updown command to disable link state trapping for the aggregate interface.

By default, linkUp/linkDown trap generation is enabled for an aggregate interface.

For an aggregate interface to generate linkUp/linkDown traps when its link state changes, you must enable link state trapping 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 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

Syntax

interface bridge-aggregation interface-number

undo interface bridge-aggregation interface-number

View

System view

Default level

2: System level

Parameters

interface-number: Specifies a Layer 2 aggregate interface number, ranging from 1 to 1024. You can configure up to 240 aggregation groups on the switch.

Description

Use the interface bridge-aggregation command to create a Layer 2 aggregate interface and enter the Layer 2 aggregate interface view.

Use the undo interface bridge-aggregation command to remove a Layer 2 aggregate interface.

When a Layer 2 aggregate interface is created, 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 will 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]

interface route-aggregation

Syntax

interface route-aggregation { interface-number | interface-number.subnumber }

undo interface route-aggregation { interface-number | interface-number.subnumber }

View

System view

Default level

2: System level

Parameters

interface-number: Specifies a Layer 3 aggregate interface number.

interface-number.subnumber: Specifies a subinterface of a Layer 3 aggregate interface. The interface-number argument specifies the main interface number. The subnumber argument specifies the subinterface number, which ranges from 1 to 4093 and is separated from the main interface number by a dot (.).

Description

Use the interface route-aggregation command to create a Layer 3 aggregate interface or subinterface and enter Layer 3 aggregate interface or subinterface view.

Use the undo interface route-aggregation command to remove a Layer 3 aggregate interface or subinterface.

Upon creation of a Layer 3 aggregate interface, a Layer 3 aggregation group numbered the same is created automatically. Removing the Layer 3 aggregate interface also removes the Layer 3 aggregation group. At the same time, the member ports of the aggregation group, if any, leave the aggregation group.

Removing a Layer 3 aggregate subinterface does not affect the state of the main interface and the corresponding aggregation group.

The switch operating in a non-standard working mode does not support Layer 3 aggregation interfaces. For more information about system working modes, see Fundamentals Configuration Guide.

Examples

# Create Layer 3 aggregate interface Route-Aggregation 1 and enter its view.

<Sysname> system-view

[Sysname] interface route-aggregation 1

[Sysname-Route-Aggregation1]

lacp period short

Syntax

lacp period short

undo lacp period

View

Ethernet interface view

Default level

2: System level

Parameters

None

Description

Use the lacp period short command to set the LACP timeout interval on a port to the short timeout interval (1 second).

Use the undo lacp period command to restore the default setting.

The default LACP timeout interval is the long timeout interval (30 seconds).

Examples

# Set the LACP timeout interval on GigabitEthernet 4/0/1 to the short timeout interval (1 second).

<Sysname> system-view

[Sysname] interface gigabitethernet 4/0/1

[Sysname-GigabitEthernet4/0/1] lacp period short

lacp system-priority

Syntax

lacp system-priority system-priority

undo lacp system-priority

View

System view

Default level

2: System level

Parameters

system-priority: LACP priority of the local system, ranging from 0 to 65535. The smaller the value, the higher the system LACP priority.

Description

Use the lacp system-priority command to set the LACP priority of the local system.

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

By default, the system LACP priority is 32768.

Examples

# Set the system LACP priority to 64.

<Sysname> system-view

[Sysname] lacp system-priority 64

link-aggregation lacp traffic-redirect-notification enable

Syntax

link-aggregation lacp traffic-redirect-notification enable

undo link-aggregation lacp traffic-redirect-notification enable

View

System view

Default level

2: System level

Parameters

None

Description

Use the link-aggregation lacp traffic-redirect-notification enable command to enable link-aggregation traffic redirection.

Use the undo link-aggregation lacp traffic-redirect-notification enable command to disable link-aggregation traffic redirection.

By default, link-aggregation traffic redirection is disabled.

Link-aggregation traffic redirection applies only to dynamic link aggregation groups.

To prevent traffic interruption, you must enable link-aggregation traffic redirection on switches at both ends of the aggregate link.

Do not enable both MSTP and link-aggregation traffic redirection at the same time, because light packet loss may occur when a card or the switch reboots.

Examples

# Enable link-aggregation traffic redirection.

<Sysname> system-view

[Sysname] link-aggregation lacp traffic-redirect-notification enable

link-aggregation load-sharing mode

Syntax

link-aggregation load-sharing mode { destination-ip | destination-mac | destination-port | ingress-port | mpls-label1 | mpls-label2 | mpls-label3 | source-ip | source-mac | source-port } *

undo link-aggregation load-sharing mode

View

System view

Default 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.

mpls-label1: Performs load sharing for MPLS traffic based on Layer 1 label.

mpls-label2: Performs load sharing for MPLS traffic based on Layer 2 label.

mpls-label3: Performs load sharing for MPLS traffic based on Layer 3 label.

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.

Description

Use the link-aggregation load-sharing mode command to configure link-aggregation load sharing criteria.

Use the undo link-aggregation load-sharing mode command to restore the default.

The default load sharing mode varies by traffic type.

The load sharing criteria that you configure will overwrite the previous criteria. For example, to change the load sharing criteria from source port based to source and destination ports based, you must configure the link-aggregation load-sharing mode destination-port source-port command (not the link-aggregation load-sharing mode source-port command) to overwrite the link-aggregation load-sharing mode destination-port command.

The ingress-port keyword is mutually exclusive with any other keyword of this command.

Examples

# Configure destination MAC-based load sharing for link aggregation groups.

<Sysname> system-view

[Sysname] link-aggregation load-sharing mode destination-mac

link-aggregation mode

Syntax

link-aggregation mode dynamic

undo link-aggregation mode

View

Layer 2 aggregate interface view, Layer 3 aggregate interface view

Default level

2: System level

Parameters

None

Description

Use the link-aggregation mode dynamic command to configure an aggregation group to work in dynamic aggregation mode.

Use the undo link-aggregation mode command to restore the default.

By default, an aggregation group works in static aggregation mode.

You cannot change the aggregation mode of an aggregation group that contains member ports.

Examples

# Configure the aggregation group corresponding to Bridge-Aggregation 1 to work in dynamic aggregation mode.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] link-aggregation mode dynamic

link-aggregation port-priority

Syntax

link-aggregation port-priority port-priority

undo link-aggregation port-priority

View

Ethernet interface view

Default level

2: System level

Parameters

port-priority: Specifies a port aggregation priority, ranging from 0 to 65535. The smaller the value, the higher the port aggregation priority.

Description

Use the link-aggregation port-priority command to set the aggregation priority of a port.

Use the undo link-aggregation port-priority command to restore the default.

The default aggregation priority of a port is 32768.

Examples

# Set the aggregation priority of GigabitEthernet 4/0/1 to 64.

<Sysname> system-view

[Sysname] interface gigabitethernet 4/0/1

[Sysname-GigabitEthernet4/0/1] link-aggregation port-priority 64

link-aggregation selected-port maximum

Syntax

link-aggregation selected-port maximum number

undo link-aggregation selected-port maximum

View

Layer 2 aggregate interface view, Layer 3 aggregate interface view

Default level

2: System level

Parameters

number: Specifies the maximum number of Selected ports allowed in an aggregation group. The value ranges from 1 to 12.

Description

Use the link-aggregation selected-port maximum command to configure the maximum number of Selected ports allowed in the aggregation group.

Use the undo link-aggregation selected-port maximum command to restore the default setting.

By default, the maximum number of Selected ports allowed in an aggregation group is not specified.

Executing this command may cause some of the selected member ports in the aggregation group to become unselected.

If you configure both the maximum number of Selected ports allowed in the aggregation group and the minimum number of Selected ports in the aggregation group, make sure that the former is no smaller than the latter. For more information about the minimum number of Selected ports in the aggregation group, see link-aggregation selected-port minimum.

Examples

# Configure the maximum number of Selected ports allowed 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 maximum 3

link-aggregation selected-port minimum

Syntax

link-aggregation selected-port minimum number

undo link-aggregation selected-port minimum

View

Layer 2 aggregate interface view, Layer 3 aggregate interface view

Default level

2: System level

Parameters

number: Minimum number of Selected ports in the aggregation group required to bring up the aggregate interface. When the switch operates in hybrid mode, the value ranges from 1 to 8. When the switch operates in other modes, the value ranges from 1 to 12. For more information about system working modes, see Fundamentals Configuration Guide.

Description

Use the link-aggregation selected-port minimum command to configure the minimum number of Selected ports in the aggregation group.

Use the undo link-aggregation selected-port minimum command to restore the default.

By default, the minimum number of Selected ports in an aggregation group is not specified.

Executing this command may cause all the member ports in the aggregation group to become unselected.

Make sure that the minimum number of Selected ports in the aggregation group is the same both ends.

Examples

# Configure the minimum number of Selected ports in the aggregation group corresponding to Layer 2 aggregate interface Bridge-Aggregation 1 as 3.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] link-aggregation selected-port minimum 3

mtu

Syntax

mtu size

undo mtu

View

Layer 3 aggregate interface view, Layer 3 aggregate subinterface view

Default level

2: System level

Parameters

size: Sets the maximum transmission unit (MTU) in bytes.

Description

Use the mtu command to set the MTU of the Layer 3 aggregate interface or subinterface.

Use the undo mtu command to restore the default.

By default, the MTU for Layer 3 aggregate interfaces and subinterfaces is 1500 bytes.

Examples

# Set the MTU of Layer 3 aggregate interface Route-Aggregation 1 to 1430 bytes.

<Sysname> system-view

[Sysname] interface route-aggregation 1

[Sysname-Route-Aggregation1] mtu 1430

port link-aggregation group

Syntax

port link-aggregation group number

undo port link-aggregation group

View

Ethernet interface view

Default level

2: System level

Parameters

number: Sets an aggregation group number, ranging from 1 to 1024. You can configure up to 240 aggregation groups on the switch.

Description

Use the port link-aggregation group command to assign the Ethernet interface to the specified aggregation group.

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

An Ethernet interface can belong to only one aggregation group.

Examples

# Assign GigabitEthernet 4/0/1 to aggregation group 22.

<Sysname> system-view

[Sysname] interface gigabitethernet 4/0/1

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

reset counters interface

Syntax

reset counters interface [ { bridge-aggregation | route-aggregation } [ interface-number ] ]

View

User view

Default level

2: System level

Parameters

bridge-aggregation: Clears statistics for Layer 2 aggregate interfaces.

route-aggregation: Clears statistics for Layer 3 aggregate interfaces.

interface-number: Specifies an aggregate interface number, ranging from 1 to 1024.

Description

Use the reset counters interface command to clear the statistics of the specified aggregate interface or interfaces.

Before collecting statistics for an aggregate interface within a specific period, you must clear the existing statistics on the interface.

·           If no keywords or argument is specified, the command clears the statistics of all interfaces in the system.

·           If only the bridge-aggregation or route-aggregation keyword is specified, the command clears the statistics of all Layer 2 or Layer 3 aggregate interfaces.

·           If the bridge-aggregation interface-number or route-aggregation interface-number option is specified, the command clears the statistics of the specified Layer 2 or Layer 3 aggregate interface.

·           The bridge-aggregation or route-aggregation keyword becomes available only after you create Layer 2 or Layer 3 aggregate interfaces on the switch.

Examples

# Clear the statistics of Layer 2 aggregate interface Bridge-Aggregation 1.

<Sysname> reset counters interface bridge-aggregation 1

reset lacp statistics

Syntax

reset lacp statistics [ interface interface-list ]

View

User view

Default level

1: Monitor level

Parameters

interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number [ to interface-type interface-number ], where interface-type interface-number indicates the port type and port number.

Description

Use the reset lacp statistics command to clear the LACP statistics for the specified member ports or all member ports, if no member ports are specified.

Related commands: display link-aggregation member-port.

Examples

# Clear the LACP statistics for all member ports.

<Sysname> reset lacp statistics

shutdown

Syntax

shutdown

undo shutdown

View

Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view

Default level

2: System level

Parameters

None

Description

Use the shutdown command to shut down the aggregate interface or subinterface.

Use the undo shutdown command to bring up the aggregate interface or subinterface.

By default, aggregate interfaces subinterfaces are up.

Shutting down or bringing up a Layer 3 aggregate interface also shuts down or brings up its subinterfaces. Shutting down or bringing up a Layer 3 aggregate subinterface does not affect its main interface.

Examples

# Bring up Layer 2 aggregate interface Bridge-Aggregation 1.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] undo shutdown

  • 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
新华三官网