H3C Campus Fixed-Port Switches CLI-Based Quick Start Configuration Guide -6W102

HomeSupportQuick StartsQuick Start Configuration GuidesH3C Campus Fixed-Port Switches CLI-Based Quick Start Configuration Guide -6W102
Table of Contents
Related Documents
15-Ethernet Link Aggregation Quick Start Configuration Guide

Ethernet Link Aggregation Quick Start Configuration Guide

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2025 New H3C Technologies Co., Ltd. All rights reserved.



Configuring Layer 2 link aggregation

Introduction

The following information uses an example to describe the basic procedure for configuring Layer 2 link aggregation.

Network configuration

As shown in Figure 1, both Device A and Device B forward traffic from VLAN 10 and VLAN 20.

Configure link aggregation on Device A and Device B to meet the following requirements:

·     VLAN 10 on Device A can communicate with VLAN 10 on Device B.

·     VLAN 20 on Device A can communicate with VLAN 20 on Device B.

Figure 1 Network diagram

Restrictions and guidelines

When you configure Layer 2 link aggregation, follow these restrictions and guidelines:

·     When you assign a port to an aggregation group, the recommended configuration procedure is as follows:

a.     Use the display this command in interface view to check the following attribute configurations of the port:

-     Port isolation.

-     QinQ.

-     VLAN.

-     VLAN mapping.

b.     If any of the above configurations exist, use the undo forms of the corresponding commands to remove these configurations. This enables the port to use the default attribute configurations.

c.     Assign the port to the aggregation group.

·     In a static aggregation group, the Selected state of a port is not affected by whether the peer port is added to an aggregation group and is Selected. As a result, the Selected state of a port might be different from the Selected state of the peer port. When both ends support static aggregation and dynamic aggregation, use dynamic aggregation.

·     You cannot assign a port to a Layer 2 aggregation group when MAC authentication, port security mode, or 802.1X is configured or enabled on the port.

Procedure

Configuring Device A

# Enter system view, create VLAN 10, and then assign port GigabitEthernet 1/0/4 to VLAN 10.

<DeviceA> system-view

[DeviceA] vlan 10

[DeviceA-vlan10] port gigabitethernet 1/0/4

[DeviceA-vlan10] quit

# Create VLAN 20, and assign port GigabitEthernet 1/0/5 to VLAN 20.

[DeviceA] vlan 20

[DeviceA-vlan20] port gigabitethernet 1/0/5

[DeviceA-vlan20] quit

# Create static or dynamic Layer 2 aggregate interface Bridge-aggregation 1.

·     Create static Layer 2 aggregate interface Bridge-aggregation 1.

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] quit

·     Create dynamic Layer 2 aggregate interface Bridge-aggregation 1.

[DeviceA] interface bridge-aggregation 1

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

[DeviceA-Bridge-Aggregation1] undo shutdown

[DeviceA-Bridge-Aggregation1] quit

# Assign ports GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to aggregation group 1.

[DeviceA] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/3

[DeviceA-if-range] port link-aggregation group 1

[DeviceA-if-range] undo shutdown

[DeviceA-if-range] quit

# Configure Layer 2 aggregate interface Bridge-aggregation 1 as a trunk port.

[DeviceA] interface bridge-aggregation 1

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

Configuring GigabitEthernet1/0/1 done.

Configuring GigabitEthernet1/0/2 done.

Configuring GigabitEthernet1/0/3 done.

# Assign the aggregate interface to VLANs 10 and 20.

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

Configuring GigabitEthernet1/0/1 done.

Configuring GigabitEthernet1/0/2 done.

Configuring GigabitEthernet1/0/3 done.

[DeviceA-Bridge-Aggregation1] quit

Configuring Device B

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

Verifying the configuration

# Display detailed information about the link aggregation groups on Device A.

·     Display link aggregation configuration when the static aggregation mode is used.

[DeviceA] display link-aggregation verbose

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

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

Port: A -- Auto port, M -- Management port, R -- Reference port

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

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

        G -- Defaulted, H -- Expired

 

Aggregation Interface: Bridge-Aggregation1

Aggregation Mode: Static

Loadsharing Type: Shar

Management VLANs: None

  Port             Status  Priority  Oper-Key

  GE1/0/1(R)       S       32768     1

  GE1/0/2          S       32768     1

  GE1/0/3          S       32768     1

The output shows that all member ports in the local aggregation group are in the Selected state. The Selected states of the local member ports are not affected by the Selected states of the peer member ports.

·     Display link aggregation configuration when the dynamic aggregation mode is used.

[DeviceA] display link-aggregation verbose

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

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

Port: A -- Auto port, M -- Management port, R -- Reference port

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

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

        G -- Defaulted, H -- Expired

 

Aggregation Interface: Bridge-Aggregation1

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x8000, 000f-e234-5678

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  GE1/0/1             S        32768    1        1                      {ACDEF}

  GE1/0/2             S        32768    2        1                      {ACDEF}

  GE1/0/3             S        32768    3        1                      {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  GE1/0/1(R)          32768    1        1        0x8000, a4e5-c316-0100 {ACDEF}

  GE1/0/2             32768    2        1        0x8000, a4e5-c316-0100 {ACDEF}

  GE1/0/3             32768    3        1        0x8000, a4e5-c316-0100 {ACDEF}

The output shows that the local member ports and the corresponding peer member ports are all Selected. In the dynamic link aggregation mode, each local member port and its peer member port have the same aggregation state through exchanging LACPDUs.

Configuration files

·     Device A:

#

vlan 10

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port access vlan 10

#

vlan 20

#

interface GigabitEthernet1/0/5

 port link-mode bridge

 port access vlan 20

¡     In the static aggregation mode:

#

interface Bridge-Aggregation1

port link-type trunk

port trunk permit vlan 10 20

¡     In the dynamic aggregation mode:

#

interface Bridge-Aggregation1

port link-type trunk

port trunk permit vlan 10 20

link-aggregation mode dynamic

#

interface GigabitEthernet1/0/1

port link-mode bridge

port link-type trunk

port trunk permit vlan 10 20

port link-aggregation group 1

#

interface GigabitEthernet1/0/2

port link-mode bridge

port link-type trunk

port trunk permit vlan 10 20

port link-aggregation group 1

#

interface GigabitEthernet1/0/3

port link-mode bridge

port link-type trunk

port trunk permit vlan 10 20

port link-aggregation group 1

#

·     Device B:

The configuration file on Device B is the same as the configuration file on Device A.

Related documentation

·     Ethernet link aggregation configuration in the Layer 2—LAN switching configuration guide for the device.

·     Ethernet link aggregation commands in the Layer 2—LAN switching command reference for the device.


Enabling local-first load sharing for link aggregation

Introduction

The following information uses an example to describe the basic procedure for enabling local-first load sharing for link aggregation.

Network configuration

As shown in Figure 2:

·     Device A and Device B form an IRF fabric and are aggregated across member devices via the GigabitEthernet1/0/3 and GigabitEthernet 2/0/3.

·     Due to the aggregated load sharing feature, traffic from VLAN 2 and VLAN 3 is forwarded to Device C via GigabitEthernet 1/0/3 and GigabitEthernet 2/0/3, resulting in low traffic forwarding efficiency. If the bandwidth is satisfied, we want the traffic of VLAN 2 to be forwarded through GigabitEthernet 1/0/3 and the traffic of VLAN 3 to be forwarded through GigabitEthernet 2/0/3 in order to improve the traffic forwarding efficiency.

Figure 2 Network diagram

 

Restrictions and guidelines

This feature is available only in IRF mode.

As a best practice, configure this feature only when the bandwidth of a single IRF device is sufficient to carry the traffic forwarding requirements. This can improve forwarding efficiency and alleviate the problem of high bandwidth carrying pressure on the IRF fabric.

For more information about IRF setup, see IRF Quick Start Configuration Guide or the Configuration Guide and Command Reference of the product.

Procedure

Configuring Device A

# Enter system view, and create Layer 2 aggregate interface Bridge-Aggregation 1.

<DeviceA> system-view

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] quit

# Assign GigabitEthernet 1/0/3 and GigabitEthernet 2/0/3 to Layer 2 aggregate interface Bridge-Aggregation 1.

[DeviceA] interface gigabitethernet 1/0/3

[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 1

[DeviceA-GigabitEthernet1/0/3] quit

[DeviceA] interface gigabitethernet 2/0/3

[DeviceA-GigabitEthernet2/0/3] port link-aggregation group 1

[DeviceA-GigabitEthernet2/0/3] quit

# Configure Layer 2 aggregate interface Bridge-Aggregation 1 as a trunk port, and assign the port to all VLANs.

[DeviceA] interface bridge-aggregation 1

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

[DeviceA-Bridge-Aggregation1]port trunk permit vlan all

[DeviceA-Bridge-Aggregation1]quit

# Enable local-first load sharing on the aggregate interface.

[DeviceA] link-aggregation load-sharing mode local-first

# Create VLAN 2 and VLAN 3.

[DeviceA] vlan 2 to 3

# Configure GigabitEthernet 1/0/4 as a trunk port, and assign the port to VLAN 2.

[DeviceA] interface gigabitethernet 1/0/4

[DeviceA-GigabitEthernet1/0/4]port link-type trunk

[DeviceA-GigabitEthernet1/0/4]undo port trunk permit vlan 1

[DeviceA-GigabitEthernet1/0/4]port trunk permit vlan 2

[DeviceA-GigabitEthernet1/0/4]quit

# Configure GigabitEthernet 2/0/4 as a trunk port, and assign the port to VLAN 3.

[DeviceA] interface gigabitethernet 2/0/4

[DeviceA-GigabitEthernet2/0/4]port link-type trunk

[DeviceA-GigabitEthernet2/0/4]undo port trunk permit vlan 1

[DeviceA-GigabitEthernet2/0/4]port trunk permit vlan 3

[DeviceA-GigabitEthernet2/0/4]quit

Configuring Device B

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

Configuring Device C

# Enter system view, and create Layer 2 aggregate interface Bridge-Aggregation 1.

<DeviceC> system-view

[DeviceC] interface bridge-aggregation 1

[DeviceC-Bridge-Aggregation1] quit

# Assign GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to Layer 2 aggregate interface Bridge-Aggregation 1.

[DeviceC] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/2

[DeviceC-if-range] port link-aggregation group 1

[DeviceC-if-range] quit

# Configure Layer 2 aggregate interface Bridge-Aggregation 1 as a trunk port, and assign the port to all VLANs.

[DeviceC] interface bridge-aggregation 1

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

[DeviceC-Bridge-Aggregation1]port trunk permit vlan all

[DeviceC-Bridge-Aggregation1]quit

Verifying the configuration

# Use display link-aggregation verbose to display detailed information about the aggregation groups.

[DeviceA] display link-aggregation verbose

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

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

Port: A -- Auto port, M -- Management port, R -- Reference port

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

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

        G -- Defaulted, H -- Expired

 

Aggregation Interface: Bridge-Aggregation1

Aggregation Mode: Static

Loadsharing Type: Shar

Management VLANs: None

  Port             Status  Priority  Oper-Key

  GE1/0/3          S       32768     1

  GE2/0/3          S       32768     1

The output shows that all member ports in the static aggregation group are in the Selected state. The traffic of VLAN 2 is forwarded only through GigabitEthernet 1/0/3.

Configuration files

·     Device A

#

interface Bridge-Aggregation1

 port link-type trunk

 port trunk permit vlan all

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan all

 port link-aggregation group 1

#

interface GigabitEthernet2/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan all

 port link-aggregation group 1

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2

#

interface GigabitEthernet2/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 3

#

link-aggregation load-sharing mode local-first

#

·     Device B

The configuration file on Device B is the same as the configuration file on Device A.

·     Device C

#

interface Bridge-Aggregation1

 port link-type trunk

 port trunk permit vlan all

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan all

 port link-aggregation group 1

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan all

 port link-aggregation group 1

#

Related documentation

·     Ethernet link aggregation configuration in the Layer 2—LAN switching configuration guide for the device.

·     Ethernet link aggregation commands in the Layer 2—LAN switching command reference for the device.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
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
新华三官网