04-Layer 2—LAN Switching Configuration Guide

HomeSupportRoutersCR16000-F SeriesConfigure & DeployConfiguration GuidesH3C CR16000-F Routers Configuration Guides-R838x-6W10104-Layer 2—LAN Switching Configuration Guide
02-Ethernet link aggregation configuration
Title Size Download
02-Ethernet link aggregation configuration 606.03 KB

Contents

Configuring Ethernet link aggregation· 1

About Ethernet link aggregation· 1

Ethernet link aggregation application scenario· 1

Aggregate interface, aggregation group, and member port 1

Operational key· 2

Configuration types· 2

Link aggregation modes· 2

How static link aggregation works· 3

LACP· 4

How dynamic link aggregation works· 6

Edge aggregate interface· 8

Load sharing modes for link aggregation groups· 8

S-MLAG·· 8

Restrictions and guidelines for Ethernet link aggregation· 9

Ethernet link aggregation tasks at a glance· 9

Configuring a manual link aggregation· 10

Restrictions and guidelines for aggregation group configuration· 10

Configuring a Layer 2 aggregation group· 11

Configuring a Layer 3 aggregation group· 13

Configuring S-MLAG·· 14

Configuring a 1+1 backup aggregation group· 15

About 1+1 backup link aggregation· 15

1+1 backup link aggregation tasks at a glance· 15

Configuring a static 1+1 backup aggregation group· 16

Specifying a primary member port 16

Setting the reversion delay· 17

Configuring a 1+1 backup aggregation group to place its secondary member port in down state· 17

Performing a primary/secondary member port switchover 18

Configuring an aggregate interface· 18

Configuring the description of an aggregate interface· 18

Setting the MAC address for an aggregate interface· 19

Assigning unique MAC addresses to Layer 3 aggregate interfaces· 20

Setting the MTU for a Layer 3 aggregate interface· 21

Setting the expected bandwidth for an aggregate interface· 21

Configuring an edge aggregate interface· 22

Configuring physical state change suppression on an aggregate interface· 22

Shutting down an aggregate interface· 23

Enabling Layer 2 forwarding on a Layer 3 aggregate interface· 24

Enabling packet statistics for a Layer 3 aggregate subinterface· 25

Enabling interframe gap and preamble statistics in the traffic statistics· 26

Restoring the default settings for an aggregate interface· 26

Setting the minimum and maximum numbers of Selected ports for an aggregation group· 27

Setting the minimum percentage of Selected ports in an aggregation group· 28

Configuring the calculation mode of the card hash value· 29

Disabling the default action of selecting a Selected port for dynamic aggregation groups that have not received LACPDUs  30

Ignoring port speed in setting the aggregation states of member ports· 30

Specifying ignored VLANs for a Layer 2 aggregate interface· 31

Configuring load sharing for link aggregation groups· 31

Setting load sharing modes for link aggregation groups· 31

Enabling local-first load sharing for link aggregation· 34

Configuring link aggregation load sharing algorithm and hash seed settings· 35

Enabling link-aggregation traffic redirection· 36

About link-aggregation traffic redirection· 36

Restrictions and guidelines for link-aggregation traffic redirection· 36

Enabling link-aggregation traffic redirection globally· 36

Isolating aggregate interfaces on the device· 37

Enabling BFD for an aggregation group· 37

Display and maintenance commands for Ethernet link aggregation· 39

Ethernet link aggregation configuration examples· 39

Example: Configuring a Layer 2 static aggregation group· 39

Example: Configuring a Layer 2 dynamic aggregation group· 41

Example: Configuring a Layer 2 edge aggregate interface· 43

Example: Configuring a Layer 3 static aggregation group· 44

Example: Configuring a Layer 3 dynamic aggregation group· 45

Example: Configuring S-MLAG·· 46


Configuring Ethernet link aggregation

About Ethernet link aggregation

Ethernet link aggregation bundles multiple physical Ethernet links into one logical link (called an aggregate link). Link aggregation provides the following benefits:

·     Increased bandwidth beyond the limits of any single individual link. In an aggregate link, traffic is distributed across the member ports.

·     Improved link reliability. The member ports dynamically back up one another. When a member port fails, its traffic is automatically switched to other member ports.

Ethernet link aggregation application scenario

As shown in Figure 1, Device A and Device B are connected by three physical Ethernet links. These physical Ethernet links are combined into an aggregate link called link aggregation 1. The bandwidth of this aggregate link can reach up to the total bandwidth of the three physical Ethernet links. At the same time, the three Ethernet links back up one another. When a physical Ethernet link fails, the traffic transmitted on the failed link is switched to the other two links.

Figure 1 Ethernet link aggregation diagram

Aggregate interface, aggregation group, and member port

Each link aggregation is represented by a logical aggregate interface. Each aggregate interface has an automatically created aggregation group, which contains member ports to be used for aggregation. The type and number of an aggregation group are the same as its aggregate interface.

Aggregate interface types

An aggregate interface can be one of the following types:

·     Layer 2—A Layer 2 aggregate interface is created manually. The member ports in a Layer 2 aggregation group can only be Layer 2 Ethernet interfaces. You cannot assign Layer 2 Ethernet interfaces to the same aggregation group.

·     Layer 3—A Layer 3 aggregate interface is created manually. The member ports in its Layer 3 aggregation group can only be Layer 3 Ethernet interfaces. You cannot assign Layer 3 Ethernet interfaces to the same aggregation group.

On a Layer 3 aggregate interface, you can create subinterfaces. A Layer 3 aggregate subinterface processes traffic only for the VLAN numbered with the same ID as the subinterface number.

The port rate of an aggregate interface equals the total rate of its Selected member ports. Its duplex mode is the same as that of the Selected member ports. For more information about Selected member ports, see "Aggregation states of member ports in an aggregation group."

Aggregation states of member ports in an aggregation group

A member port in an aggregation group can be in any of the following aggregation states:

·     Selected—A Selected port can forward traffic.

·     Unselected—An Unselected port cannot forward traffic.

·     Individual—An Individual port can forward traffic as a normal physical port. This state is peculiar to the member ports of edge aggregate interfaces. A member port is placed in Individual state if it has not received LACPDUs before the first expiration of the LACP timeout timer after either of the following event occurs:

¡     The aggregate interface is configured as an edge aggregate interface.

¡     The member port goes down and then comes up after it is placed in Unselected or Selected state.

For more information about edge aggregate interfaces, see "Edge aggregate interface."

Operational key

When aggregating ports, the system automatically assigns each port an operational key based on port information, such as port rate and duplex mode. Any change to this information triggers a recalculation of the operational key.

In an aggregation group, all Selected ports have the same operational key.

Configuration types

Port configuration includes the attribute configuration and protocol configuration. Attribute configuration affects the aggregation state of the port but the protocol configuration does not.

Attribute configuration

To become a Selected port, a member port must have the same attribute configuration as the aggregate interface. Table 1 describes the attribute configuration.

Table 1 Attribute configuration

Feature

Attribute configuration

QinQ

QinQ status (enabled/disabled) and TPID for VLAN tags. For information about QinQ, see "Configuring QinQ."

VLAN mapping

VLAN mapping configured on the port. For more information about VLAN mapping, see "Configuring VLAN mapping."

VLAN

VLAN attribute settings:

·     Permitted VLAN IDs.

·     PVID.

·     Link type (trunk, hybrid, or access).

·     VLAN tagging mode.

For information about VLANs, see "Configuring VLANs."

 

Protocol configuration

Protocol configuration of a member port does not affect the aggregation state of the member port. MAC address learning and spanning tree settings are examples of the protocol configuration.

Link aggregation modes

An aggregation group operates in one of the following modes:

·     Static—Static aggregation is stable. An aggregation group in static mode is called a static aggregation group. The aggregation states of the member ports in a static aggregation group are not affected by the peer ports.

·     Dynamic—An aggregation group in dynamic mode is called a dynamic aggregation group. Dynamic aggregation is implemented through IEEE 802.3ad Link Aggregation Control Protocol (LACP). The local system and the peer system automatically maintain the aggregation states of the member ports. Dynamic link aggregation reduces the administrators' workload.

How static link aggregation works

Reference port selection process

When setting the aggregation states of the ports in an aggregation group, the system automatically chooses a member port as the reference port. A Selected port must have the same operational key and attribute configurations as the reference port.

The system chooses a reference port from the member ports in up state.

The candidate reference ports are organized into different priority levels following these rules:

1.     In descending order of port priority.

2.     Full duplex.

3.     In descending order of speed.

4.     Half duplex.

5.     In descending order of speed.

From the candidate ports with the same attribute configurations as the aggregate interface, the one with the highest priority level is chosen as the reference port.

·     If multiple ports have the same priority level, the port that has been Selected (if any) is chosen. If multiple ports with the same priority level have been Selected, the one with the smallest port number is chosen.

·     If multiple ports have the same priority level and none of them has been Selected, the port with the smallest port number is chosen.

Setting the aggregation state of each member port

After the reference port is chosen, the system sets the aggregation state of each member port in the static aggregation group.

Figure 2 Setting the aggregation state of a member port in a static aggregation group

 

After the limit on Selected ports is reached, the aggregation state of a new member port varies by following conditions:

·     The port is placed in Unselected state if the port and the Selected ports have the same port priority. This mechanism prevents traffic interruption on the existing Selected ports. A device reboot can cause the device to recalculate the aggregation states of member ports.

·     The port is placed in Selected state when the following conditions are met:

¡     The port and the Selected ports have different port priorities, and the port has a higher port priority than a minimum of one Selected port.

¡     The port has the same attribute configurations as the aggregate interface.

Any operational key or attribute configuration change might affect the aggregation states of link aggregation member ports.

LACP

About LACP

Dynamic aggregation is implemented through IEEE 802.3ad Link Aggregation Control Protocol (LACP).

LACP uses LACPDUs to exchange aggregation information between LACP-enabled devices. Each member port in a dynamic aggregation group can exchange information with its peer. When a member port receives an LACPDU, it compares the received information with information received on the other member ports. In this way, the two systems reach an agreement on which ports are placed in Selected state.

LACP functions

LACP offers basic LACP functions and extended LACP functions, as described in Table 2.

Table 2 Basic and extended LACP functions

Category

Description

Basic LACP functions

Implemented through the basic LACPDU fields, including the system LACP priority, system MAC address, port priority, port number, and operational key.

Extended LACP functions

Implemented by extending the LACPDU with new TLV fields. Extended LACP can implement LACP MAD for the IRF feature. For more information about IRF and the LACP MAD mechanism, see Virtual Technologies Configuration Guide.

The device can participate in LACP MAD as either an IRF member device or an intermediate device.

 

LACP operating modes

LACP can operate in active or passive mode.

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.

LACP priorities

LACP priorities include system LACP priority and port priority, as described in Table 3. The smaller the priority value, the higher the priority.

Table 3 LACP priorities

Type

Description

System LACP priority

Used by two peer devices (or systems) to determine which one is superior in link aggregation.

In dynamic link aggregation, the system that has higher system LACP priority sets the Selected state of member ports on its side. The system that has lower priority sets the aggregation state of local member ports the same as their respective peer ports.

Port priority

Determines the likelihood of a member port to be a Selected port on a system. A port with a higher port priority is more likely to become Selected.

 

LACP timeout interval

The LACP timeout interval specifies how long a member port waits to receive LACPDUs from the peer port. If a local member port has not received LACPDUs from the peer in 3 seconds after the LACP timeout interval expires, the member port considers the peer as failed.

The LACP timeout interval also determines the LACPDU sending rate of the peer. LACP timeout intervals include the following types:

·     Short timeout interval—3 seconds. If you use the short timeout interval, the peer sends one LACPDU per second.

·     Long timeout interval—90 seconds. If you use the long timeout interval, the peer sends one LACPDU every 30 seconds.

How dynamic link aggregation works

Choosing a reference port

The system chooses a reference port from the member ports in up state. A Selected port must have the same operational key and attribute configurations as the reference port.

The local system (the actor) and the peer system (the partner) negotiate a reference port by using the following workflow:

1.     The two systems determine the system with the smaller system ID.

A system ID contains the system LACP priority and the system MAC address.

a.     The two systems compare their LACP priority values.

The lower the LACP priority, the smaller the system ID. If the LACP priority values are the same, the two systems proceed to step b.

b.     The two systems compare their MAC addresses.

The lower the MAC address, the smaller the system ID.

2.     The system with the smaller system ID chooses the port with the smallest port ID as the reference port.

A port ID contains a port priority and a port number. The lower the port priority, the smaller the port ID.

a.     The system chooses the port with the lowest priority value as the reference port.

If the ports have the same priority, the system proceeds to step b.

b.     The system compares their port numbers.

The smaller the port number, the smaller the port ID.

The port with the smallest port number and the same attribute configurations as the aggregate interface is chosen as the reference port.

Setting the aggregation state of each member port

After the reference port is chosen, the system with the smaller system ID sets the state of each member port on its side.

Figure 3 Setting the state of a member port in a dynamic aggregation group

 

The system with the greater system ID can detect the aggregation state changes on the peer system. The system with the greater system ID sets the aggregation state of local member ports the same as their peer ports.

When you aggregate interfaces in dynamic mode, follow these guidelines:

·     A dynamic link aggregation group chooses only full-duplex ports as the Selected ports.

·     For stable aggregation and service continuity, do not change the operational key or attribute configurations on any member port.

·     After the Selected port limit is reached, a newly joining port becomes a Selected port if it is more eligible than a current Selected port.

Edge aggregate interface

IMPORTANT

IMPORTANT:

This feature takes effect only on dynamic aggregate interface.

 

Dynamic link aggregation fails on a server-facing aggregate interface if dynamic link aggregation is configured only on the device. The device forwards traffic by using only one of the physical ports that are connected to the server.

To improve link reliability, configure the dynamic aggregate interface as an edge aggregate interface. This feature enables all aggregation member ports to forward traffic. When a member port fails, its traffic is automatically switched to other member ports.

After dynamic link aggregation is configured on the server, the device can receive LACPDUs from the server. Then, link aggregation between the device and the server operates correctly.

Load sharing modes for link aggregation groups

In a link aggregation group, traffic can be load shared across the Selected ports based on any of the following modes:

·     Per-flow load sharing—Load shares traffic on a per-flow basis. The load sharing mode classifies packets into flows and forwards packets of the same flow on the same link. This mode can be one or any combination of the following traffic classification criteria:

¡     Source or destination IP address.

¡     Source or destination MAC address.

¡     Source or destination port number.

¡     MPLS label.

·     Per-packet load sharing—Load shares traffic on a per-packet basis.

S-MLAG

Simple multichassis link aggregation (S-MLAG) enhances dynamic link aggregation to establish an aggregation that spans multiple standalone devices to a remote device.

An S-MLAG multichassis aggregation connects one dynamic Layer 2 aggregate interface on each S-MLAG device to the remote device, as shown in Figure 4.

S-MLAG uses an S-MLAG group to manage the aggregate interfaces for each aggregation, and it runs LACP to maintain each aggregation as does dynamic link aggregation. To the remote device, the S-MLAG devices appear as one peer aggregation system.

Figure 4 S-MLAG application scenario

Restrictions and guidelines for Ethernet link aggregation

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

Only 1G and 10G, or 10G and 100G Ethernet interfaces that are bundled into an aggregate link support distributing traffic according to the port speed ratio.

Ethernet link aggregation tasks at a glance

To configure Ethernet link aggregation, perform the following tasks:

1.     Configuring link aggregations

¡     Configuring a manual link aggregation

¡     Configuring S-MLAG

¡     Configuring a 1+1 backup aggregation group

2.     (Optional.) Configuring an aggregate interface

¡     Configuring the description of an aggregate interface

¡     Setting the MAC address for an aggregate interface

¡     Assigning unique MAC addresses to Layer 3 aggregate interfaces

¡     Setting the MTU for a Layer 3 aggregate interface

¡     Setting the expected bandwidth for an aggregate interface

¡     Configuring an edge aggregate interface

An edge aggregate interface uses all member ports to forward traffic when the aggregation peer is not enabled with dynamic link aggregation.

¡     Configuring physical state change suppression on an aggregate interface

¡     Shutting down an aggregate interface

¡     Enabling Layer 2 forwarding on a Layer 3 aggregate interface

¡     Enabling packet statistics for a Layer 3 aggregate subinterface

¡     Enabling interframe gap and preamble statistics in the traffic statistics

¡     Restoring the default settings for an aggregate interface

3.     (Optional.) Adjusting aggregation states of link aggregation member ports

¡     Setting the minimum and maximum numbers of Selected ports for an aggregation group

¡     Setting the minimum percentage of Selected ports in an aggregation group

¡     Configuring the calculation mode of the card hash value

¡     Disabling the default action of selecting a Selected port for dynamic aggregation groups that have not received LACPDUs

¡     Ignoring port speed in setting the aggregation states of member ports

¡     Specifying ignored VLANs for a Layer 2 aggregate interface

To have the system ignore the permit state and tagging mode of a VLAN when it decides Selected ports, perform this task.

4.     (Optional.) Configuring load sharing for link aggregation groups

¡     Setting load sharing modes for link aggregation groups

¡     Enabling local-first load sharing for link aggregation

¡     Configuring link aggregation load sharing algorithm and hash seed settings

5.     (Optional.) Optimizing traffic forwarding

¡     Enabling link-aggregation traffic redirection

This feature redirects traffic on an unavailable Selected port to the remaining available Selected ports of an aggregation group to avoid traffic interruption.

¡     Isolating aggregate interfaces on the device

6.     (Optional.) Enabling BFD for an aggregation group

Configuring a manual link aggregation

Restrictions and guidelines for aggregation group configuration

Layer 2 aggregation group restrictions

You cannot assign an interface to a Layer 2 aggregation group if any features in Table 4 are configured on that interface.

Table 4 Features incompatible with Layer 2 aggregation member interfaces

Feature on the interface

Reference

Service instance bound to a cross connect

MPLS L2VPN in MPLS Configuration Guide

Service instance bound to a VSI

VPLS in MPLS Configuration Guide

Layer 3 aggregation group restrictions

You cannot assign an interface to a Layer 3 aggregation group if any features in Table 5 are configured on that interface.

Table 5 Features incompatible with Layer 3 aggregation member interfaces

Feature on the interface

Reference

Interface bound to a cross connect

MPLS L2VPN in MPLS Configuration Guide

Interface bound to a VSI

VPLS in MPLS Configuration Guide

Interface bound to a VPN instance

MPLS L3VPN in MPLS Configuration Guide

 

Aggregation member port restrictions

You cannot delete an aggregate interface if it has subinterfaces or its aggregation group contains member ports.

Do not assign a reflector port for port mirroring to an aggregation group. For more information about reflector ports, see Network Management and Monitoring Configuration Guide.

You cannot assign a monitor port for a mirroring group to an aggregation group. You cannot configure an aggregation member port as a monitor port for a mirroring group.

Attribute and protocol configuration restrictions

Attribute configuration changes made on an aggregate interface are automatically synchronized to all member ports. If the changes fail to be synchronized to a Selected port, the port might change to the Unselected state. To make the port become Selected again, you can change the attribute configurations on the aggregate interface or on the port. The synchronization failure does not affect the attribute configuration changes made on the aggregate interface. The configurations that have been synchronized from the aggregate interface are retained on the member ports even after the aggregate interface is deleted.

Any attribute configuration change on a member port might affect the aggregation states and running services of the member ports. The system displays a warning message every time you try to change an attribute configuration setting on a member port.

The protocol configurations for an aggregate interface take effect only on the current aggregate interface. The protocol configurations for a member port take effect only when the port leaves its aggregation group.

Configuration consistency requirements

You must configure the same aggregation mode at the two ends of an aggregate link.

·     For a successful static aggregation, make sure the ports at both ends of each link are in the same aggregation state.

·     For a successful dynamic aggregation, make sure the peer ports of the ports aggregated at one end are also aggregated. The two ends can automatically negotiate the aggregation state of each member port.

Configuring a Layer 2 aggregation group

Configuring a Layer 2 static aggregation group

1.     Enter system view.

system-view

2.     Create a Layer 2 aggregate interface and enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

When you create a Layer 2 aggregate interface, the system automatically creates a Layer 2 static aggregation group numbered the same as that interface.

3.     Set the aggregation mode to static.

link-aggregation mode static

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

4.     Return to system view.

quit

5.     Assign an interface to the Layer 2 aggregation group:

a.     Enter Layer 2 Ethernet interface view‍‍‍or Layer 2 FlexE logical interface view.

interface interface-type interface-number

b.     Assign the interface to the Layer 2 aggregation group.

port link-aggregation group group-id

Repeat these two substeps to assign more interfaces to the aggregation group.

You cannot assign Layer 2 Ethernet interfaces and Layer 2 FlexE logical interfaces to the same aggregation group.

6.     (Optional.) Set the port priority of the interface.

link-aggregation port-priority priority

The default port priority of an interface is 32768.

Configuring a Layer 2 dynamic aggregation group

1.     Enter system view.

system-view

2.     Set the system LACP priority.

lacp system-priority priority

By default, the system LACP priority is 32768.

Changing the system LACP priority might affect the aggregation states of the ports in a dynamic aggregation group.

3.     Create a Layer 2 aggregate interface and enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

When you create a Layer 2 aggregate interface, the system automatically creates a Layer 2 static aggregation group numbered the same as that interface.

4.     Configure the aggregation group to operate in dynamic mode.

link-aggregation mode dynamic

By default, an aggregation group operates in static mode.

5.     Return to system view.

quit

6.     Assign an interface to the Layer 2 aggregation group:

a.     Enter Layer 2 Ethernet interface or Layer 2 FlexE logical interface view.

interface interface-type interface-number

b.     Assign the interface to the Layer 2 aggregation group.

port link-aggregation group group-id

Repeat these two substeps to assign more Layer 2 Ethernet interfaces or Layer 2 FlexE logical interfaces to the aggregation group.

7.     Set the LACP operating mode for the interface.

¡     Set the LACP operating mode to passive.

lacp mode passive

¡     Set the LACP operating mode to active.

undo lacp mode

By default, LACP is operating in active mode.

8.     (Optional.) Set the port priority for the interface.

link-aggregation port-priority priority

The default setting is 32768.

9.     (Optional.) Set the short LACP timeout interval (3 seconds) for the interface.

lacp period short

By default, the long LACP timeout interval (90 seconds) is used by the interface.

Configuring a Layer 3 aggregation group

Configuring a Layer 3 static aggregation group

1.     Enter system view.

system-view

2.     Create a Layer 3 aggregate interface and enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

When you create a Layer 3 aggregate interface, the system automatically creates a Layer 3 static aggregation group numbered the same as that interface.

3.     Set the aggregation mode to static.

link-aggregation mode static

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

4.     Return to system view.

quit

5.     Assign an interface to the Layer 3 aggregation group:

a.     Enter Layer 3 Ethernet interface view‍‍‍or Layer 3 FlexE logical interface view.

interface interface-type interface-number

b.     Assign the interface to the Layer 3 aggregation group.

port link-aggregation group group-id

Repeat these two substeps to assign more interfaces to the aggregation group.

You cannot assign Layer 3 Ethernet interfaces and Layer 3 FlexE logical interfaces to the same aggregation group.

6.     (Optional.) Set the port priority of the interface.

link-aggregation port-priority priority

The default port priority of an interface is 32768.

Configuring a Layer 3 dynamic aggregation group

1.     Enter system view.

system-view

2.     Set the system LACP priority.

lacp system-priority priority

By default, the system LACP priority is 32768.

Changing the system LACP priority might affect the aggregation states of the ports in the dynamic aggregation group.

3.     Create a Layer 3 aggregate interface and enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

When you create a Layer 3 aggregate interface, the system automatically creates a Layer 3 static aggregation group numbered the same as that interface.

4.     Configure the aggregation group to operate in dynamic mode.

link-aggregation mode dynamic

By default, an aggregation group operates in static mode.

5.     Return to system view.

quit

6.     Assign an interface to the Layer 3 aggregation group:

a.     Enter Layer 3 Ethernet interface or Layer 3 FlexE logical interface view.

interface interface-type interface-number

b.     Assign the interface to the Layer 3 aggregation group.

port link-aggregation group group-id

Repeat these two substeps to assign more Layer 3 Ethernet interfaces or Layer 3 FlexE logical interfaces to the aggregation group.

7.     Set the LACP operating mode for the interface.

¡     Set the LACP operating mode to passive.

lacp mode passive

¡     Set the LACP operating mode to active.

undo lacp mode

By default, LACP is operating in active mode.

8.     (Optional.) Set the port priority of the interface.

link-aggregation port-priority priority

The default setting is 32768.

9.     (Optional.) Set the short LACP timeout interval (3 seconds) for the interface.

lacp period short

By default, the long LACP timeout interval (90 seconds) is used by the interface.

Configuring S-MLAG

Restrictions and guidelines

Use S-MLAG only to establish aggregate links with servers.

S-MLAG is intended for a non-IRF environment. Do not configure it on an IRF fabric. For more formation about IRF, see Virtual Technologies Configuration Guide.

Each S-MLAG group can contain only one aggregate interface on each device.

On S-MLAG devices, make sure the member ports in an aggregation group have the same speed and duplex mode. Inconsistency in these settings might cause reference port reselection and interrupt traffic forwarding when new member ports join the aggregation group.

Do not configure the following settings on S-MLAG devices:

·     LACP MAD.

·     Link-aggregation traffic redirection.

·     Maximum or minimum number of Selected ports.

·     Ignoring port speed in setting the aggregation states of member ports.

·     Spanning tree. For more information, see "Configuring spanning tree protocols."

As a best practice, maintain consistency across S-MLAG devices in service feature configuration.

Prerequisites

Configure the link aggregation settings other than S-MLAG settings on each S-MLAG device. Make sure the settings are consistent across the S-MLAG devices.

Procedure

1.     Enter system view.

system-view

2.     Set the LACP system MAC address.

lacp system-mac mac-address

By default, the LACP system MAC address is the bridge MAC address of the device.

All S-MLAG devices must use the same LACP system MAC address.

3.     Set the LACP system priority.

lacp system-priority priority

By default, the LACP system priority is 32768.

All S-MLAG devices must use the same LACP system priority.

4.     Set the LACP system number.

lacp system-number number

By default, the LACP system number is not set.

You must assign a unique LACP system number to each S-MLAG device.

5.     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

6.     Set the link aggregation mode to dynamic.

link-aggregation mode dynamic

By default, an aggregation group operates in static mode.

7.     Assign the aggregate interface to an S-MLAG group.

port s-mlag group group-id

By default, an aggregate interface is not assigned to any S-MLAG group.

Configuring a 1+1 backup aggregation group

About 1+1 backup link aggregation

As shown in Figure 5, a 1+1 backup aggregation group is used on a CE that is dualhomed to PEs for high availability of services. A 1+1 backup aggregation group is a static Layer 3 aggregation group that contains one primary member port and one secondary member port. The primary member port is placed in Selected state to forward all traffic, and the secondary member port is placed in Unselected state as a standby.

Figure 5 Application scenarios for 1+1 backup link aggregation

 

1+1 backup link aggregation tasks at a glance

To configure a 1+1 backup aggregation group, perform the following tasks:

1.     Configuring a static 1+1 backup aggregation group

2.     (Optional.) Specifying a primary member port

3.     (Optional.) Setting the reversion delay

4.     (Optional.) Configuring a 1+1 backup aggregation group to place its secondary member port in down state

5.     (Optional.) Performing a primary/secondary member port switchover

Configuring a static 1+1 backup aggregation group

Restrictions and guidelines

A 1+1 backup aggregation group can contain a maximum of two member ports.

Procedure

1.     Enter system view.

system-view

2.     Create a Layer 3 aggregate interface and enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Set the aggregation mode to static 1+1 backup.

link-aggregation mode static backup

4.     Return to system view.

quit

5.     Assign an interface to the Layer 3 aggregation group:

a.     Enter Layer 3 Ethernet interface view.

interface interface-type interface-number

b.     Assign the interface to the Layer 3 aggregation group.

port link-aggregation group group-id

Repeat these two substeps to assign more interfaces to the aggregation group.

6.     (Optional.) Set the port priority of the interface.

link-aggregation port-priority priority

The default port priority of an interface is 32768.

Specifying a primary member port

About this task

In a 1+1 backup aggregation group, the primary member port is placed in Selected state to forward all traffic, and the secondary member port is placed in Unselected state as a standby. You can specify a primary member port or let the system to select a primary member port. If you specify a primary member port for a 1+1 backup aggregation group, the aggregation group can revert to the primary member port when that port recovers from failure. As a best practice, manually specify a primary member port.

If you do not specify a primary member port for an aggregation group, the system acts as follows:

·     Assigns the primary role to the reference port If the member ports join the aggregation group simultaneously.

·     Assigns the primary role to the member port that first becomes Selected if the member ports join the aggregation group successively.

Restrictions and guidelines

You cannot perform this task on a port that is not an aggregation group member or is in an aggregation group not operating in 1+1 backup mode.

A 1+1 backup aggregation group can have only one primary member port.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 3 Ethernet interface view.

interface interface-type interface-number

3.     Assign the primary role to the interface.

link-aggregation primary-port

By default, a member port is not assigned the primary role in a 1+1 backup aggregation group.

Setting the reversion delay

About this task

The reversion delay is the time a 1+1 backup aggregation group must wait before reverting to the primary member port after that port recovers from failure. This timer prevents link flapping from causing frequent primary/secondary member port switchovers.

Restrictions and guidelines

For the reversion delay to take effect on an aggregation group, first configure the aggregation group to operate in 1+1 backup mode and manually specify its primary member port.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Set the reversion delay.

link-aggregation reversion delay time-value

By default, a 1+1 backup aggregation group reverts to the primary member port immediately after that port recovers from failure.

Configuring a 1+1 backup aggregation group to place its secondary member port in down state

About this task

If the peer for a 1+1 backup aggregation group is unaware of the member port roles, it might send traffic to the secondary member port, and traffic loss occurs consequently. To prevent traffic loss, configure the aggregation group to place its secondary member port in down state. This allows the peer and local ends to use only up ports to transmit traffic.

Restrictions and guidelines

For this feature to take effect on an aggregation group, first configure the aggregation group to operate in 1+1 backup mode.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Configure the aggregation group to place its secondary member port in down state.

link-aggregation secondary-down

By default, the secondary member port in a 1+1 backup aggregation group is in Unselected state.

Performing a primary/secondary member port switchover

About this task

Perform this task to switch member port roles for a 1+1 backup aggregation group whose primary member port is set by the system when the state of peer ports changes.

Restrictions and guidelines

This task might cause traffic loss. Make sure you are fully aware of the impacts of this task when you perform it on a live network.

If the link-aggregation secondary-down command has been executed for a 1+1 backup aggregation group, this task brings up the down secondary member port for it to take over the primary role.

Before you perform this task for a 1+1 backup aggregation group, verify that the following requirements are met:

·     The aggregation group contains one Selected port and one Unselected port.

·     The primary member port is set by the system.

·     The secondary member port can become Selected.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Perform a primary/secondary member port switchover.

link-aggregation switchover

Configuring an aggregate interface

Most settings that can be made on Layer 2 or Layer 3 Ethernet interfaces can also be made on Layer 2 or Layer 3 aggregate interfaces.

Configuring the description of an aggregate interface

About this task

You can configure the description of an aggregate interface for administration purposes, for example, describing the purpose of the interface.

Procedure

1.     Enter system view.

system-view

2.     Enter aggregate interface or subinterface view.

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface or subinterface view.

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

3.     Configure the interface description.

description text

By default, the description of an interface is interface-name Interface.

Setting the MAC address for an aggregate interface

About this task

Typically, all aggregate interfaces on a device use the same MAC address, and aggregate interfaces on different devices use different MAC addresses. However, you must set different MAC addresses for aggregate interfaces on a device in some situations.

For example, in a spanning tree network, the BPDUs sent by Layer 2 aggregate interfaces on a device have the same source MAC address. A third-party device might handle these BPDUs as attack packets and drop them. To resolve this issue, set different MAC addresses for the Layer 2 aggregate interfaces.

Restrictions and guidelines

Only interfaces on the following cards support this feature:

This feature is available only for the following cards:

 

Card category

Cards

CEPC

CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ8L, CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1502XA, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1802X, CSPEX-1802XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-2612XA

SPE

RX-SPE200-E

 

In standard mode, the value range for the MAC addresses assigned to Layer 3 aggregate interfaces is 000f-e2ff-8000 to 000f-e2ff-80ff if these aggregate interfaces contain member ports on the following cards:

 

Card category

Cards

CEPC

CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8LA, CEPC-CQ8L1A CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1502XA, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1802XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-2304X-G, CSPEX-2612XA

SPE

RX-SPE200-E

 

You cannot use this feature to assign a MAC address to a Layer 3 aggregate subinterface. All aggregate subinterfaces on a Layer 3 aggregate interface use the MAC address of the Layer 3 aggregate interface.

Do not assign the MAC addresses reserved for VRRP to aggregate interfaces.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Set the MAC address for the aggregate interface.

mac-address mac-address

By default, the MAC address for an aggregate interface is assigned by the device.

Assigning unique MAC addresses to Layer 3 aggregate interfaces

Restrictions and guidelines

This feature is available only when the system is operating in standard mode. For more information about the system operating mode, see device management in Fundamentals Configuration Guide.

In standard mode, this feature is available only for the following cards:

 

Card category

Cards

CEPC

CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX, CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ16L1

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-1802X, CSPEX-1802XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-1502XA, CSPEX-2612XA

SPE

RX-SPE200, RX-SPE200-E

 

This feature is not supported on the device operating in sdn-wan mode.

This feature is not supported by legacy MPUs. If you configure this feature on a device with a legacy MPU, you will receive a message indicating that the MPU cannot assign unique MAC addresses to different Layer 3 aggregate interfaces.

Procedure

1.     Enter system view.

system-view

2.     Enable the device to assign unique MAC addresses to Layer 3 aggregate interfaces.

route-aggregation different-mac-address enable

By default, the device assigns the same MAC address to all Layer 3 aggregate interfaces.

Setting the MTU for a Layer 3 aggregate interface

About this task

The MTU of an interface affects IP packets fragmentation and reassembly on the interface.

Restrictions and guidelines

When you set the MTU of a Layer 3 aggregate interface, you can specify the spread keyword to issue the MTU setting to all its subinterfaces. If you do not specify the spread keyword, the MTU setting takes effect only on the Layer 3 aggregate interface.

On an aggregate subinterface, the MTU set in subinterface view takes precedence over the MTU inherited from the aggregate interface.

When you set the MTU of a Layer 3 aggregate interface, follow these restrictions and guidelines:

·     If this interface receives IP packets and the MTU of the traffic outgoing interface is smaller than 1280 bytes, the IP packets are fragmented based on the MTU 1280 bytes. As a best practice, set the MTU to be larger than 1280 bytes on the traffic outgoing interface.

·     The largest MTU of a Layer 3 aggregate interface and its subinterfaces cannot exceed the maximum MTU of the member ports of the Layer 3 aggregate interface.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 3 aggregate interface or subinterface view.

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

3.     Set the MTU.

¡     Set the MTU of the Layer 3 aggregate interface or subinterface.

mtu size

¡     Set the MTU of the Layer 3 aggregate interface and issue the MTU to all its subinterfaces.

mtu size spread

This command is available only in Layer 3 aggregate interface view.

The default setting is 1500 bytes.

Setting the expected bandwidth for an aggregate interface

About this task

Expected bandwidth is an informational parameter used only by higher-layer protocols for calculation. You cannot adjust the actual bandwidth of an interface by performing this task.

Procedure

1.     Enter system view.

system-view

2.     Enter aggregate interface view.

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface or subinterface view.

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

3.     Set the expected bandwidth for the interface.

bandwidth bandwidth-value

By default, the expected bandwidth (in kbps) is the interface baud rate divided by 1000.

Configuring an edge aggregate interface

Restrictions and guidelines

This configuration takes effect only on aggregate interface in dynamic mode.

Link-aggregation traffic redirection cannot operate correctly on an edge aggregate interface. For more information about link-aggregation traffic redirection, see "Enabling link-aggregation traffic redirection."

Procedure

1.     Enter system view.

system-view

2.     Enter aggregate interface view.

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface or subinterface view.

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

3.     Configure the aggregate interface as an edge aggregate interface.

lacp edge-port

By default, an aggregate interface does not operate as an edge aggregate interface.

Configuring physical state change suppression on an aggregate interface

About this task

The physical link state of an aggregate interface is either up or down. Each time the physical link of an interface comes up or goes down, the system immediately reports the change to the CPU. The CPU then performs the following operations:

·     Notifies the upper-layer protocol modules (such as routing and forwarding modules) of the change for guiding packet forwarding.

·     Automatically generates traps and logs to inform users to take the correct actions.

To prevent frequent physical link flapping from affecting system performance, configure physical state change suppression. You can configure this feature to suppress only link-down events, only link-up events, or both. If an event of the specified type still exists when the suppression interval expires, the system reports the event to the CPU.

Restrictions and guidelines

When you configure suppression interval settings on an aggregate interface, make sure its peer interface is also an aggregate interface in the same aggregation mode. In addition, the suppression interval settings must be the same between the peer aggregate interfaces.

As a best practice, use the default setting in an S-MLAG environment.

On an interface, you can configure different suppression intervals for link-up and link-down events. If you execute the link-delay command multiple times for link-up or link-down events, the most recent configuration takes effect.

Procedure

1.     Enter system view.

system-view

2.     Enter aggregate interface view.

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Configure physical state change suppression.

link-delay { down | up } [ msec ] delay-time

By default, each time the physical link of an aggregate interface goes up or comes down, the system immediately reports the change to the CPU.

Shutting down an aggregate interface

Restrictions and guidelines

Shutting down or bringing up an aggregate interface affects the aggregation states and link states of member ports in the corresponding aggregation group as follows:

·     When an aggregate interface is shut down, all its Selected ports become Unselected and all member ports go down.

·     When an aggregate interface is brought up, the aggregation states of all its member ports are recalculated.

When you shut down or bring up a Layer 3 aggregate interface, all its aggregate subinterfaces are also shut down or brought up. Shutting down or bringing up a Layer 3 aggregate subinterface does not affect the state of the main aggregate interface.

Procedure

1.     Enter system view.

system-view

2.     Enter aggregate interface view.

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface or subinterface view.

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

3.     Shut down the interface.

shutdown

By default, an interface or subinterface is not manually shut down.

 

CAUTION

CAUTION:

The shutdown command will disconnect all links established on an interface. Make sure you are fully aware of the impacts of this command when you use it on a live network.

 

Enabling Layer 2 forwarding on a Layer 3 aggregate interface

About this task

By default, a Layer 3 aggregate interface only performs Layer 3 forwarding. This feature enables a Layer 3 aggregate interface to transmit VLAN tagged packets by creating a virtual Layer 2 aggregate interface for that Layer 3 aggregate interface. You can configure VLAN settings on the virtual Layer 2 interface.

This feature shuts down the data link layer of a Layer 3 aggregate interface. While the Layer 3 aggregate interface cannot provide Layer 3 services, its subinterfaces can terminate VLANs and continue to provide Layer 3 services.

Restrictions and guidelines

This feature is available only for the following cards:

 

Card category

Cards

CEPC

CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX, CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ16L1

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-1802X, CSPEX-1802XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-1502XA,CSPEX-2612XA

SPE

RX-SPE200, RX-SPE200-E

 

After you execute this command on a Layer 3 aggregate interface, the following functions will take effect on the virtual Layer 2 aggregate interface created for the Layer 3 aggregate interface:

·     Port mirroring configured on a member port of the Layer 3 aggregate interface.

For more information about port mirroring, see mirroring configuration in Network Management and Monitoring Configuration Guide.

·     Outbound GTS, interface-specific rate limit, WRED, and queue scheduling profile configured on the Layer 3 aggregate interface or one of its member ports.

For more information about GTS, interface-specific rate limit, WRED, and queue scheduling profile, see QoS configuration in ACL and QoS Configuration Guide.

·     Outbound rate limit and queue scheduling profile configured by applying a user profile to the interface with the qos apply user-profile command.

For more information about outbound rate limit and queue scheduling profile configuration in user profile view, see user profile commands in BRAS Services Command Reference.

You cannot enable this feature on a main interface whose subinterfaces terminate the outermost VLAN ID 1.

The outermost VLAN IDs terminated by subinterfaces of a main interface cannot contain the PVID of and VLAN IDs permitted by the virtual Layer 2 interface created for the main interface.

For more information about VLAN termination, see Layer 2—LAN Switching Configuration Guide.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Enable Layer 2 forwarding.

bridge-forwarding enable

By default, Layer 2 forwarding is disabled on a Layer 3 aggregate interface.

 

CAUTION

CAUTION:

This command will delete physical layer service settings on a Layer 3 aggregate interface. Make sure you are fully aware of the impacts of this command when you execute it on a live network.

 

4.     Return to system view.

quit

5.     Enter virtual Layer 2 aggregate interface view.

interface vagg-bridge-port interface-number

6.     Configure an interface description.

description text

By default, the description of an interface is interface-name Interface. For example, VAGG-Bridge-Port3/1/1 Interface.

Enabling packet statistics for a Layer 3 aggregate subinterface

Restrictions and guidelines

The packet statistics feature is CPU intensive. When you use this command for Layer 3 aggregate subinterfaces, make sure you fully understand its impact on system performance.

You can use the flow-interval command to adjust the interval at which the statistics are polled. To conserve hardware resources, increase the polling interval. For more information about this command, see Ethernet interface commands in Interface Command Reference.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 3 aggregate subinterface view.

interface route-aggregation interface-number.subnumber

3.     Enable packet statistics for the Layer 3 aggregate subinterface.

traffic-statistic enable

By default, the packet statistics feature is disabled for a Layer 3 aggregate subinterface.

4.     (Optional.) Display the packet statistics for the Layer 3 aggregate subinterface.

display interface route-aggregation interface-number.subnumber

In the command output, the Input and Output fields display packet statistics.

Enabling interframe gap and preamble statistics in the traffic statistics

About this task

If you execute the display interface command, the Last 300 seconds input rate or Last 300 seconds output rate field in the command output displays the average outbound or inbound traffic rate in the last 300 seconds.

By default, traffic rate = native frame length × packet throughput per second. Execute the traffic-statistic include-interframe command if you need the total traffic statistics, including the native frame length, interframe gap length and preamble length, for a specific time period. If you execute this command, traffic rate = (native frame length + interframe gap length + preamble length) × packet throughput per second.

Restrictions and guidelines

If you perform this task on an aggregate interface, the configuration takes effect on all Ethernet interfaces in the aggregation group of the aggregate interface. The interframe gap and preamble statistics setting configured in Ethernet interface view do not take effect. If an Ethernet interface is removed from the aggregation group, the interframe gap and preamble statistics setting configured in Ethernet interface view takes effect.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

¡     Enter Layer 2 Ethernet interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 Ethernet interface view.

interface route-aggregation interface-number

3.     Enable interframe gap and preamble statistics in the traffic statistics.

traffic-statistic include-interframe

By default, interframe gap and preamble statistics are enabled in the traffic statistics.

Restoring the default settings for an aggregate interface

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

 

The default command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.

To resolve this issue:

1.     Use the display this command in interface view to identify these commands.

2.     Use their undo forms or follow the command reference to restore their default settings.

3.     If the restoration attempt still fails, follow the error message instructions to resolve the issue.

Procedure

1.     Enter system view.

system-view

2.     Enter aggregate interface view.

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface or subinterface view.

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

3.     Restore the default settings for the aggregate interface.

default

Setting the minimum and maximum numbers of Selected ports for an aggregation group

About this task

The bandwidth of an aggregate link increases as the number of Selected member ports increases. To avoid congestion, you can set the minimum number of Selected ports required for bringing up an aggregate interface.

This minimum threshold setting affects the aggregation states of aggregation member ports and the state of the aggregate interface.

·     When the number of member ports eligible to be Selected ports is smaller than the minimum threshold, the following events occur:

¡     The eligible member ports are placed in Unselected state.

¡     The link layer state of the aggregate interface becomes down.

·     When the number of member ports eligible to be Selected ports reaches or exceeds the minimum threshold, the following events occur:

¡     The eligible member ports are placed in Selected state.

¡     The link layer state of the aggregate interface becomes up.

The maximum number of Selected ports allowed in an aggregation group is limited by either manual configuration or hardware limitation, whichever value is smaller.

You can implement 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, and the Unselected port acts as a backup port.

Restrictions and guidelines

The minimum and maximum numbers of Selected ports must be the same between the local and peer aggregation groups.

For an aggregation group, the maximum number of Selected ports must be equal to or higher than the minimum number of Selected ports.

Procedure

1.     Enter system view.

system-view

2.     Enter aggregate interface view.

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Set the minimum number of Selected ports for the aggregation group.

link-aggregation selected-port minimum min-number

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

4.     Set the maximum number of Selected ports for the aggregation group.

link-aggregation selected-port maximum max-number [ lacp-sync ]

By default, the maximum number of Selected ports for an aggregation group is the hardware limitation.

For a static aggregate link, you must set the maximum number of Selected ports to the same value at its two ends.

For a dynamic aggregate link, you must set the maximum number of Selected ports to the same value at its two ends if you do not specify the lacp-sync keyword. If you specify this keyword, the two ends of the aggregate link compare their maximum Selected port number settings and use the smaller value.

Setting the minimum percentage of Selected ports in an aggregation group

About this task

The minimum number of Selected ports in an aggregation group equals the higher one of the following values:

·     The number of member ports in the aggregation group multiplied by the minimum percentage of Selected ports.

·     The limit set by using the link-aggregation selected-port minimum command.

Restrictions and guidelines

The system calculates the minimum percentage of Selected ports based on the total number of member ports in an aggregation group, including the member ports on an absent card. To view the total number of member ports in an aggregation group, execute the display link-aggregation verbose all-configuration command.

For the device to calculate the minimum number of Selected ports correctly, save the running configuration and reboot the device after you execute the link-aggregation selected-port minimum percentage command.

After you perform this task, aggregate interface flapping might occur when ports join or leave an aggregation group. Make sure you are fully aware of the impacts of this command when you execute it on a live network.

If you set the minimum percentage of Selected ports for the aggregation group, do not set the maximum number of Selected ports. If you set the maximum number of Selected ports, the calculated minimum number of Selected ports might be larger than the maximum number of Selected ports.

You must set the same minimum percentage of Selected ports at the two ends of an aggregate link.

Procedure

1.     Enter system view.

system-view

2.     Enter aggregate interface view.

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface.

interface route-aggregation { interface-number }

3.     Set the minimum percentage of Selected ports.

link-aggregation selected-port minimum percentage number

By default, the minimum percentage of Selected ports is not set for an aggregation group.

Configuring the calculation mode of the card hash value

About this task

If the hash values of the cards are calculated in different ways, the interfaces on the cards cannot be added to the same aggregation group. If Ethernet link aggregation is performed on interfaces on different cards, ensure that the hash values of the cards are calculated in the same way.

This feature takes effect only on the following cards. If cards listed in the following table exist on the device, the hash value calculation mode of the cards will be changed simultaneously. Other cards can only use the default mode to calculate the card hash value.

 

Card category

Cards

CEPC

CSPC-GE16XP4L-E, CSPC-GE24L-E, CSPC-GP24GE8XP2L-E

CSPEX

CSPEX-1104-E, CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1602X

SPE

CEPC-CP4RX, CEPC-CP4RX-L, CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX

 

·     For cards whose hash value calculation mode is switched simultaneously, if the LBID is used as the hash value, the card can perform Ethernet link aggregation with the CSPEX-2304X-G card.

·     For cards whose hash value calculation mode is switched simultaneously, if the hash value is calculated based on the MAC address of the sent packets, Ethernet link aggregation can be performed with the CSPEX-1204 card.

Restriction and guidelines

 

IMPORTANT

IMPORTANT:

Ensure that no service traffic exists on cards before switching the hash value calculation mode. If service traffic exists on a card, the service traffic will be interrupted when the hash value calculation mode is switched.

 

This command is supported only on CR16006-F, CR16010-F (single fan frame model), CR16010-F (double fan frame model), and CR16014-F devices.

Procedure

1.     Enter system view.

system-view

2.     Configure the calculation mode of the card hash value.

system-hash-mode { lbid | mac }

By default, for the CR16006-F, CR16010-F (single fan frame model), CR16010-F (double fan frame model), and CR16014-F devices, the CSPEX-1204 card calculates the hash value based on the MAC address of the sent packets. Other service cards use the load balance ID (LBID) as the hash value.

Disabling the default action of selecting a Selected port for dynamic aggregation groups that have not received LACPDUs

About this task

The default port selection action applies to dynamic aggregation groups.

This action automatically chooses the port with the lowest ID from among all up member ports as a Selected port if none of them has received LACPDUs before the LACP timeout interval expires.

After this action is disabled, a dynamic aggregation group will not have any Selected ports to forward traffic if it has not received LACPDUs before the LACP timeout interval expires.

Procedure

1.     Enter system view.

system-view

2.     Disable the default port selection action.

lacp default-selected-port disable

By default, the default port selection action is disabled for dynamic aggregation groups.

Ignoring port speed in setting the aggregation states of member ports

About this task

This feature allows ports at a different speed than the reference port to become Selected by ignoring the port speed during operational key calculation.

You must configure the same port speed ignoring setting at the two ends of a static configuration to ensure that the peer ports are placed in the same aggregation state. This requirement does not apply to a dynamic aggregation, on which the two ends negotiate the aggregation state of the peer ports automatically.

Restriction and guidelines

Make sure you are fully aware of the impacts of this feature when you use it on a live network.

Procedure

1.     Enter system view.

system-view

2.     Enter aggregate interface view.

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Configure the aggregation group to ignore port speed in setting the aggregation states of member ports.

link-aggregation ignore speed

By default, an aggregation group does not ignore port speed in setting the aggregation states of member ports.

Specifying ignored VLANs for a Layer 2 aggregate interface

About this task

By default, Selected member ports must have the same VLAN permit state and tagging mode as the corresponding Layer 2 aggregate interface. To have the system ignore the permit state and tagging mode of a VLAN when choosing Selected ports, specify the VLAN as an ignored VLAN.

Prerequisites

Make sure the link type of the Layer 2 aggregate interface is hybrid or trunk.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

3.     Specify ignored VLANs.

link-aggregation ignore vlan vlan-id-list

By default, a Layer 2 aggregate interface does not ignore any VLANs.

Configuring load sharing for link aggregation groups

Setting load sharing modes for link aggregation groups

Restrictions and guidelines

The following load sharing modes are not supported on an aggregate interface that contains member ports on the following cards:

 

Card category

Cards

CEPC

CSPC-GE16XP4L-E, CSPC-GE24L-E, CSPC-GP24GE8XP2L-E

CSPEX

CSPEX-1104-E, CSPEX-1204

 

·     Source IP and Layer 1 MPLS label.

·     Source IP and Layer 2 MPLS label.

·     Source IP, Layer 1 MPLS label, and Layer 2 MPLS label.

·     Per-packet.

When load sharing traffic on the following cards , the device always uses the source and destination MAC addresses or port numbers as hash keys in pairs. If you specify one of the hash keys in a pair, the device will use both hash keys in that pair for load sharing.

 

Card category

Cards

CEPC

CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ16L1

CSPEX

CSPEX-1802X, CSPEX-1802XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-1502XA,CSPEX-2612XA

SPE

RX-SPE200-E

 

Setting the global link-aggregation load sharing mode

1.     Enter system view.

system-view

2.     Set the global link-aggregation load sharing mode.

link-aggregation global load-sharing mode { { destination-ip | destination-mac | destination-port | mpls-label1 | mpls-label2 | source-ip | source-mac | source-port } * | per-packet }

By default, fragment packets are load shared based on the source and destination IP addresses, and non-fragment packets are load shared as follows:

¡     Table 6 shows the default link-aggregation load sharing mode for the following cards:

 

Card category

Cards

CEPC

CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX, CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X

SPE

RX-SPE200

 

Table 6 Link-aggregation load sharing mode

Packet type

Default link-aggregation load sharing mode

IP unicast packets

destination-ip, source-ip

IP multicast packets

destination-mac, source-mac

Layer 2 data frames

destination-mac, source-mac

MPLS L3VPN packets

destination-ip, source-ip

MPLS L2VPN packets

·     For IP packets: destination-ip, source-ip

·     For other packets: destination-mac, source-mac

MPLS label switching packets

·     For IP packets: mpls-label1, mpls-label2, destination-ip, source-ip

·     For other packets: mpls-label1, mpls-label2, destination-mac, source-mac

Other packets of MPLS

mpls-label1, mpls-label2

IP tunnel packets

·     For IP packets: destination-ip (inner header), source-ip (inner header)

·     For packets not terminated by MPLS: mpls-label1, mpls-label2

¡     Table 7 shows the default link-aggregation load sharing mode for the folowing cards.

 

Card category

Cards

CEPC

CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ16L1

CSPEX

CSPEX-1802X, CSPEX-1802XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-1502XA, CSPEX-2612XA

SPE

RX-SPE200-E

 

Table 7 Link-aggregation load sharing mode

Packet type

Default link-aggregation load sharing mode

IP unicast packets

destination-ip, source-ip, destination-port, source-port

IP multicast packets

destination-ip, source-ip, destination-port, source-port

Layer 2 data frames

destination-mac, source-mac

MPLS L3VPN packets

destination-ip, source-ip, destination-port, source-port

MPLS L2VPN packets

·     For IP packets: destination-ip, source-ip, destination-port, source-port

·     For other packets: destination-mac, source-mac

MPLS label switching packets

·     For IP packets: mpls-label1, mpls-label2, destination-ip, source-ip, destination-port, source-port

·     For other packets: mpls-label1, mpls-label2, destination-mac, source-mac

Other packets of MPLS

mpls-label1, mpls-label2

IP tunnel packets

·     For IP packets: destination-ip (inner header), destination-port (inner header), source-port

·     For packets not terminated by MPLS: mpls-label1, mpls-label2

 

¡     Table 8 shows the default link-aggregation load sharing mode for the following cards.

 

Card category

Cards

CEPC

CSPC-GE16XP4L-E, CSPC-GE24L-E, CSPC-GP24GE8XP2L-E

CSPEX

CSPEX-1104-E, CSPEX-1204

Table 8 Link-aggregation load sharing mode

Packet type

Default link-aggregation load sharing mode

IP unicast packets

destination-ip, source-ip

IP multicast packets

destination-mac, source-mac

Layer 2 data frames

destination-mac, source-mac

MPLS L3VPN packets

destination-ip, source-ip

MPLS L2VPN packets

·     For IP packets: destination-ip, source-ip

·     For MPLS VPLS packets: destination-mac, source-mac

·     For MPLS L2VPN packets: mpls-label1, mpls-label2

·     For other packets: destination-mac, source-mac

MPLS label switching packets

mpls-label1, mpls-label2

Other packets of MPLS

mpls-label1, mpls-label2

IP tunnel packets

·     For IP packets: destination-ip (inner header), source-ip (inner header)

·     For packets not terminated by MPLS: mpls-label1, mpls-label2

Enabling local-first load sharing for link aggregation

About this task

Use local-first load sharing in a multichassis link aggregation scenario to distribute traffic preferentially across member ports on the ingress slot.

When you aggregate ports on different member devices in an IRF fabric, you can use local-first load sharing to reduce traffic on IRF links, as shown in Figure 6. For more information about IRF, see Virtual Technologies Configuration Guide.

Figure 6 Load sharing for multichassis link aggregation in an IRF fabric

Procedure

1.     Enter system view.

system-view

2.     Enable local-first load sharing for link aggregation.

link-aggregation load-sharing mode local-first

By default, local-first load sharing is enabled.

Configuring link aggregation load sharing algorithm and hash seed settings

About this task

Use the link aggregation load sharing algorithm and hash seed features to optimize traffic distribution on aggregate links when the default load sharing mode is used. Each algorithm represents a CRC calculation method, and the hash seed is used in hashing.

You can use a load sharing algorithm and a hash seed individually or in combination to obtain the optimal load sharing performance.

Restrictions and guidelines

This feature is available only for the following cards:

 

Card category

Cards

CEPC

CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX, CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ16L1

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-1802X, CSPEX-1802XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-1502XA, CSPEX-2612XA

SPE

RX-SPE200, RX-SPE200-E

 

The link aggregation load sharing algorithm and hash seed settings do not take effect on per-packet load sharing.

Procedure

1.     Enter system view.

system-view

2.     Configure a link aggregation load sharing algorithm.

link-aggregation global load-sharing algorithm algorithm-number

The link aggregation capability is not configured.

Enabling link-aggregation traffic redirection

About link-aggregation traffic redirection

This feature operates on dynamic link aggregation groups. It redirects traffic on a Selected port to the remaining available Selected ports of an aggregation group if one of the following events occurs:

·     The port is shut down by using the shutdown command.

·     The slot that hosts the port reboots, but the aggregation group contains Selected ports on other slots.

 

 

NOTE:

The device does not redirect traffic to member ports that become Selected during the traffic redirection process.

 

This feature ensures zero packet loss for known unicast traffic, but does not protect unknown unicast traffic.

Restrictions and guidelines for link-aggregation traffic redirection

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

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

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

As a best practice to ensure the functionality of this feature in a multivendor aggregation environment, do not enable link-aggregation traffic redirection.

Enabling link-aggregation traffic redirection globally

1.     Enter system view.

system-view

2.     Enable link-aggregation traffic redirection globally.

link-aggregation lacp traffic-redirect-notification enable

By default, link-aggregation traffic redirection is disabled globally.

Isolating aggregate interfaces on the device

About this task

Aggregate interface isolation gracefully changes member ports of all dynamic aggregate interfaces to Unselected state. The member ports of the counterpart aggregation groups will also be placed in Unselected state.

Restrictions and guidelines

This feature takes effect only on dynamic aggregate interfaces. It cannot isolate static aggregate interfaces.

Procedure

1.     Enter system view.

system-view

2.     Isolate aggregate interfaces.

link-aggregation lacp isolate

By default, aggregate interfaces are not isolated.

To remove DR interface isolation, execute the undo form of this command.

Enabling BFD for an aggregation group

About this task

You can use BFD to monitor member link status in an aggregation group. After you enable BFD on an aggregate interface, each Selected port in the aggregation group establishes a BFD session with its peer port. BFD operates differently depending on the aggregation mode.

·     BFD on a static aggregation—When BFD detects a link failure, BFD notifies the Ethernet link aggregation module that the peer port is unreachable. The local port is then placed in Unselected state. However, the BFD session between the local and peer ports remains, and the local port keeps sending BFD packets. When BFD on the local port receives packets from the peer port upon link recovery, BFD notifies the Ethernet link aggregation module that the peer port is reachable. Then, the local port is placed in Selected state again. This mechanism ensures that the local and peer ports of a static aggregate link have the same aggregation state.

·     BFD on a dynamic aggregation—When BFD detects a link failure, BFD notifies the Ethernet link aggregation module that the peer port is unreachable. At the same time, BFD clears the session and stops sending BFD packets. When the local port is placed in Selected state again upon link recovery, the local port establishes a new session with the peer port and BFD notifies the Ethernet link aggregation module that the peer port is reachable. Because BFD provides fast failure detection, the local and peer systems of a dynamic aggregate link can negotiate the aggregation state of their member ports faster.

For more information about BFD, see High Availability Configuration Guide.

For BFD to operate correctly on an aggregate link whose remote end is a third-party device that implements BFD differently from the device, enable If BFD compatible mode. With BFD compatible mode enabled, all member ports in an aggregation group establish BFD sessions with their peer ports. The BFD sessions are not deleted or re-established when the aggregation states of the member ports change.

Restrictions and guidelines

When you enable BFD for an aggregation group, follow these restrictions and guidelines:

·     Make sure the source and destination IP addresses are reversed between 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 at the local end, execute link-aggregation bfd ipv4 source 2.2.2.2 destination 1.1.1.1 at the peer end. The source and destination IP addresses cannot be the same.

·     The BFD parameters configured on an aggregate interface take effect on all BFD sessions established by the member ports in its aggregation group. BFD sessions for link aggregation do not support the echo packet mode or the Demand mode.

·     As a best practice, do not configure BFD for any protocols on a BFD-enabled aggregate interface.

·     Make sure the number of member ports in a BFD-enabled aggregation group is less than or identical to the number of BFD sessions supported by the device. If the aggregation group contains more member ports than the supported sessions, some Selected ports might change to the Unselected state.

·     If the maximum number of Selected ports is inconsistent between the two ends of an aggregate link, do not enable BFD on these two ends. Otherwise, the number of BFD sessions might differ between the two ends of the aggregate link.

·     If both IPv4 and IPv6 BFD sessions exist on an aggregate interface, the device places the aggregation member ports in Unselected state when either IPv4 or IPv6 BFD detects a link failure.

This feature is available only for the following cards:

 

Card category

Cards

CEPC

CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX, CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ16L1

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-1802X, CSPEX-1802XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-1502XA,CSPEX-2612XA

SPE

RX-SPE200, RX-SPE200-E

 

Procedure

1.     Enter system view.

system-view

2.     Enter aggregate interface view.

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Enable BFD compatible mode.

link-aggregation bfd-compatible enable

By default, BFD compatible mode is disabled on aggregate interfaces.

Perform this step if the remote aggregation system is a third-party device that implements BFD differently from the local end.

4.     Enable BFD.

link-aggregation bfd { ipv4 | ipv6 } source { ipv4-address | ipv6-address } destination { ipv4-address | ipv6-address }

By default, BFD is disabled for an aggregation group.

Display and maintenance commands for Ethernet link aggregation

Execute display commands in any view and reset commands in user view.

 

Task

Command

Display information about aggregate interfaces.

display interface [ { bridge-aggregation | route-aggregation | vagg-bridge-port } [ interface-number ] ] [ brief [ description | down ] ]

Display the local system ID.

display lacp system-id

Display the global link-aggregation load sharing modes.

display link-aggregation load-sharing mode

Display detailed link aggregation information about link aggregation member ports.

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

Display summary information about all aggregation groups.

display link-aggregation summary

Display the aggregation states of aggregation member ports and the reason why a port was placed in Unselected state.

display link-aggregation troubleshooting [ { bridge-aggregation | route-aggregation } [ interface-number ] ]

Display detailed information about the specified aggregation groups.

display link-aggregation verbose [ { bridge-aggregation | route-aggregation } [ interface-number ] ] [ all-configuration ]

Clear statistics for the specified aggregate interfaces.

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

Clear LACP statistics for the specified link aggregation member ports.

reset lacp statistics [ interface interface-list ]

 

Ethernet link aggregation configuration examples

Example: Configuring a Layer 2 static aggregation group

Network configuration

On the network shown in Figure 7, perform the following tasks:

·     Configure a Layer 2 static aggregation group on both Device A and Device B.

·     Enable VLAN 10 at one end of the aggregate link to communicate with VLAN 10 at the other end.

·     Enable VLAN 20 at one end of the aggregate link to communicate with VLAN 20 at the other end.

Figure 7 Network diagram

Procedure

1.     Configure Device A:

# Create VLAN 10, and assign port Ten-GigabitEthernet 3/1/4 to VLAN 10.

<DeviceA> system-view

[DeviceA] vlan 10

[DeviceA-vlan10] port ten-gigabitethernet 3/1/4

[DeviceA-vlan10] quit

# Create VLAN 20, and assign port Ten-GigabitEthernet 3/1/5 to VLAN 20.

[DeviceA] vlan 20

[DeviceA-vlan20] port ten-gigabitethernet 3/1/5

[DeviceA-vlan20] quit

# Create Layer 2 aggregate interface Bridge-Aggregation 1.

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] quit

# Assign ports Ten-GigabitEthernet 3/1/1 through Ten-GigabitEthernet 3/1/3 to link aggregation group 1.

[DeviceA] interface ten-gigabitethernet 3/1/1

[DeviceA-Ten-GigabitEthernet3/1/1] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/1] quit

[DeviceA] interface ten-gigabitethernet 3/1/2

[DeviceA-Ten-GigabitEthernet3/1/2] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/2] quit

[DeviceA] interface ten-gigabitethernet 3/1/3

[DeviceA-Ten-GigabitEthernet3/1/3] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/3] quit

# Configure Layer 2 aggregate interface Bridge-Aggregation 1 as a trunk port and assign it to VLANs 10 and 20.

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] port link-type trunk

[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20

[DeviceA-Bridge-Aggregation1] quit

2.     Configure Device B in the same way Device A is configured. (Details not shown.)

Verifying the configuration

# Display detailed information about all aggregation groups on Device A.

[DeviceA] display link-aggregation verbose

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

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

Port: A -- Auto

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

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

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Bridge-Aggregation1

Aggregation Mode: Static

Loadsharing Type: Shar

  Port             Status  Priority Oper-Key

  XGE3/1/1         S       32768    1

  XGE3/1/2         S       32768    1

  XGE3/1/3         S       32768    1

The output shows that link aggregation group 1 is a Layer 2 static aggregation group that contains three Selected ports.

Example: Configuring a Layer 2 dynamic aggregation group

Network configuration

On the network shown in Figure 8, perform the following tasks:

·     Configure a Layer 2 dynamic aggregation group on both Device A and Device B.

·     Enable VLAN 10 at one end of the aggregate link to communicate with VLAN 10 at the other end.

·     Enable VLAN 20 at one end of the aggregate link to communicate with VLAN 20 at the other end.

Figure 8 Network diagram

Procedure

1.     Configure Device A:

# Create VLAN 10, and assign the port Ten-GigabitEthernet 3/1/4 to VLAN 10.

<DeviceA> system-view

[DeviceA] vlan 10

[DeviceA-vlan10] port ten-gigabitethernet 3/1/4

[DeviceA-vlan10] quit

# Create VLAN 20, and assign the port Ten-GigabitEthernet 3/1/5 to VLAN 20.

[DeviceA] vlan 20

[DeviceA-vlan20] port ten-gigabitethernet 3/1/5

[DeviceA-vlan20] quit

# Create Layer 2 aggregate interface Bridge-Aggregation 1, and set the link aggregation mode to dynamic.

[DeviceA] interface bridge-aggregation 1

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

[DeviceA-Bridge-Aggregation1] quit

# Assign ports Ten-GigabitEthernet 3/1/1 through Ten-GigabitEthernet 3/1/3 to link aggregation group 1.

[DeviceA] interface ten-gigabitethernet 3/1/1

[DeviceA-Ten-GigabitEthernet3/1/1] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/1] quit

[DeviceA] interface ten-gigabitethernet 3/1/2

[DeviceA-Ten-GigabitEthernet3/1/2] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/2] quit

[DeviceA] interface ten-gigabitethernet 3/1/3

[DeviceA-Ten-GigabitEthernet3/1/3] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/3] quit

# Configure Layer 2 aggregate interface Bridge-Aggregation 1 as a trunk port and assign it to VLANs 10 and 20.

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] port link-type trunk

[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20

[DeviceA-Bridge-Aggregation1] quit

2.     Configure Device B in the same way Device A is configured. (Details not shown.)

Verifying the configuration

# Display detailed information about all aggregation groups on Device A.

[DeviceA] display link-aggregation verbose

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

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

Port: A -- Auto

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

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

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Bridge-Aggregation1

Aggregation Mode: Dynamic

Loadsharing Type: Shar

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

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  XGE3/1/1            S        32768    11       1                      {ACDEF}

  XGE3/1/2            S        32768    12       1                      {ACDEF}

  XGE3/1/3            S        32768    13       1                      {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  XGE3/1/1            32768    81       1        0x8000, 000f-e267-57ad {ACDEF}

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

  XGE3/1/3            32768    83       1        0x8000, 000f-e267-57ad {ACDEF}

The output shows that link aggregation group 1 is a Layer 2 dynamic aggregation group that contains three Selected ports.

Example: Configuring a Layer 2 edge aggregate interface

Network configuration

As shown in Figure 9, a Layer 2 dynamic aggregation group is configured on the device. The server is not configured with dynamic link aggregation.

Configure an edge aggregate interface so that both Ten-GigabitEthernet 3/1/1 and Ten-GigabitEthernet 3/1/2 can forward traffic to improve link reliability.

Figure 9 Network diagram

Procedure

# Create Layer 2 aggregate interface Bridge-Aggregation 1, and set the link aggregation mode to dynamic.

<Device> system-view

[Device] interface bridge-aggregation 1

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

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

[Device-Bridge-Aggregation1] lacp edge-port

[Device-Bridge-Aggregation1] quit

# Assign ports Ten-GigabitEthernet 3/1/1 and Ten-GigabitEthernet 3/1/2 to link aggregation group 1.

[Device] interface ten-gigabitethernet 3/1/1

[Device-Ten-GigabitEthernet3/1/1] port link-aggregation group 1

[Device-Ten-GigabitEthernet3/1/1] quit

[Device] interface ten-gigabitethernet 3/1/2

[Device-Ten-GigabitEthernet3/1/2] port link-aggregation group 1

[Device-Ten-GigabitEthernet3/1/2] quit

Verifying the configuration

# Display detailed information about all aggregation groups on the device when the server is not configured with dynamic link aggregation.

[Device] display link-aggregation verbose

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

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

Port: A -- Auto

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

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

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Bridge-Aggregation1

Aggregation Mode: Dynamic

Loadsharing Type: Shar

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

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  XGE3/1/1            I        32768    11       1                      {AG}

  XGE3/1/2            I        32768    12       1                      {AG}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  XGE3/1/1            32768    81       0        0x8000, 0000-0000-0000 {DEF}

  XGE3/1/2            32768    82       0        0x8000, 0000-0000-0000 {DEF}

The output shows that Ten-GigabitEthernet 3/1/1 and Ten-GigabitEthernet 3/1/2 are in Individual state when they do not receive LACPDUs from the server. Both Ten-GigabitEthernet 3/1/1 and Ten-GigabitEthernet 3/1/2 can forward traffic. When one port fails, its traffic is automatically switched to the other port.

Example: Configuring a Layer 3 static aggregation group

Network configuration

On the network shown in Figure 10, perform the following tasks:

·     Configure a Layer 3 static aggregation group on both Device A and Device B.

·     Configure IP addresses and subnet masks for the corresponding Layer 3 aggregate interfaces.

Figure 10 Network diagram

Procedure

1.     Configure Device A:

# Create Layer 3 aggregate interface Route-Aggregation 1, and configure an IP address and subnet mask for the aggregate interface.

<DeviceA> system-view

[DeviceA] interface route-aggregation 1

[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24

[DeviceA-Route-Aggregation1] quit

# Assign Layer 3 Ethernet interfaces Ten-GigabitEthernet 3/1/1 through Ten-GigabitEthernet 3/1/3 to aggregation group 1.

[DeviceA] interface ten-gigabitethernet 3/1/1

[DeviceA-Ten-GigabitEthernet3/1/1] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/1] quit

[DeviceA] interface ten-gigabitethernet 3/1/2

[DeviceA-Ten-GigabitEthernet3/1/2] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/2] quit

[DeviceA] interface ten-gigabitethernet 3/1/3

[DeviceA-Ten-GigabitEthernet3/1/3] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/3] quit

2.     Configure Device B in the same way Device A is configured. (Details not shown.)

Verifying the configuration

# Display detailed information about all aggregation groups on Device A.

[DeviceA] display link-aggregation verbose

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

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

Port: A -- Auto

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

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

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Route-Aggregation1

Aggregation Mode: Static

Loadsharing Type: Shar

  Port             Status  Priority Oper-Key

  XGE3/1/1         S       32768    1

  XGE3/1/2         S       32768    1

  XGE3/1/3         S       32768    1

The output shows that link aggregation group 1 is a Layer 3 static aggregation group that contains three Selected ports.

Example: Configuring a Layer 3 dynamic aggregation group

Network configuration

On the network shown in Figure 11, perform the following tasks:

·     Configure a Layer 3 dynamic aggregation group on both Device A and Device B.

·     Configure IP addresses and subnet masks for the corresponding Layer 3 aggregate interfaces.

Figure 11 Network diagram

Procedure

1.     Configure Device A:

# Create Layer 3 aggregate interface Route-Aggregation 1.

<DeviceA> system-view

[DeviceA] interface route-aggregation 1

# Set the link aggregation mode to dynamic.

[DeviceA-Route-Aggregation1] link-aggregation mode dynamic

# Configure an IP address and subnet mask for Route-Aggregation 1.

[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24

[DeviceA-Route-Aggregation1] quit

# Assign Layer 3 Ethernet interfaces Ten-GigabitEthernet 3/1/1 through Ten-GigabitEthernet 3/1/3 to aggregation group 1.

[DeviceA] interface ten-gigabitethernet 3/1/1

[DeviceA-Ten-GigabitEthernet3/1/1] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/1] quit

[DeviceA] interface ten-gigabitethernet 3/1/2

[DeviceA-Ten-GigabitEthernet3/1/2] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/2] quit

[DeviceA] interface ten-gigabitethernet 3/1/3

[DeviceA-Ten-GigabitEthernet3/1/3] port link-aggregation group 1

[DeviceA-Ten-GigabitEthernet3/1/3] quit

2.     Configure Device B in the same way Device A is configured. (Details not shown.)

Verifying the configuration

# Display detailed information about all aggregation groups on Device A.

[DeviceA] display link-aggregation verbose

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

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

Port: A -- Auto

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

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

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Route-Aggregation1

Aggregation Mode: Dynamic

Loadsharing Type: Shar

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

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  XGE3/1/1            S        32768    11       1                      {ACDEF}

  XGE3/1/2            S        32768    12       1                      {ACDEF}

  XGE3/1/3            S        32768    13       1                      {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  XGE3/1/1            32768    81       1        0x8000, 000f-e267-57ad {ACDEF}

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

  XGE3/1/3            32768    83       1        0x8000, 000f-e267-57ad {ACDEF}

The output shows that link aggregation group 1 is a Layer 3 dynamic aggregation group that contains three Selected ports.

Example: Configuring S-MLAG

Network configuration

Device B, Device C, and Device D are standalone devices. As shown in Figure 12, configure Device B, Device C, and Device D as S-MLAG devices to establish a multichassis aggregate link with Device A.

Figure 12 Network diagram

Procedure

1.     Configure Device A:

# Create Layer 2 aggregate interface Bridge-Aggregation 10, and set the link aggregation mode to dynamic.

<DeviceA> system-view

[DeviceA] interface bridge-aggregation 10

[DeviceA-Bridge-Aggregation10] link-aggregation mode dynamic

[DeviceA-Bridge-Aggregation10] quit

# Assign Ten-GigabitEthernet 3/1/1 through Ten-GigabitEthernet 3/1/3 to aggregation group 10.

[DeviceA] interface ten-gigabitethernet 3/1/1

[DeviceA-Ten-GigabitEthernet3/1/1] port link-aggregation group 10

[DeviceA-Ten-GigabitEthernet3/1/1] quit

[DeviceA] interface ten-gigabitethernet 3/1/2

[DeviceA-Ten-GigabitEthernet3/1/2] port link-aggregation group 10

[DeviceA-Ten-GigabitEthernet3/1/2] quit

[DeviceA] interface ten-gigabitethernet 3/1/3

[DeviceA-Ten-GigabitEthernet3/1/3] port link-aggregation group 10

[DeviceA-Ten-GigabitEthernet3/1/3] quit

2.     Configure Device B:

# Set the LACP system MAC address to 0001-0001-0001.

<DeviceB> system-view

[DeviceB] lacp system-mac 1-1-1

# Set the LACP system priority to 123.

[DeviceB] lacp system-priority 123

# Set the LACP system number to 1.

[DeviceB] lacp system-number 1

# Create Layer 2 aggregate interface Bridge-Aggregation 2, and set the link aggregation mode to dynamic.

[DeviceB] interface bridge-aggregation 2

[DeviceB-Bridge-Aggregation2] link-aggregation mode dynamic

# Assign Bridge-Aggregation 2 to S-MLAG group 100.

[DeviceB-Bridge-Aggregation2] port s-mlag group 100

# Assign Ten-GigabitEthernet 3/1/1 to aggregation group 2.

[DeviceB] interface ten-gigabitethernet 3/1/1

[DeviceB-Ten-GigabitEthernet3/1/1] port link-aggregation group 2

[DeviceB-Ten-GigabitEthernet3/1/1] quit

3.     Configure Device C:

# Set the LACP system MAC address to 0001-0001-0001.

<DeviceC> system-view

[DeviceC] lacp system-mac 1-1-1

# Set the LACP system priority to 123.

[DeviceC] lacp system-priority 123

# Set the LACP system number to 2.

[DeviceC] lacp system-number 2

# Create Layer 2 aggregate interface Bridge-Aggregation 3, and set the link aggregation mode to dynamic.

[DeviceC] interface bridge-aggregation 3

[DeviceC-Bridge-Aggregation3] link-aggregation mode dynamic

# Assign Bridge-Aggregation 3 to S-MLAG group 100.

[DeviceC-Bridge-Aggregation3] port s-mlag group 100

# Assign Ten-GigabitEthernet 3/1/1 to aggregation group 3.

[DeviceC] interface ten-gigabitethernet 3/1/1

[DeviceC-Ten-GigabitEthernet3/1/1] port link-aggregation group 3

[DeviceC-Ten-GigabitEthernet3/1/1] quit

4.     Configure Device D:

# Set the LACP system MAC address to 0001-0001-0001.

<DeviceD> system-view

[DeviceD] lacp system-mac 1-1-1

# Set the LACP system priority to 123.

[DeviceD] lacp system-priority 123

# Set the LACP system number to 3.

[DeviceD] lacp system-number 3

# Create Layer 2 aggregate interface Bridge-Aggregation 4, and set the link aggregation mode to dynamic.

[DeviceD] interface bridge-aggregation 4

[DeviceD-Bridge-Aggregation4] link-aggregation mode dynamic

# Assign Bridge-Aggregation 4 to S-MLAG group 100.

[DeviceD-Bridge-Aggregation4] port s-mlag group 100

# Assign Ten-GigabitEthernet 3/1/1 to aggregation group 4.

[DeviceD] interface ten-gigabitethernet 3/1/1

[DeviceD-Ten-GigabitEthernet3/1/1] port link-aggregation group 4

[DeviceD-Ten-GigabitEthernet3/1/1] quit

Verifying the configuration

# Verify that Ten-GigabitEthernet 3/1/1 through Ten-GigabitEthernet 3/1/3 on Device A are Selected ports.

[DeviceA] display link-aggregation verbose

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

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

Port: A -- Auto

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

System ID: 0x8000, 40fa-264f-0100

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  XGE3/1/1            S        32768    1        1                      {ACDEF}

  XGE3/1/2            S        32768    2        1                      {ACDEF}

  XGE3/1/3            S        32768    3        1                      {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  XGE3/1/1            32768    16385    50100    0x7b  , 0001-0001-0001 {ACDEF}

  XGE3/1/2            32768    32769    50100    0x7b  , 0001-0001-0001 {ACDEF}

  XGE3/1/3            32768    49153    50100    0x7b  , 0001-0001-0001 {ACDEF}

  • 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 Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网