- Table of Contents
-
- 04-Layer 2 - LAN Switching
- 00-Preface
- 01-MAC address table configuration
- 02-Ethernet link aggregation configuration
- 03-VLAN configuration
- 04-Loop detection configuration
- 05-Spanning tree configuration
- 06-LLDP configuration
- 07-Layer 2 forwarding configuration
- 08-VLAN termination configuration
- 09-Port isolation configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
02-Ethernet link aggregation configuration | 265.07 KB |
Contents
Configuring Ethernet link aggregation
Aggregation group, member port, and aggregate interface
Aggregation states of member ports in an aggregation group
How static link aggregation works
How dynamic link aggregation works
Load sharing modes for link aggregation groups
Ethernet link aggregation configuration task list
Configuring a Layer 2 aggregation group
Configuration restrictions and guidelines
Configuring a Layer 2 static aggregation group
Configuring a Layer 2 dynamic aggregation group
Configuring an aggregate interface
Setting the description for an aggregate interface
Setting the minimum and maximum numbers of Selected ports for an aggregation group
Setting the expected bandwidth for an aggregate interface
Shutting down an aggregate interface
Restoring the default settings for an aggregate interface
Configuring load sharing for link aggregation groups
Setting load sharing modes for link aggregation groups
Enabling local-first load sharing for link aggregation
Enabling link-aggregation traffic redirection
Configuration restrictions and guidelines
Displaying and maintaining Ethernet link aggregation
Ethernet link aggregation configuration examples
Layer 2 static aggregation configuration example
Configuring Ethernet link aggregation
Overview
Ethernet link aggregation bundles multiple physical Ethernet links into one logical link called an aggregate link.
Link aggregation has the following benefits:
· Increased bandwidth beyond the limits of any single 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.
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 previously transmitted on the failed link is switched to the other two links.
Figure 1 Ethernet link aggregation diagram
Aggregation group, member port, and aggregate interface
An aggregation group is a group of Ethernet interfaces bundled together. These Ethernet interfaces are called member ports of the aggregation group. Each aggregation group has a corresponding logical interface (called an aggregate interface).
When an aggregate interface is created, the device automatically creates an aggregation group of the same type and number as the aggregate interface.
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.
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 configurations include attribute configurations and protocol configurations. Attribute configurations of a link aggregation member port affect its aggregation state.
· Attribute configurations—To become a Selected port, a member port must have the same attribute configurations as the aggregate interface.
The attribute configurations contain the following VLAN attribute configurations:
¡ Permitted VLAN IDs.
¡ PVID.
¡ Link type (trunk, hybrid, or access).
For information about VLANs, see "Configuring VLANs."
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 the member 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.
· Protocol configurations—Settings that do not affect the aggregation state of a member port even if they are different from those on the aggregate interface. MAC address learning settings are examples of protocol configurations.
For an aggregation, only the protocol configurations on the aggregate interface take effect. The protocol configurations on the member ports will not take effect until after the ports leave the aggregation group.
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. 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
Choosing a reference port
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
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. Basic LACP functions are implemented through the basic LACPDU fields, including the system LACP priority, system MAC address, port priority, port number, and operational key.
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 1. The smaller the priority value, the higher the priority.
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 within the LACP timeout interval, 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 preferably chooses full-duplex ports as the Selected ports. The group chooses only one half-duplex port as a Selected port when either of the following conditions exist:
¡ None of the full-duplex ports can become Selected ports.
¡ Only half-duplex ports exist in the group.
· 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.
Load sharing modes for link aggregation groups
In a link aggregation group, traffic can be load shared across the Selected ports on a per-flow basis. The aggregation group classifies packets into flows and forwards packets of the same flow on the same link. The load sharing mode can be one or any combination of the following traffic classification criteria:
· Source or destination IP address.
· Source or destination MAC address.
Ethernet link aggregation configuration task list
Tasks at a glance |
(Required.) Configuring a Layer 2 aggregation group |
(Optional.) Configuring an aggregate interface: · Setting the description for an aggregate interface · Setting the minimum and maximum numbers of Selected ports for an aggregation group · Setting the expected bandwidth for an aggregate interface |
(Optional.) Configuring load sharing for link aggregation groups: |
Configuring a Layer 2 aggregation group
This section explains how to configure an aggregation group.
Configuration restrictions and guidelines
When you configure an aggregation group, follow these restrictions and guidelines:
· Table 2 shows the interfaces that cannot be assigned to a Layer 2 aggregation group.
Table 2 Interfaces that cannot be assigned to a Layer 2 aggregation group
Interface type |
Reference |
Interface configured with MAC authentication |
MAC authentication in Security Configuration Guide |
Interface configured with port security |
Port security in Security Configuration Guide |
Interface configured with 802.1X |
802.1X in Security Configuration Guide |
· Deleting an aggregate interface also deletes its aggregation group and causes all member ports to leave the aggregation group.
· You must configure the same aggregation mode on 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 static aggregation group
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
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. |
3. Exit to system view. |
quit |
N/A |
4. Assign an interface to the specified Layer 2 aggregation group. |
a Enter Layer 2 Ethernet interface view: b Assign the interface to the specified
Layer 2 aggregation group: |
Repeat these two substeps to assign more Layer 2 Ethernet interfaces to the aggregation group. |
Configuring a Layer 2 dynamic aggregation group
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Set the system LACP priority. |
lacp system-priority system-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. |
4. Configure the aggregation group to operate in dynamic mode. |
link-aggregation mode dynamic |
By default, an aggregation group operates in static mode. |
5. Exit to system view. |
quit |
N/A |
6. Assign an interface to the specified Layer 2 aggregation group. |
a Enter Layer 2 Ethernet interface view: b Assign the interface to the specified
Layer 2 aggregation group: |
Repeat these two substeps to assign more Layer 2 Ethernet interfaces to the aggregation group. |
7. Set the LACP operating mode for the interface. |
· Set the LACP operating
mode to passive: · Set the LACP
operating mode to active: |
By default, LACP is operating in active mode. |
8. Set the port priority for the interface. |
link-aggregation port-priority port-priority |
The default setting is 32768. |
9. 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 an aggregate interface
Most configurations that can be made on Layer 2 Ethernet interfaces can also be made on Layer 2 aggregate interfaces.
Setting the description for an aggregate interface
You can set the description for an aggregate interface for administration purposes, for example, describing the purpose of the interface.
To set the description for an aggregate interface:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter Layer 2 aggregate interface view. |
interface bridge-aggregation interface-number |
N/A |
3. Set the description for the aggregate interface or subinterface. |
description text |
By default, the description of an interface is interface-name Interface. |
Setting the minimum and maximum numbers of Selected ports for an aggregation group
IMPORTANT: The minimum and maximum numbers of Selected ports must be the same for the local and peer aggregation groups. |
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.
To set the minimum and maximum numbers of Selected ports for an aggregation group:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter Layer 2 aggregate interface view. |
interface bridge-aggregation interface-number |
N/A |
3. Set the minimum number of Selected ports for the aggregation group. |
link-aggregation selected-port minimum 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 number |
By default, the maximum number of Selected ports for an aggregation group depends on hardware limitation. |
Setting the expected bandwidth for an aggregate interface
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter Layer 2 aggregate interface view. |
interface bridge-aggregation interface-number |
N/A |
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. |
Shutting down an aggregate interface
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 Selected ports in the corresponding aggregation group become Unselected ports and all member ports go down.
· When an aggregate interface is brought up, the aggregation states of member ports in the corresponding aggregation group are recalculated.
To shut down an aggregate interface:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter Layer 2 aggregate interface view. |
interface bridge-aggregation interface-number |
N/A |
3. Shut down the aggregate interface. |
shutdown |
By default, a Layer 2 aggregate interface is up. |
Restoring the default settings for an aggregate interface
You can restore all configurations on an aggregate interface to the default settings.
To restore the default settings for an aggregate interface:
Step |
Command |
1. Enter system view. |
system-view |
2. Enter Layer 2 aggregate interface view. |
interface bridge-aggregation interface-number |
3. Restore the default settings for the aggregate interface. |
default |
Configuring load sharing for link aggregation groups
This section explains how to configure the load sharing modes for link aggregation groups and how to enable local-first load sharing for link aggregation.
Setting load sharing modes for link aggregation groups
You can set the global or group-specific load sharing mode. A link aggregation group preferentially uses the group-specific load sharing mode. If the group-specific load sharing mode is not available, the group uses the global load sharing mode.
Setting the global link-aggregation load sharing mode
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Set the global link-aggregation load sharing mode. |
link-aggregation global load-sharing mode { destination-ip | destination-mac | source-ip | source-mac } * |
The default for this command varies by device model. |
Setting the group-specific load sharing mode
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter Layer 2 aggregate interface view. |
interface bridge-aggregation interface-number |
N/A |
3. Set the load sharing mode for the aggregation group. |
link-aggregation load-sharing mode { destination-ip | destination-mac | source-ip | source-mac } * |
The default for this command varies by device model. |
Enabling local-first load sharing for link aggregation
The following matrix shows the feature and hardware compatibility:
Hardware series |
Model |
Local-first load sharing compatibility |
WX1800H |
WX1804H WX1810H WX1820H |
No |
WX2500H series |
WX2510H WX2540H WX2560H |
No |
WX3000H series |
WX3010H WX3010H-L WX3010H-X WX3024H WX3024H-L |
No |
WX3500H series |
WX3508H WX3510H WX3520H WX3540H |
Yes |
WX5500E series |
WX5510E WX5540E |
Yes |
WX5500H series |
WX5540H WX5560H WX5580H |
Yes |
Access controller modules |
EWPXM1MAC0F EWPXM1WCME0 EWPXM2WCMD0F LSQM1WCMX20 LSQM1WCMX40 LSUM1WCME0 LSUM1WCMX20RT LSUM1WCMX40RT |
Yes |
Use local-first load sharing in a multidevice link aggregation scenario to distribute traffic preferentially across member ports on the ingress card or device.
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 4. For more information about IRF, see IRF Configuration Guide.
Figure 4 Load sharing for multidevice link aggregation in an IRF fabric
To enable local-first load sharing for link aggregation:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enable local-first load sharing for link aggregation. |
link-aggregation load-sharing mode local-first |
By default, local-first load sharing for link aggregation is enabled. |
Enabling link-aggregation traffic redirection
Link-aggregation traffic redirection prevents traffic interruption.
When you restart an IRF member device that contains Selected ports, this feature redirects traffic of the IRF member device to other IRF member devices.
Configuration restrictions and guidelines
When you enable link-aggregation traffic redirection, follow these restrictions and guidelines:
· Link-aggregation traffic redirection applies only to dynamic link aggregation groups.
· To prevent traffic interruption, enable link-aggregation traffic redirection on devices at both ends of the aggregate link.
Configuration procedure
To enable link-aggregation traffic redirection:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enable link-aggregation traffic redirection. |
link-aggregation lacp traffic-redirect-notification enable |
By default, link-aggregation traffic redirection is disabled. |
Displaying and maintaining Ethernet link aggregation
Execute display commands in any view and reset commands in user view.
Task |
Command |
Display information for an aggregate interface or multiple aggregate interfaces. |
display interface bridge-aggregation [ interface-number ] [ brief [ description | down ] ] |
Display the local system ID. |
display lacp system-id |
Display the global or group-specific link-aggregation load sharing modes. |
display link-aggregation load-sharing mode [ interface [ bridge-aggregation interface-number ] ] |
Display detailed link aggregation information for link aggregation member ports. |
display link-aggregation member-port [ interface-list ] |
Display summary information about all aggregation groups. |
display link-aggregation summary |
Display detailed information about the specified aggregation groups. |
display link-aggregation verbose [ bridge-aggregation [ interface-number ] ] |
Clear LACP statistics for the specified link aggregation member ports. |
reset lacp statistics [ interface interface-list ] |
Clear statistics for the specified aggregate interfaces. |
reset counters interface [ bridge-aggregation [ interface-number ] ] |
Ethernet link aggregation configuration examples
Layer 2 static aggregation configuration example
Network requirements
On the network shown in Figure 5, perform the following tasks:
· Configure a Layer 2 static aggregation group on both AC 1 and AC 2.
· 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.
Configuration procedure
1. Configure AC 1:
# Create VLAN 10, and assign port GigabitEthernet 1/0/4 to VLAN 10.
<AC1> system-view
[AC1] vlan 10
[AC1-vlan10] port gigabitethernet 1/0/4
[AC1-vlan10] quit
# Create VLAN 20, and assign port GigabitEthernet 1/0/5 to VLAN 20.
[AC1] vlan 20
[AC1-vlan20] port gigabitethernet 1/0/5
[AC1-vlan20] quit
# Create Layer 2 aggregate interface Bridge-Aggregation 1.
[AC1] interface bridge-aggregation 1
[AC1-Bridge-Aggregation1] quit
# Assign ports GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to link aggregation group 1.
[AC1] interface gigabitethernet 1/0/1
[AC1-GigabitEthernet1/0/1] port link-aggregation group 1
[AC1-GigabitEthernet1/0/1] quit
[AC1] interface gigabitethernet 1/0/2
[AC1-GigabitEthernet1/0/2] port link-aggregation group 1
[AC1-GigabitEthernet1/0/2] quit
[AC1] interface gigabitethernet 1/0/3
[AC1-GigabitEthernet1/0/3] port link-aggregation group 1
[AC1-GigabitEthernet1/0/3] quit
# Configure Layer 2 aggregate interface Bridge-Aggregation 1 as a trunk port and assign it to VLANs 10 and 20.
[AC1] interface bridge-aggregation 1
[AC1-Bridge-Aggregation1] port link-type trunk
[AC1-Bridge-Aggregation1] port trunk permit vlan 10 20
[AC1-Bridge-Aggregation1] quit
2. Configure AC 2 in the same way AC 1 is configured. (Details not shown.)
Verifying the configuration
# Display detailed information about all aggregation groups on AC 1.
[AC1] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
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
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1
GE1/0/2 S 32768 1
GE1/0/3 S 32768 1
The output shows that link aggregation group 1 is a Layer 2 static aggregation group that contains three Selected ports.
Layer 2 dynamic aggregation configuration example
Network requirements
On the network shown in Figure 6, perform the following tasks:
· Configure a Layer 2 dynamic aggregation group on both AC 1 and AC 2.
· 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.
Configuration procedure
1. Configure AC 1:
# Create VLAN 10, and assign the port GigabitEthernet 1/0/4 to VLAN 10.
<AC1> system-view
[AC1] vlan 10
[AC1-vlan10] port gigabitethernet 1/0/4
[AC1-vlan10] quit
# Create VLAN 20, and assign the port GigabitEthernet 1/0/5 to VLAN 20.
[AC1] vlan 20
[AC1-vlan20] port gigabitethernet 1/0/5
[AC1-vlan20] quit
# Create Layer 2 aggregate interface Bridge-Aggregation 1, and set the link aggregation mode to dynamic.
[AC1] interface bridge-aggregation 1
[AC1-Bridge-Aggregation1] link-aggregation mode dynamic
[AC1-Bridge-Aggregation1] quit
# Assign ports GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to link aggregation group 1.
[AC1] interface gigabitethernet 1/0/1
[AC1-GigabitEthernet1/0/1] port link-aggregation group 1
[AC1-GigabitEthernet1/0/1] quit
[AC1] interface gigabitethernet 1/0/2
[AC1-GigabitEthernet1/0/2] port link-aggregation group 1
[AC1-GigabitEthernet1/0/2] quit
[AC1] interface gigabitethernet 1/0/3
[AC1-GigabitEthernet1/0/3] port link-aggregation group 1
[AC1-GigabitEthernet1/0/3] quit
# Configure Layer 2 aggregate interface Bridge-Aggregation 1 as a trunk port and assign it to VLANs 10 and 20.
[AC1] interface bridge-aggregation 1
[AC1-Bridge-Aggregation1] port link-type trunk
[AC1-Bridge-Aggregation1] port trunk permit vlan 10 20
[AC1-Bridge-Aggregation1] quit
2. Configure AC 2 in the same way AC 1 is configured. (Details not shown.)
Verifying the configuration
# Display detailed information about all aggregation groups on AC 1.
[AC1] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
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 Oper-Key Flag
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1 {ACDEF}
GE1/0/2 S 32768 1 {ACDEF}
GE1/0/3 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
GE1/0/1 1 32768 1 0x8000, 000f-e267-57ad {ACDEF}
GE1/0/2 2 32768 1 0x8000, 000f-e267-57ad {ACDEF}
GE1/0/3 3 32768 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.
Layer 2 aggregation load sharing configuration example
Network requirements
On the network shown in Figure 7, perform the following tasks:
· Configure Layer 2 static aggregation groups 1 and 2 on AC 1 and AC 2, respectively.
· 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.
· Configure link aggregation groups 1 and 2 to load share traffic across aggregation group member ports.
¡ Configure link aggregation group 1 to load share packets based on source MAC addresses.
¡ Configure link aggregation group 2 to load share packets based on destination MAC addresses.
Configuration procedure
1. Configure AC 1:
# Create VLAN 10, and assign the port GigabitEthernet 1/0/5 to VLAN 10.
<AC1> system-view
[AC1] vlan 10
[AC1-vlan10] port gigabitethernet 1/0/5
[AC1-vlan10] quit
# Create VLAN 20, and assign the port GigabitEthernet 1/0/6 to VLAN 20.
[AC1] vlan 20
[AC1-vlan20] port gigabitethernet 1/0/6
[AC1-vlan20] quit
# Create Layer 2 aggregate interface Bridge-Aggregation 1.
[AC1] interface bridge-aggregation 1
# Configure Layer 2 aggregation group 1 to load share packets based on source MAC addresses.
[AC1-Bridge-Aggregation1] link-aggregation load-sharing mode source-mac
[AC1-Bridge-Aggregation1] quit
# Assign ports GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to link aggregation group 1.
[AC1] interface gigabitethernet 1/0/1
[AC1-GigabitEthernet1/0/1] port link-aggregation group 1
[AC1-GigabitEthernet1/0/1] quit
[AC1] interface gigabitethernet 1/0/2
[AC1-GigabitEthernet1/0/2] port link-aggregation group 1
[AC1-GigabitEthernet1/0/2] quit
# Configure Layer 2 aggregate interface Bridge-Aggregation 1 as a trunk port and assign it to VLAN 10.
[AC1] interface bridge-aggregation 1
[AC1-Bridge-Aggregation1] port link-type trunk
[AC1-Bridge-Aggregation1] port trunk permit vlan 10
[AC1-Bridge-Aggregation1] quit
# Create Layer 2 aggregate interface Bridge-Aggregation 2.
[AC1] interface bridge-aggregation 2
# Configure Layer 2 aggregation group 2 to load share packets based on destination MAC addresses.
[AC1-Bridge-Aggregation2] link-aggregation load-sharing mode destination-mac
[AC1-Bridge-Aggregation2] quit
# Assign ports GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4 to link aggregation group 2.
[AC1] interface gigabitethernet 1/0/3
[AC1-GigabitEthernet1/0/3] port link-aggregation group 2
[AC1-GigabitEthernet1/0/3] quit
[AC1] interface gigabitethernet 1/0/4
[AC1-GigabitEthernet1/0/4] port link-aggregation group 2
[AC1-GigabitEthernet1/0/4] quit
# Configure Layer 2 aggregate interface Bridge-Aggregation 2 as a trunk port and assign it to VLAN 20.
[AC1] interface bridge-aggregation 2
[AC1-Bridge-Aggregation2] port link-type trunk
[AC1-Bridge-Aggregation2] port trunk permit vlan 20
[AC1-Bridge-Aggregation2] quit
2. Configure AC 2 in the same way AC 1 is configured. (Details not shown.)
Verifying the configuration
# Display detailed information about all aggregation groups on AC 1.
[AC1] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
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
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1
GE1/0/2 S 32768 1
Aggregate Interface: Bridge-Aggregation2
Aggregation Mode: Static
Loadsharing Type: Shar
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
GE1/0/3 S 32768 2
GE1/0/4 S 32768 2
The output shows that:
· Link aggregation groups 1 and 2 are both load-shared Layer 2 static aggregation groups.
· Each aggregation group contains two Selected ports.
# Display all the group-specific load sharing modes on AC 1.
[AC1] display link-aggregation load-sharing mode interface
Bridge-Aggregation1 Load-Sharing Mode:
source-mac address
Bridge-Aggregation2 Load-Sharing Mode:
destination-mac address
The output shows that:
· Link aggregation group 1 load shares packets based on source MAC addresses.
· Link aggregation group 2 load shares packets based on destination MAC addresses.