03-Layer 2—LAN Switching Command Reference

HomeSupportResource CenterSwitchesH3C S6300 Switch SeriesH3C S6300 Switch SeriesTechnical DocumentsCommandCommand ReferencesH3C S6300 Switch Series Command References-Release 243x-6W10003-Layer 2—LAN Switching Command Reference
05-Ethernet link aggregation commands
Title Size Download
05-Ethernet link aggregation commands 147.12 KB

Ethernet link aggregation commands

bandwidth

Use bandwidth to set the expected bandwidth for an interface.

Use undo bandwidth to restore the default.

Syntax

bandwidth bandwidth-value

undo bandwidth

Default

The expected bandwidth (in kbps) is the interface baud rate divided by 1000.

Views

Layer 2 aggregate interface view

Predefined user roles

network-admin

Parameters

bandwidth-value: Specifies the expected bandwidth in the range of 1 to 400000000 kbps.

Usage guidelines

The expected bandwidth of an interface affects the following items:

·     Bandwidth assignment with CBQ. For more information, see ACL and QoS Configuration Guide.

·     Link costs in OSPF, OSPFv3, and IS-IS. For more information, see Layer 3—IP Routing Configuration Guide.

Examples

# Set the expected bandwidth to 10000 kbps for Layer 2 aggregate interface Bridge-Aggregation 1.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] bandwidth 10000

default

Use default to restore the default settings for an aggregate interface.

Syntax

default

Views

Layer 2 aggregate interface view

Predefined user roles

network-admin

Usage guidelines

CAUTION

CAUTION:

The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you execute 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 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 1.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] default

description

Use description to configure the description of an interface.

Use undo description to restore the default.

Syntax

description text

undo description

Default

The description of an interface is the interface-name plus Interface. For example, the default description of Bridge-Aggregation1 is Bridge-Aggregation1 Interface.

Views

Layer 2 aggregate interface view

Predefined user roles

network-admin

Parameters

text: Specifies the interface description, a string of 1 to 255 characters.

Examples

# Configure the description as connect to the lab for Layer 2 aggregate interface Bridge-Aggregation 1.

<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 ] ]

display interface [ bridge-aggregation [ interface-number ] ] [ brief [ description ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

bridge-aggregation: Specifies 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, the command displays detailed interface information.

down: Displays information about interfaces in the down state and the causes for the down state. If you do not specify this keyword, the command displays information about interfaces in all states.

description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of each interface description.

Usage guidelines

If you do not specify the bridge-aggregation keyword, the command displays information about all interfaces.

If you specify the bridge-aggregation keyword but do not specify an interface number, the command displays information about all Layer 2 aggregate interfaces.

If you specify the bridge-aggregation interface-number option, the command displays information about the specified aggregate interface.

Examples

# Display detailed information about Layer 2 aggregate interface Bridge-Aggregation 1.

<Sysname> display interface bridge-aggregation 1

Bridge-Aggregation1

Current state: UP

IP packet frame type: Ethernet II, hardware address: 00e0-fc00-5900

Description: Bridge-Aggregation1 Interface

Bandwidth: 0kbps

2Gbps-speed mode, full-duplex mode

Link speed type is autonegotiation, link duplex type is autonegotiation

PVID: 1

Port link-type: Access

 Tagged VLANs:   None

 Untagged VLANs: 1

Last clearing of counters:  Never

Last 300 seconds input:  6900 packets/sec 885160 bytes/sec    -%

Last 300 seconds output:  3150 packets/sec 404430 bytes/sec    -%

Input (total):  5364747 packets, 686688416 bytes

         2682273 unicasts, 1341137 broadcasts, 1341337 multicasts, 0 pauses

Input (normal):  5364747 packets, 686688416 bytes

         2682273 unicasts, 1341137 broadcasts, 1341337 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): 1042508 packets, 133441832 bytes

         1042306 unicasts, 0 broadcasts, 202 multicasts, 0 pauses

Output (normal): 1042508 packets, 133441832 bytes

         1042306 unicasts, 0 broadcasts, 202 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

Brief information on interfaces in bridge mode:

Link: ADM - administratively down; Stby - standby

Speed: (a) - auto

Duplex: (a)/A - auto; H - half; F - full

Type: A - access; T - trunk; H - hybrid

Interface            Link Speed   Duplex Type PVID Description

BAGG1                UP   auto    A      A    1

Table 1 Command output

Field

Description

Bridge-Aggregation1

Layer 2 aggregate interface name.

Current state

Aggregate interface status:

·     DOWN (Administratively down)—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 has failed).

·     UP—The Ethernet interface is both administratively and physically up.

IP packet frame type

IPv4 packet frame format.

Description

Partial or complete interface description configured by using the description command.

·     If the description keyword is not specified in the display interface brief command, this field displays only the first 27 characters of the interface description.

·     If the description keyword is specified in the display interface brief command, this field displays the complete interface description.

Bandwidth

Expected bandwidth of the interface.

Unknown-speed mode, unknown-duplex mode

The interface speed and duplex mode are unknown.

PVID

Port VLAN ID (PVID).

Port link-type

Port link type: access, trunk, or hybrid.

Tagged VLANs

Packets from the specified VLANs are sent out of this interface with a VLAN tag:

·     Tagged Vlan:   none—All packets are sent out of this interface without a VLAN tag.

·     Tagged Vlan: 1—Packets from VLAN 1 are sent out of this interface with a VLAN tag.

This field is displayed when the port link type is access or hybrid.

Untagged VLANs

Packets from the specified VLANs are sent out of this interface without a VLAN tag:

·     Untagged Vlan:   none—All packets are sent out of this interface with a VLAN tag.

·     Untagged Vlan: 1—Packets from VLAN 1 are sent out of this interface without a VLAN tag.

This field is displayed when the port link type is access or hybrid.

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 device startup.

Last 300 seconds input/output rate

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

Brief information on interfaces in 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, run the undo shutdown command.

·     Stby—The interface is operating as a backup interface.

Speed: (a) - auto

Duplex: (a)/A - auto; H - half; F - full

If the speed of an interface is automatically negotiated, the speed attribute of the interface includes the auto negotiation flag (the letter a in parentheses).

If an interface is configured to autonegotiate its speed but the autonegotiation has not started, its speed attribute is displayed as auto.

If the duplex mode of an interface is automatically negotiated, the duplex mode attribute of the interface includes the letter a in parentheses or a capital A. H indicates the half duplex mode. F indicates the full duplex mode.

Type: A - access; T - trunk; H - hybrid

Port link type options for interfaces.

Protocol: (s) - spoofing

If the data link 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 (the letter 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

Views

Any view

Predefined user roles

network-admin

network-operator

Usage guidelines

You can use the lacp system-priority command to change the LACP priority of the local system. The LACP priority value is specified in decimal format in the lacp system-priority command. However, it is displayed as a hexadecimal value in the output from 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 contains 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 modes.

Syntax

display link-aggregation load-sharing mode [ interface [ bridge-aggregation interface-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

bridge-aggregation: Specifies Layer 2 aggregate interfaces.

interface-number: Specifies an existing aggregate interface number.

Usage guidelines

If you do not specify the interface keyword, the command displays the global link-aggregation load sharing modes.

If you specify the interface keyword, but do not specify an interface, the command displays all group-specific load sharing modes.

If you specify the bridge-aggregation interface-number option, the command displays the load sharing mode of the specified aggregation group.

The bridge-aggregation keyword is available only when Layer 2 aggregate interfaces exist on the device.

Examples

# Display the default global link-aggregation load sharing modes.

<Sysname> display link-aggregation load-sharing mode

Link-Aggregation Load-Sharing Algorithm:

Default

Link-Aggregation Load-Sharing Seed:

Default

Link-Aggregation Load-Sharing Mode:

Layer 2 traffic: packet type-based sharing

Layer 3 traffic: packet type-based sharing

# Display the set global link-aggregation load sharing mode.

<Sysname> display link-aggregation load-sharing mode

Link-Aggregation Load-Sharing Algorithm:

Algorithm 2

Link-Aggregation Load-Sharing Seed:

0x3ff

Link-Aggregation Load-Sharing Mode:

destination-mac address  source-mac address

# Display the default link-aggregation load sharing modes of Layer 2 aggregation group 10.

<Sysname> display link-aggregation load-sharing mode interface bridge-aggregation 10

Bridge-Aggregation10 Load-Sharing Mode:

Layer 2 traffic: packet type-based sharing

Layer 3 traffic: packet type-based sharing

# Display the set link-aggregation load sharing mode of Layer 2 aggregation group 10.

<Sysname> display link-aggregation load-sharing mode interface bridge-aggregation 10

Bridge-Aggregation10 Load-Sharing Mode:

destination-mac address  source-mac address

Table 3 Command output

Field

Description

Link-Aggregation Load-Sharing Algorithm

Per-flow load sharing algorithm for Ethernet link aggregation.

By default, this field displays Default. If you have configured the load sharing algorithm, this field displays the configured algorithm.

Link-Aggregation Load-Sharing Seed

Per-flow load sharing algorithm seed for Ethernet link aggregation.

By default, this field displays Default. If you have configured the load sharing algorithm seed, this field displays the configured seed.

Link-Aggregation Load-Sharing Mode

Global link-aggregation load sharing mode.

·     By default, this field displays the link-aggregation load sharing modes for Layer 2 traffic and Layer 3 traffic.

·     If you have set the global link-aggregation load sharing mode, this field displays the set mode.

Bridge-Aggregation10 Load-Sharing Mode

Link-aggregation load sharing mode of Layer 2 aggregation group 10.

·     By default, this field displays the global link-aggregation load sharing modes.

·     If you have set a link-aggregation load sharing mode for this aggregation group, this field displays the set mode.

Layer 2 traffic: packet type-based sharing

Default link-aggregation load sharing mode for Layer 2 traffic. In this sample output, Layer 2 traffic is load shared based on the packet type.

Layer 3 traffic: packet type-based sharing

Default link-aggregation load sharing mode for Layer 3 traffic. In this sample output, Layer 3 traffic is load shared based on the packet type.

destination-mac address, source-mac address

User-configured link-aggregation load sharing mode. In this sample output, traffic is load shared based on source and destination MAC addresses.

 

Related commands

link-aggregation global load-sharing algorithm

link-aggregation global load-sharing mode

link-aggregation global load-sharing seed

link-aggregation load-sharing mode

display link-aggregation load-sharing path

Use display link-aggregation load-sharing path to display forwarding information for the specified traffic flow.

Syntax

display link-aggregation load-sharing path interface bridge-aggregation interface-number ingress-port interface-type interface-number [ route ] { { destination-ip ip-address | destination-ipv6 ipv6-address } | { source-ip ip-address | source-ipv6 ipv6-address } | destination-mac mac-address | destination-port port-id | ethernet-type type-number | ip-protocol protocol-id | source-mac mac-address | source-port port-id | vlan vlan-id }*

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

bridge-aggregation: Specifies Layer 2 aggregate interfaces.

interface-number: Specifies an existing aggregate interface by its number.

ingress-port interface-type interface-number: Specifies an ingress port by its type and number. The ingress port must be a physical port.

route: Displays forwarding information for Layer 3 traffic. If you do not specify this keyword, the command displays forwarding information for Layer 2 traffic.

destination-ip ip-address: Specifies a destination IPv4 address.

destination-ipv6 ipv6-address: Specifies a destination IPv6 address.

source-ip ip-address: Specifies a source IPv4 address.

source-ipv6 ipv6-address: Specifies a source IPv6 address.

destination-mac mac-address: Specifies a destination MAC address in H-H-H format.

destination-port port-id: Specifies a destination port number in the range of 1 to 65535.

ethernet-type type-number: Specifies an Ethernet type code in the range of 1 to 65535.

ip-protocol protocol-id: Specifies an IP protocol by its ID in the range of 0 to 255.

source-mac mac-address: Specifies a source MAC address in H-H-H format.

source-port port-id: Specifies a source port number in the range of 1 to 65535.

vlan vlan-id: Specifies a VLAN by its ID in the range of 1 to 4094.

Usage guidelines

A parameter specified in the command might not be used for selecting the egress port. The Load sharing parameters field displays the parameters that are used in egress port selection. For example, you can specify both the destination-mac mac-address and destination-ip ip-address options. If only the destination MAC address is used for selecting the egress port, the Load sharing parameters field does not display the destination-ip parameter.

If a parameter required for selecting the egress port is not specified, the default value of the parameter is used. If the parameter does not have any default values, the parameter is set to 0.

Do not use the display link-aggregation load-sharing path command to identify the outgoing port for the traffic in a management VLAN. This command calculates the outgoing port for a traffic flow based on the algorithm for the specified load sharing mode. The outgoing port output from this command for management VLAN traffic might not be the management port (the actual outgoing port).

Examples

# Display forwarding information for the specified traffic flow to be sent out of Layer 2 aggregate interface Bridge-Aggregation 1.

<Sysname> display link-aggregation load-sharing path interface bridge-aggregation 1 ingress-port ten-gigabitethernet 1/0/1 destination-mac 0000-fc00-0001 source-mac 0000-fc00-0002 source-ip 10.100.0.2 destination-ip 10.100.0.1

Load sharing mode: destination-mac, source-mac

Unspecified parameters are set to 0.

Load sharing parameters:

Ingress port: Ten-GigabitEthernet1/0/1

Destination MAC: 0000-fc00-0001

Source MAC: 0000-fc00-0002

Destination IP: 10.100.0.1

Source IP: 10.100.0.2

Egress port: Ten-GigabitEthernet1/0/3

Table 4 Command output

Field

Description

Load sharing mode:

Load sharing mode set for the aggregation group:

·     destination-mac—Traffic is load shared based on destination MAC addresses.

·     source-mac—Traffic is load shared based on source MAC addresses.

·     destination-ip—Traffic is load shared based on destination IP addresses.

·     source-ip—Traffic is load shared based on source IP addresses.

·     destination-port—Traffic is load shared based on destination ports.

·     source-port—Traffic is load shared based on source ports.

·     ingress-port—Traffic is load shared based on ingress ports.

Load sharing parameters

Parameters that are used in egress port selection.

Egress port

Egress port of the specified traffic flow. If no egress port is found, this field displays N/A.

 

display link-aggregation member-port

Use display link-aggregation member-port to display detailed link aggregation information for the specified member ports.

Syntax

display link-aggregation member-port [ interface-list ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number [ to interface-type interface-number ]. interface-type interface-number specifies an interface by its type and number.

Usage guidelines

A member port in a static aggregation group is unaware of information about the peer group. For such member ports, the command displays the port number, port priority, and operational key of only the local end.

Examples

# Display detailed link aggregation information for Ten-GigabitEthernet 1/0/1, which is a member port of a static aggregation group.

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

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

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

       G -- Defaulted, H -- Expired

 

Ten-GigabitEthernet1/0/1:

Aggregate Interface: Bridge-Aggregation1

Port Number: 1

Port Priority: 32768

Oper-Key: 1

# Display detailed link aggregation information for Ten-GigabitEthernet 1/0/2, which is a member port of a dynamic aggregation group.

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

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

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

       G -- Defaulted, H -- Expired

 

Ten-GigabitEthernet1/0/2:

Aggregate 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 5 Command output

Field

Description

Flags

LACP state flags. This field is one byte long, represented by ABCDEFGH from the least significant bit to the most significant bit. The letter is present when its bit is 1 and absent when its bit is 0.

·     AIndicates whether LACP is enabled. 1 indicates enabled, and 0 indicates disabled.

·     B—Indicates the LACP short or long timeout. 1 indicates short timeout, and 0 indicates long timeout.

·     C—Indicates whether the sending system considers that the link is aggregatable. 1 indicates yes, and 0 indicates no.

·     D—Indicates whether the sending system considers that the link is synchronized. 1 indicates yes, and 0 indicates no.

·     E—Indicates whether the sending system considers that the incoming frames are collected. 1 indicates yes, and 0 indicates no.

·     F—Indicates whether the sending system considers that the outgoing frames are distributed. 1 indicates yes, and 0 indicates no.

·     G—Indicates whether the sending system receives frames in the default state. 1 indicates yes, and 0 indicates no.

·     H—Indicates whether the sending system receives frames in the expired state. 1 indicates yes, and 0 indicates no.

Aggregate Interface

Aggregate interface to which the member port belongs.

Local

Information about the local end.

Oper-key

Operational key.

Flag

LACP protocol state flag.

Remote

Information about the peer end.

System ID

Peer system ID, containing 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 brief information about all aggregation groups.

Syntax

display link-aggregation summary

Views

Any view

Predefined user roles

network-admin

network-operator

Usage guidelines

Static link aggregation groups are unaware of information about the peer groups. As a result, the Partner ID field displays None for a static link aggregation group.

Examples

# Display brief information about all aggregation groups.

<Sysname> display link-aggregation summary

Aggregation Interface Type:

BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-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              Selected  Unselected  Individual  Share

Interface  Mode                          Ports     Ports       Ports       Type

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

BAGG20     D     0x8000,00e0-fcff-ff01   2         0           0           Shar

Table 6 Command output

Field

Description

Aggregation Interface Type

Aggregate interface type. BAGG represents Layer 2 aggregate interfaces.

Aggregation Mode

Aggregation group type:

·     S—Static.

·     D—Dynamic.

Loadsharing Type

Load sharing type:

·     Shar—Load sharing.

·     NonS—Non-load sharing.

Actor System ID

Local system ID, which contains the local system LACP priority and the local system MAC address.

AGG Interface

Type and number of the aggregate interface.

AGG Mode

Aggregation group type.

Partner ID

System ID of the peer system, which contains the peer system LACP priority and the peer system MAC address.

Selected Ports

Total number of Selected ports.

Unselected Ports

Total number of Unselected ports.

Individual Ports

Total number of Individual ports.

Share Type

Load sharing type.

 

display link-aggregation verbose

Use display link-aggregation verbose to display detailed information about the aggregation groups that correspond to the specified aggregate interfaces.

Syntax

display link-aggregation verbose [ bridge-aggregation [ interface-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

bridge-aggregation: Specifies Layer 2 aggregate interfaces.

interface-number: Specifies an existing aggregate interface by its number.

Usage guidelines

If you specify the bridge-aggregation keyword but do not specify an interface number, the command displays detailed information about all Layer 2 aggregation groups.

If you do not specify an aggregate interface type, the command displays detailed information about all aggregation groups.

The bridge-aggregation keyword is available only when Layer 2 aggregate interfaces exist on the device.

Examples

# Display detailed information about Layer 2 aggregation group 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

             I -- Individual, * -- Management port

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

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

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Bridge-Aggregation10

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLAN : None

System ID: 0x8000, 000f-e267-6c6a

Local:

  Port              Status  Priority Oper-Key  Flag

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

  XGE1/0/1           S       32768    2         {ACDEF}

  XGE1/0/2           S       32768    2         {ACDEF}

Remote:

  Actor              Partner Priority Oper-Key  SystemID               Flag

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

  XGE1/0/1           1      32768    2         0x8000, 000f-e267-57ad {ACDEF}

  XGE1/0/2           2      32768    2         0x8000, 000f-e267-57ad {ACDEF}

# Display detailed information about Layer 2 aggregation group 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

             I -- Individual, * -- Management port

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

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

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Bridge-Aggregation20

Aggregation Mode: Static

Loadsharing Type: Shar

Management VLAN : None

  Port             Status  Priority Oper-Key

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

  XGE1/0/1           U       32768    1

  XGE1/0/2           U       32768    1

  XGE1/0/3           U       32768    1

Table 7 Command output

Field

Description

Loadsharing Type

Load sharing type:

·     Shar—Load sharing.

·     NonS—Non-load sharing.

Port Status

Port state:

·     Selected.

·     Unselected.

·     Individual.

·     Management port.

Flags

LACP state flags. This field is one byte long, represented by ABCDEFGH from the least significant bit to the most significant bit. The letter is present when its bit is 1 and absent when its bit is 0.

·     AIndicates whether LACP is enabled. 1 indicates enabled, and 0 indicates disabled.

·     B—Indicates the LACP short or long timeout. 1 indicates short timeout, and 0 indicates long timeout.

·     C—Indicates whether the sending system considers that the link is aggregatable. 1 indicates yes, and 0 indicates no.

·     D—Indicates whether the sending system considers that the link is synchronized. 1 indicates yes, and 0 indicates no.

·     E—Indicates whether the sending system considers that the incoming frames are collected. 1 indicates yes, and 0 indicates no.

·     F—Indicates whether the sending system considers that the outgoing frames are distributed. 1 indicates yes, and 0 indicates no.

·     G—Indicates whether the sending system receives frames in the default state. 1 indicates yes, and 0 indicates no.

·     H—Indicates whether the sending system receives frames in the expired state. 1 indicates yes, and 0 indicates no.

Aggregate Interface

Name of the aggregate interface.

Aggregation Mode

Aggregation group type:

·     S—Static.

·     D—Dynamic.

Management VLAN

Management VLANs. If no management VLANs are specified, this field displays None.

System ID

Local system ID, containing the local system LACP priority and the local system MAC address.

Local

Information about the local end:

·     Port—Port type and number.

·     Status—Port state, which can be Selected or Unselected.

·     Priority—Port priority.

·     Oper-Key—Operational key.

·     Flag—LACP state flag.

NOTE:

For static aggregation groups, the Flag field is not displayed.

Remote

Information about the peer end:

·     ActorType and number of the local port.

·     PartnerIndex of the peer port.

·     PriorityPriority of the peer port.

·     Oper-Key—Operational key of the peer port.

·     System IDSystem ID of the peer end.

·     FlagLACP state flag of the peer end.

 

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 delete a Layer 2 aggregate interface.

Syntax

interface bridge-aggregation interface-number

undo interface bridge-aggregation interface-number

Default

No Layer 2 aggregate interface is created.

Views

System view

Predefined user roles

network-admin

Parameters

interface-number: Specifies a Layer 2 aggregate interface number in the range of 1 to 1024.

Usage guidelines

When you create a Layer 2 aggregate interface, the system automatically creates a Layer 2 aggregation group with the same number. The aggregation group operates in static aggregation mode by default.

Deleting a Layer 2 aggregate interface also deletes the Layer 2 aggregation group. At the same time, the member ports of the aggregation group, if any, 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 edge-port

Use lacp edge-port to configure an aggregate interface as an edge aggregate interface.

Use undo lacp edge-port to restore the default.

Syntax

lacp edge-port

undo lacp edge-port

Default

An aggregate interface does not operate as an edge aggregate interface.

Views

Layer 2 aggregate interface view

Predefined user roles

network-admin

Usage guidelines

Use this command on the aggregate interface that connects the device to a server if dynamic link aggregation is configured only on the device. This feature enables all member ports of the aggregation group to forward packets to improve link reliability.

This command takes effect only on an aggregate interface corresponding to a dynamic aggregation group.

Link-aggregation traffic redirection cannot operate correctly on an edge aggregate interface.

Examples

# Configure Layer 2 aggregate interface Bridge-aggregation 1 as an edge aggregate interface.

<Sysname> System-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] lacp edge-port

lacp mode

Use lacp mode passive to configure LACP to operate in passive mode on a port.

Use undo lacp mode to restore the default.

Syntax

lacp mode passive

undo lacp mode

Default

LACP operates in active mode on a port.

Views

Layer 2 Ethernet interface view

Predefined user roles

network-admin

Usage guidelines

When LACP is operating in passive mode on a local member port and its peer port, both ports cannot send LACPDUs. When LACP is operating in active mode on either end of a link, both ports can send LACPDUs.

This command takes effect only on member ports of dynamic aggregation groups.

Examples

# Configure LACP to operate in passive mode on Ten-GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 1/0/1

[Sysname-Ten-GigabitEthernet1/0/1] lacp mode passive

lacp period short

Use lacp period short to set the short LACP timeout interval (3 seconds) on an interface.

Use undo lacp period to restore the default.

Syntax

lacp period short

undo lacp period

Default

The LACP timeout interval is the long timeout interval (90 seconds) on an interface.

Views

Layer 2 Ethernet interface view

Predefined user roles

network-admin

Usage guidelines

Do not set the LACP timeout interval to the short LACP timeout interval before performing an ISSU. Otherwise, traffic interruption will occur during the ISSU. For more information about ISSU, see Fundamentals Configuration Guide.

Examples

# Set the short LACP timeout interval (3 seconds) on Ten-GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 1/0/1

[Sysname-Ten-GigabitEthernet1/0/1] lacp period short

lacp system-priority

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

Use undo lacp system-priority to restore the default.

Syntax

lacp system-priority system-priority

undo lacp system-priority

Default

The system LACP priority is 32768.

Views

System view

Predefined user roles

network-admin

Parameters

system-priority: Specifies the system LACP priority 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

Related commands

link-aggregation port-priority

link-aggregation bfd ipv4

Use link-aggregation bfd ipv4 to enable BFD for an aggregation group.

Use undo link-aggregation bfd to restore the default.

Syntax

link-aggregation bfd ipv4 source ip-address destination ip-address

undo link-aggregation bfd

Default

BFD is disabled for an aggregation group.

Views

Layer 2 aggregate interface view

Predefined user roles

network-admin

Parameters

source ip-address: Specifies the source IP address of BFD sessions.

destination ip-address: Specifies the destination IP address of BFD sessions.

Usage guidelines

This command might cause Selected ports in the aggregation group to change to the Unselected state.

For BFD to take effect on an aggregation group, configure BFD on both ends of the aggregate link.

To avoid BFD protocol flapping, make sure the BFD-enabled aggregate interface is assigned to its PVID. For information about the PVID and VLAN, see Layer 2—LAN Switching Configuration Guide.

Make sure the source and destination IP addresses are consistent at the two ends of an aggregate link. For example, if you execute link-aggregation bfd ipv4 source 1.1.1.1 destination 2.2.2.2 on the local end, execute link-aggregation bfd ipv4 source 2.2.2.2 destination 1.1.1.1 on the peer end.

The BFD parameters configured on an aggregate interface take effect on all BFD sessions in the aggregation group. For more information about configuring BFD parameters, see High Availability Configuration Guide.

As a best practice, do not configure other protocols to collaborate with BFD on a BFD-enabled aggregate interface.

Examples

# Enable BFD for Layer 2 aggregation group 1, and specify the source and destination IP addresses as 1.1.1.1 and 2.2.2.2 for BFD sessions.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] link-aggregation bfd ipv4 source 1.1.1.1 destination 2.2.2.2

link-aggregation global load-sharing algorithm

Use link-aggregation global load-sharing algorithm to configure the per-flow load sharing algorithm for Ethernet link aggregation.

Use undo link-aggregation global load-sharing algorithm to restore the default.

Syntax

link-aggregation global load-sharing algorithm algorithm-number

undo link-aggregation global load-sharing algorithm

Default

Algorithm 0 is used.

Views

System view

Predefined user roles

network-admin

Parameters

algorithm algorithm-number: Specifies an algorithm by its number in the range of 1 to 8.

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

You can configure only the algorithm or the algorithm seed, or both. You can combine an algorithm with different algorithm seeds to obtain different effects.

If the device fails to load share traffic flows across all Selected ports, you can specify algorithm 1 to 8 in sequence until the problem is solved.

Examples

# Specify algorithm 1 as the per-flow load sharing algorithm.

<Sysname> system-view

[Sysname] link-aggregation global load-sharing algorithm 1

Related commands

display link-aggregation load-sharing mode

link-aggregation global load-sharing mode

link-aggregation global load-sharing seed

link-aggregation load-sharing mode

link-aggregation global load-sharing mode

Use link-aggregation global load-sharing mode to set the global link-aggregation load sharing mode.

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

Syntax

link-aggregation global load-sharing mode { destination-ip | destination-mac | destination-port | ingress-port | source-ip | source-mac | source-port } *

undo link-aggregation global load-sharing mode

Default

The system automatically chooses the global link-aggregation load sharing mode according to the packet type.

The switches can perform link-aggregation load sharing for only Layer 2 or Layer 3 packets.

·     If the incoming frames' Type field is 0x0800 or 0x86DD, the switches load-share these packets as Layer 3 packets by the combination of the following criteria:

¡     Source IP address.

¡     Destination IP address.

¡     Protocol number.

¡     Port number.

·     If the incoming frames' Type field is not 0x0800 or 0x86DD, the switches load-share these packets as Layer 2 packets by the combination of the following criteria:

¡     Source MAC address.

¡     Destination MAC address.

¡     Ethernet frame types.

¡     VLAN tag.

¡     MOD ID.

¡     Port ID.

Views

System view

Predefined user roles

network-admin

Parameters

destination-ip: Load shares traffic based on destination IP addresses.

destination-mac: Load shares traffic based on destination MAC addresses.

destination-port: Load shares traffic based on destination ports.

ingress-port: Load shares traffic based on ingress ports.

source-ip: Load shares traffic based on source IP addresses.

source-mac: Load shares traffic based on source MAC addresses.

source-port: Load shares traffic based on source ports.

Usage guidelines

The load sharing mode that you configure overwrites the previous mode.

If unsupported load sharing mode is configured, an error prompt appears.

In system view, the switch supports the following load sharing mode and combinations:

·     Load sharing mode automatically determined based on the packet type.

·     Source IP address.

·     Destination IP address.

·     Source MAC address.

 

 

NOTE:

Packets cannot be load shared based on source MAC addresses when the destination IP addresses of the packets match multiport ARP entries. For more information about multiport ARP entries, see Layer 3—IP Services Configuration Guide.

 

·     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 ingress port, source MAC address, and destination MAC address.

Examples

# Configure the global load sharing mode to load share packets based on destination MAC addresses.

<Sysname> system-view

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

Related commands

display link-aggregation load-sharing mode

link-aggregation global load-sharing algorithm

link-aggregation global load-sharing seed

link-aggregation load-sharing mode

link-aggregation global load-sharing seed

Use link-aggregation global load-sharing seed to configure the per-flow load sharing algorithm seed for Ethernet link aggregation.

Use undo link-aggregation global load-sharing seed to restore the default.

Syntax

link-aggregation global load-sharing seed seed-number

undo link-aggregation global load-sharing seed

Default

Algorithm seed 0 is used.

Views

System view

Predefined user roles

network-admin

Parameters

seed seed-number: Specifies a seed in the range of 1 to 7FFFFFFF.

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

You can configure only the algorithm or the algorithm seed, or both. You can combine an algorithm with different algorithm seeds to obtain different effects.

Examples

# Specify 1023 (3FF in hexadecimal format) as the per-flow load sharing algorithm seed.

<Sysname> system-view

[Sysname] link-aggregation global load-sharing seed 3FF

Related commands

display link-aggregation load-sharing mode

link-aggregation global load-sharing algorithm

link-aggregation global load-sharing mode

link-aggregation load-sharing mode

link-aggregation ignore vlan

Use link-aggregation ignore vlan to configure a Layer 2 aggregate interface to ignore the specified VLANs.

Use undo link-aggregation ignore vlan to restore the default.

Syntax

link-aggregation ignore vlan vlan-id-list

undo link-aggregation ignore vlan vlan-id-list

Default

A Layer 2 aggregate interface does not ignore any VLANs.

Views

Layer 2 aggregate interface view

Predefined user roles

network-admin

Parameters

vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN ID or a range of VLAN IDs in the form of vlan-id1 to vlan-id2. The value range for VLAN IDs is 1 to 4094. The value for vlan-id2 must be equal to or greater than the value for vlan-id1.

Usage guidelines

With this command configured, a Layer 2 aggregate interface ignores the permitted VLAN and VLAN tagging mode configuration of the specified VLANs when choosing Selected ports.

Examples

# Configure Layer 2 aggregate interface bridge-aggregation 1 to ignore VLAN 50.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] link-aggregation ignore vlan 50

link-aggregation lacp traffic-redirect-notification enable

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

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

Syntax

link-aggregation lacp traffic-redirect-notification enable

undo link-aggregation lacp traffic-redirect-notification enable

Default

Link-aggregation traffic redirection is disabled.

Views

System view

Layer 2 aggregate interface view

Predefined user roles

network-admin

Usage guidelines

When you shut down a Selected port in an aggregation group, this feature redirects traffic of the port to other Selected ports. Zero packet loss is guaranteed for known unicast traffic, but not for unknown unicast traffic.

When you restart an IRF member device that contains Selected ports, this feature redirects traffic of the IRF member device to other IRF member devices. Zero packet loss is guaranteed for known unicast traffic, but not for unknown unicast traffic.

Link-aggregation traffic redirection applies only to dynamic link aggregation groups and takes effect on only known unicast packets.

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

Do not enable both spanning tree and link-aggregation traffic redirection on a device. Otherwise, light packet loss might occur when the device reboots.

Link-aggregation traffic redirection cannot operate correctly on an edge aggregate interface.

Global link-aggregation traffic redirection settings take effect on all aggregation groups. A link aggregation group preferentially uses the group-specific link-aggregation traffic redirection settings. If group-specific link-aggregation traffic redirection is not configured, the group uses the global link-aggregation traffic redirection settings.

As a best practice, enable link-aggregation traffic redirection on aggregate interfaces. If you enable this feature globally, communication with a third-party peer device might be affected if the peer is not compatible with this feature.

Examples

# Enable link-aggregation traffic redirection.

<Sysname> system-view

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

link-aggregation load-sharing ignore

Use link-aggregation load-sharing ignore to configure the ignored fields for the default load sharing mode.

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

Syntax

link-aggregation load-sharing ignore ethernet-type

undo link-aggregation load-sharing ignore

Default

No ignored fields are configured for the default load sharing mode.

Views

System view

Predefined user roles

network-admin

Parameters

ethernet-type: Specifies the Ethernet type field in packets.

Usage guidelines

When the default load sharing mode is used and traffic is not evenly load shared, you can configure this command. Then, some fields in packets are ignored to prevent these fields from affecting load sharing.

Examples

# Configure the default load sharing mode to ignore the Ethernet type field in packets.

<Sysname> system-view

[Sysname] link-aggregation load-sharing ignore ethernet-type

Related commands

link-aggregation global load-sharing mode

link-aggregation load-sharing mode

Use link-aggregation load-sharing mode to set the link-aggregation load sharing mode.

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

Syntax

link-aggregation load-sharing mode { destination-ip | destination-mac | source-ip | source-mac } *

undo link-aggregation load-sharing mode

Default

The load sharing mode is the same as the global load sharing mode.

Views

Layer 2 aggregate interface view

Predefined user roles

network-admin

Parameters

destination-ip: Load shares traffic based on destination IP addresses.

destination-mac: Load shares traffic based on destination MAC addresses.

source-ip: Load shares traffic based on source IP addresses.

source-mac: Load shares traffic based on source MAC addresses.

Usage guidelines

The load sharing mode that you configure overwrites the previous mode.

If an unsupported load sharing mode is configured, an error prompt appears.

In Layer 2 aggregate interface view, the switch supports the following load sharing mode and combinations:

·     Load sharing mode automatically determined based on the packet type.

·     Source IP address.

·     Destination IP address.

·     Source MAC address.

 

 

NOTE:

Packets cannot be load shared based on source MAC addresses when the destination IP addresses of the packets match multiport ARP entries. For more information about multiport ARP entries, see Layer 3—IP Services Configuration Guide.

 

·     Destination MAC address.

·     Destination IP address and source IP address.

·     Destination MAC address and source MAC address.

Examples

# Configure Layer 2 aggregation group 1 to load share packets based on destination MAC addresses.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

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

Related commands

link-aggregation global load-sharing mode

link-aggregation load-sharing mode local-first

Use link-aggregation load-sharing mode local-first to enable local-first load sharing for link aggregation.

Use undo link-aggregation load-sharing mode local-first to disable local-first load sharing for link aggregation.

Syntax

link-aggregation load-sharing mode local-first

undo link-aggregation load-sharing mode local-first

Default

Local-first load sharing is enabled for link aggregation.

Views

System view

Predefined user roles

network-admin

Usage guidelines

When you disable local-first load sharing, the packets will be load shared among all Selected ports of the aggregate interface on all IRF member devices.

Local-first load sharing for link aggregation takes effect on only known unicast packets.

Examples

# Disable local-first load sharing for link aggregation.

<Sysname> system-view

[Sysname] undo link-aggregation load-sharing mode local-first

link-aggregation management-port

Use link-aggregation management-port to configure a management port for an aggregation group.

Use undo link-aggregation management-port to restore the default.

Syntax

link-aggregation management-port

undo link-aggregation management-port

Default

A port does not act as a management port.

Views

Layer 2 Ethernet interface view

Predefined user roles

network-admin

Usage guidelines

This command takes effect only when you configure a Selected port as a management port. You can configure only one management port for an aggregation group.

Examples

# Configure Ten-GigabitEthernet 1/0/1 as the management port of its aggregation group.

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 1/0/1

[Sysname-Ten-GigabitEthernet1/0/1] link-aggregation management-port

link-aggregation management-subnet

Use link-aggregation management-subnet to specify a link aggregation management subnet.

Use undo link-aggregation management-subnet to restore the default.

Syntax

link-aggregation management-subnet ip-address { mask | mask-length }

undo link-aggregation management-subnet

Default

No link aggregation management subnet is specified.

Views

System view

Predefined user roles

network-admin

Parameters

ip-address: Specifies an IP address in dotted decimal notation.

mask: Specifies a subnet mask in dotted decimal notation.

mask-length: Specifies the mask length (the number of continuous 1s in the mask) in the range of 1 to 32.

Usage guidelines

By default, when an aggregate interface receives an ARP packet, the aggregate interface will create the corresponding ARP entry. When the aggregate interface receives packets with the matching destination address, the packets are load shared among all Selected ports of the aggregate interface.

To manage traffic with the specified destination addresses, you can use this command to specify a link aggregation management subnet.

Examples

# Specify the link aggregation management subnet 22.1.1.1 255.0.0.0.

<Sysname> system-view

[Sysname] link-aggregation management-subnet 22.1.1.1 255.0.0.0

link-aggregation management-vlan

Use link-aggregation management-vlan to specify link aggregation management VLANs.

Use undo link-aggregation management-vlan to remove link aggregation management VLANs.

Syntax

link-aggregation management-vlan vlan-id1 [ vlan-id2 ]

undo link-aggregation management-vlan [ vlan-id1 [ vlan-id2 ] ]

Default

No link aggregation management VLANs are specified.

Views

System view

Predefined user roles

network-admin

Parameters

vlan-id1: Specifies a management VLAN by its ID in the range of 1 to 4094.

vlan-id2: Specifies another management VLAN by its ID in the range of 1 to 4094.

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Specify VLAN 2 and VLAN 3 as link aggregation management VLANs.

<Sysname> system-view

[Sysname] link-aggregation management-vlan 2 3

link-aggregation mode

Use link-aggregation mode dynamic to configure an aggregation group to operate in dynamic aggregation mode and enable LACP.

Use undo link-aggregation mode to restore the default.

Syntax

link-aggregation mode dynamic

undo link-aggregation mode

Default

An aggregation group operates in static aggregation mode.

Views

Layer 2 aggregate interface view

Predefined user roles

network-admin

Examples

# Configure Layer 2 aggregation group 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 port priority of an interface.

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

Syntax

link-aggregation port-priority port-priority

undo link-aggregation port-priority

Default

The port priority of an interface is 32768.

Views

Layer 2 Ethernet interface view

Predefined user roles

network-admin

Parameters

port-priority: Specifies the port priority in the range of 0 to 65535. The smaller the value, the higher the port priority.

Examples

# Set the port priority to 64 for Layer 2 Ethernet interface Ten-GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 1/0/1

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

Related commands

lacp system-priority

link-aggregation selected-port maximum

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

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

Syntax

link-aggregation selected-port maximum number

undo link-aggregation selected-port maximum

Default

The maximum number of Selected ports allowed in an aggregation group is 32.

Views

Layer 2 aggregate interface view

Predefined user roles

network-admin

Parameters

number: Specifies the maximum number of Selected ports allowed in an aggregation group, in the range of 1 to 32.

Usage guidelines

Executing this command might cause some of the Selected ports in an aggregation group to become Unselected ports.

The maximum number of Selected ports allowed in the aggregation groups of the local and peer ends must be consistent.

The maximum number of Selected ports allowed in an aggregation group is limited by one of the following values, whichever is smaller:

·     Maximum number configured by using the link-aggregation selected-port maximum command.

·     Hardware limitation.

You can configure backup between two ports by performing the following tasks:

·     Assigning two ports to an aggregation group.

·     Setting the maximum number of Selected ports to 1 for the aggregation group.

Then, only one Selected port is allowed in the aggregation group at any point in time, while the Unselected port acts as a backup port.

Examples

# Set the maximum number of Selected ports to 5 for Layer 2 aggregation group 1.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] link-aggregation selected-port maximum 5

Related commands

link-aggregation irf-enhanced

link-aggregation selected-port minimum

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.

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

Predefined user roles

network-admin

Parameters

number: Specifies the minimum number of Selected ports in an aggregation group required to bring up the aggregate interface, in the range of 1 to 32.

Usage guidelines

Executing this command might cause all member ports in the aggregation group to become Unselected ports.

The minimum number of Selected ports allowed in the aggregation groups of the local and peer ends must be consistent.

Examples

# Set the minimum number of Selected ports to 3 for Layer 2 aggregation group 1.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

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

Related commands

link-aggregation selected-port maximum

port link-aggregation group

Use port link-aggregation group to assign an Ethernet interface to an aggregation group.

Use undo port link-aggregation group to remove an Ethernet interface from the aggregation group to which it belongs.

Syntax

port link-aggregation group number

undo port link-aggregation group

Default

An Ethernet interface does not belong to any aggregation group.

Views

Layer 2 Ethernet interface view

Predefined user roles

network-admin

Parameters

number: Specifies an aggregation group by its aggregate interface number in the range of 1 to 1024.

Usage guidelines

An Ethernet interface can belong to only one aggregation group.

Examples

# Assign Layer 2 Ethernet interface Ten-GigabitEthernet 1/0/1 to Layer 2 aggregation group 1.

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 1/0/1

[Sysname-Ten-GigabitEthernet1/0/1] port link-aggregation group 1

reset counters interface

Use reset counters interface to clear statistics for the specified aggregate interfaces.

Syntax

reset counters interface [ bridge-aggregation [ interface-number ] ]

Views

User view

Predefined user roles

network-admin

Parameters

bridge-aggregation: Specifies Layer 2 aggregate interfaces.

interface-number: Specifies an aggregate interface number.

Usage guidelines

Use this command to clear history statistics before you collect traffic statistics for a time period.

If you do not specify any options, the command clears statistics for all interfaces in the system.

If you specify only the bridge-aggregation keyword, the command clears statistics for all Layer 2 aggregate interfaces.

If you specify the bridge-aggregation interface-number option, the command clears statistics for the specified Layer 2 aggregate interface.

The bridge-aggregation keyword is available only when Layer 2 aggregate interfaces exist on the device.

Examples

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

<Sysname> reset counters interface bridge-aggregation 1

reset lacp statistics

Use reset lacp statistics to clear LACP statistics for the specified link aggregation member ports.

Syntax

reset lacp statistics [ interface interface-list ]

Views

User view

Predefined user roles

network-admin

Parameters

interface interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number [ to interface-type interface-number ]. interface-type interface-number specifies an interface by its type and number. If you do not specify any member ports, the command clears LACP statistics for all member ports.

Examples

# Clear LACP statistics for all link aggregation member ports.

<Sysname> reset lacp statistics

Related commands

display link-aggregation member-port

shutdown

Use shutdown to shut down an aggregate interface.

Use undo shutdown to bring up an aggregate interface.

Syntax

shutdown

undo shutdown

Views

Layer 2 aggregate interface view

Predefined user roles

network-admin

Examples

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

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] undo shutdown