03-Layer 2—LAN Switching Configuration Examples

HomeSupportConfigure & DeployConfiguration ExamplesH3C S12500G-AF&S12500CR&S10500X-G&S7500X-G Switch Series Configuration Examples-R7753Pxx[R8053Pxx]-6W10003-Layer 2—LAN Switching Configuration Examples
06-S-MLAG Configuration Examples
Title Size Download
06-S-MLAG Configuration Examples 115.20 KB

Introduction

This document provides configuration examples for using simple multichassis link aggregation (S-MLAG).

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

Prerequisites

The configuration examples were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

The following information is provided based on the assumption that you have basic knowledge of S-MLAG.

Example: Configuring S-MLAG

Network configuration

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

Figure 1 Network diagram

 

Analysis

To establish a multidevice aggregate link with Device A, you must perform the following tasks on Device B, Device C, and Device D:

1.     Create a Layer 2 dynamic aggregate interface and assign Ten-GigabitEthernet 3/0/1 to its aggregation group.

2.     Assign the aggregate interfaces to the same DR group.

Applicable hardware and software versions

The following matrix shows the hardware and software versions to which this configuration example is applicable:

 

Hardware

Software version

S12500G-AF

Release 8053P05 and later

S12500CR

Release 8053P05 and later

S10500X-G

Release 7753P05 and later

S7500X-G

Release 7753P05 and later

 

Restrictions and guidelines

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

To use S-MLAG, assign aggregate interfaces of multiple devices to an S-MLAG group.

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

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.

The aggregate interfaces in an S-MLAG group cannot be used as M-LAG interfaces or M-LAG peer-link interfaces. For more information about M-LAG interfaces and peer-link interfaces, see M-LAG configuration in Layer 2—LAN Switching Configuration Guide.

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.

·     Automatic member port assignment.

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

Procedures

Configuring 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/0/1 through Ten-GigabitEthernet 3/0/3 to aggregation group 10.

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

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

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

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

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

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

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

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

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

Configuring 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

[DeviceB-Bridge-Aggregation2] quit

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

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

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

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

Configuring 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/0/1 to aggregation group 3.

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

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

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

Configuring 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/0/1 to aggregation group 4.

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

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

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

Verifying the configuration

# Verify that Ten-GigabitEthernet 3/0/1 through Ten-GigabitEthernet 3/0/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 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

 

Aggregate Interface: Bridge-Aggregation10

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x8000, a0c7-9afd-0100

Local:

  Port                Status   Priority Index    Oper-Key               Flag

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

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

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

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

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

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

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

Configuration files

·     Device A:

#

interface Bridge-Aggregation10

 link-aggregation mode dynamic

#

interface Ten-GigabitEthernet3/0/1

 port link-mode bridge

 port link-aggregation group 10

#

interface Ten-GigabitEthernet3/0/2

 port link-mode bridge

 port link-aggregation group 10

#

interface Ten-GigabitEthernet3/0/3

 port link-mode bridge

 port link-aggregation group 10

#

·     Device B:

#

 lacp system-mac 0001-0001-0001

 lacp system-number 1

 lacp system-priority 123

#

interface Bridge-Aggregation2

 link-aggregation mode dynamic

 port s-mlag group 100

#

interface Ten-GigabitEthernet3/0/1

 port link-mode bridge

 port link-aggregation group 2

#

·     Device C:

#

 lacp system-mac 0001-0001-0001

 lacp system-number 2

 lacp system-priority 123

#

interface Bridge-Aggregation3

 link-aggregation mode dynamic

 port s-mlag group 100

#

interface Ten-GigabitEthernet3/0/1

 port link-mode bridge

 port link-aggregation group 3

#

·     Device D:

#

 lacp system-mac 0001-0001-0001

 lacp system-number 3

 lacp system-priority 123

#

interface Bridge-Aggregation4

 link-aggregation mode dynamic

 port s-mlag group 100

#

interface Ten-GigabitEthernet3/0/1

 port link-mode bridge

 port link-aggregation group 4

#

 

Example: Aggregating server-side links by using S-MLAG

Network configuration

As shown in Figure 2, configure S-MLAG as follows:

·     Connect Ten-GigabitEthernet 3/0/1 interfaces on Device A, Device B, and Device C to the server, and configure S-MLAG to aggregate the links to the server.

·     Configure the server-facing aggregate interfaces on Device A, Device B, and Device C as edge aggregate interfaces for the aggregation member ports to forward traffic correctly before link aggregation is set up on the server.

Figure 2 Network diagram

 

Analysis

To create a multichassis aggregate link on Device A, Device B, and Device C, perform the following tasks:

·     Create server-facing Layer 2 dynamic aggregate interfaces.

·     Assign the aggregate interfaces to an S-MLAG group.

Applicable hardware and software versions

The following matrix shows the hardware and software versions to which this configuration example is applicable:

 

Hardware

Software version

S12500G-AF

Release 8053P05 and later

S12500CR

Release 8053P05 and later

S10500X-G

Release 7753P05 and later

S7500X-G

Release 7753P05 and later

 

Restrictions and guidelines

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

To use S-MLAG, assign aggregate interfaces of multiple devices to an S-MLAG group.

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

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.

The aggregate interfaces in an S-MLAG group cannot be used as M-LAG interfaces or M-LAG peer-link interfaces. For more information about M-LAG interfaces and peer-link interfaces, see M-LAG configuration in Layer 2—LAN Switching Configuration Guide.

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.

·     Automatic member port assignment.

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

Procedures

Configuring Device A

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

<DeviceA> system-view

[DeviceA] lacp system-mac 1-1-1

# Set the LACP system priority to 123.

[DeviceA] lacp system-priority 123

# Set the LACP system number to 1.

[DeviceA] lacp system-number 1

# 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

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

[DeviceA-Bridge-Aggregation1] lacp edge-port

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

[DeviceA-Bridge-Aggregation1] port s-mlag group 100

[DeviceA-Bridge-Aggregation1] quit

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

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

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

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

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

[DeviceB] lacp system-number 2

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

[DeviceB] interface bridge-aggregation 2

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

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

[DeviceB-Bridge-Aggregation2] lacp edge-port

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

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

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

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

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

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

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

[DeviceC] lacp system-number 3

# 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

# Configure Bridge-Aggregation 3 as an edge aggregate interface.

[DeviceC-Bridge-Aggregation3] lacp edge-port

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

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

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

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

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

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

Verifying the configuration

# Before you configure dynamic link aggregation on the server, verify that the aggregation member ports are in individual state on Device A, Device B, and Device C to forward traffic independently.

[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

 

Aggregate Interface: Bridge-Aggregation1

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x7b, 0001-0001-0001

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  XGE3/0/1            I        32768    16385    50100                  {AG}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

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

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

 

Aggregate Interface: Bridge-Aggregation2

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x7b, 0001-0001-0001

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  XGE3/0/1            I        32768    32769    50100                  {AG}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

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

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

 

Aggregate Interface: Bridge-Aggregation3

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x7b, 0001-0001-0001

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  XGE3/0/1            I        32768    49153    50100                  {AG}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

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

# After you configure dynamic link aggregation on the server, verify that the aggregation member ports are selected on Device A, Device B, and Device C, which indicates that the multichassis link aggregation has been set up.

[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

 

Aggregate Interface: Bridge-Aggregation1

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x7b, 0001-0001-0001

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  XGE3/0/1(R)         S        32768    16385    50100                  {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  XGE3/0/1            32768    1        1        0x8000, 5022-e533-0400 {ACDEF}

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

 

Aggregate Interface: Bridge-Aggregation2

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x7b, 0001-0001-0001

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  XGE3/0/1(R)         S        32768    32769    50100                  {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  XGE3/0/1            32768    2        1        0x8000, 5022-e533-0400 {ACDEF}

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

 

Aggregate Interface: Bridge-Aggregation3

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x7b, 0001-0001-0001

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  XGE3/0/1(R)         S        32768    49153    50100                  {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  XGE3/0/1            32768    3        1        0x8000, 5022-e533-0400 {ACDEF}

Configuration files

·     Device A:

#

 lacp system-mac 0001-0001-0001

 lacp system-number 1

 lacp system-priority 123

#

interface Bridge-Aggregation1

 link-aggregation mode dynamic

 lacp edge-port

 port s-mlag group 100

#

interface Ten-GigabitEthernet3/0/1

 port link-mode bridge

 port link-aggregation group 1

#

·     Device B:

#

 lacp system-mac 0001-0001-0001

 lacp system-number 2

 lacp system-priority 123

#

interface Bridge-Aggregation2

 link-aggregation mode dynamic

 lacp edge-port

 port s-mlag group 100

#

interface Ten-GigabitEthernet3/0/1

 port link-mode bridge

 port link-aggregation group 2

#

·     Device C:

#

 lacp system-mac 0001-0001-0001

 lacp system-number 3

 lacp system-priority 123

#

interface Bridge-Aggregation3

 link-aggregation mode dynamic

 lacp edge-port

 port s-mlag group 100

#

interface Ten-GigabitEthernet3/0/1

 port link-mode bridge

 port link-aggregation group 3

#

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