10-H3C_S-MLAG典型配置举例
本章节下载: 10-H3C_S-MLAG典型配置举例 (225.17 KB)
资料版本:6W100-20200330
产品版本:Release 7585P05
Copyright © 2020 新华三技术有限公司 版权所有,保留一切权利。 非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部, 并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。 |
本文档介绍S-MLAG特性的配置举例。
S-MLAG将多台独立运行的物理设备在聚合层面虚拟成一台设备实现简单的跨设备链路聚合,从而提供设备级冗余保护和流量负载分担。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解S-MLAG特性。
如图1所示:
· Device A通过二层以太网接口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/3分别与Device B、Device C、Device D的二层以太网接口Ten-GigabitEthernet1/0/1相互连接。
· Device B、Device C、Device D为独立运行的设备,由于用户对于业务的可靠性要求很高,要求Device A和Device B、Device C、Device D之间配置链路聚合。为了实现Device B、Device C、Device D之间跨设备聚合,这时用户可以配置S-MLAG功能,保证正常工作时链路进行负载分担且任何一台设备故障对业务均没有影响,提高可靠性。
图1 S-MLAG配置组网图
· 设备Device A与Device B、Device C、Device D之间部署二层动态聚合。
· 将设备Device B、Device C、Device D上的聚合接口加入同一S-MLAG组。
· 配置聚合组的成员端口过程中,建议配置顺序:在端口视图下使用display this命令查看端口上是否存在属性类配置(包括端口隔离配置、QinQ配置、VLAN配置、VLAN映射),如果有这类配置,请使用对应的undo命令删除这些配置,使端口保持在缺省属性类配置状态,然后再把端口加入到新创建的聚合组内。
· 在加入S-MLAG组的设备上,保证聚合配置一致。
· 为了保证业务的正常运行,建议加入S-MLAG组的各个设备的业务配置保持一致。
<DeviceA> system-view
[DeviceA] interface bridge-aggregation 10
[DeviceA-Bridge-Aggregation10] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation10] quit
# 分别将端口Ten-GigabitEthernet1/0/1至Ten-GigabitEthernet1/0/3加入到聚合组10中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 10
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-aggregation group 10
[DeviceA-Ten-GigabitEthernet1/0/2] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/3] port link-aggregation group 10
[DeviceA-Ten-GigabitEthernet1/0/3] quit
# 配置LACP的系统地址为0001-0001-0001。
<DeviceB> system-view
[DeviceB] lacp system-mac 1-1-1
# 配置LACP的系统优先级为123。
[DeviceB] lacp system-priority 123
# 配置LACP的系统编号为1。
[DeviceB] lacp system-number 1
# 创建二层聚合接口2,并配置该接口为动态聚合模式。
[DeviceB] interface bridge-aggregation 2
[DeviceB-Bridge-Aggregation2] link-aggregation mode dynamic
# 将二层聚合接口2加入S-MLAG组100。
[DeviceB-Bridge-Aggregation2] port s-mlag group 100
[DeviceB-Bridge-Aggregation2] quit
# 将端口Ten-GigabitEthernet1/0/1加入到聚合组2中。
[DeviceB] interface ten-gigabitethernet 1/0/1
[DeviceB-Ten-GigabitEthernet1/0/1] port link-aggregation group 2
[DeviceB-Ten-GigabitEthernet1/0/1] quit
<DeviceC> system-view
[DeviceC] lacp system-mac 1-1-1
# 配置LACP的系统优先级为123。
[DeviceC] lacp system-priority 123
# 配置LACP的系统编号为2。
[DeviceC] lacp system-number 2
# 创建二层聚合接口3,并配置该接口为动态聚合模式。
[DeviceC] interface bridge-aggregation 3
[DeviceC-Bridge-Aggregation3] link-aggregation mode dynamic
# 将二层聚合接口3加入S-MLAG组100。
[DeviceC-Bridge-Aggregation3] port s-mlag group 100
# 将端口Ten-GigabitEthernet1/0/1加入到聚合组3中。
[DeviceC] interface ten-gigabitethernet 1/0/1
[DeviceC-Ten-GigabitEthernet1/0/1] port link-aggregation group 3
[DeviceC-Ten-GigabitEthernet1/0/1] quit
<DeviceD> system-view
[DeviceD] lacp system-mac 1-1-1
# 配置LACP的系统优先级为123。
[DeviceD] lacp system-priority 123
# 配置LACP的系统编号为3。
[DeviceD] lacp system-number 3
# 创建二层聚合接口4,并配置该接口为动态聚合模式。
[DeviceD] interface bridge-aggregation 4
[DeviceD-Bridge-Aggregation4] link-aggregation mode dynamic
# 将二层聚合接口4加入S-MLAG组100。
[DeviceD-Bridge-Aggregation4] port s-mlag group 100
# 将端口Ten-GigabitEthernet1/0/1加入到聚合组4中。
[DeviceD] interface ten-gigabitethernet 1/0/1
[DeviceD-Ten-GigabitEthernet1/0/1] port link-aggregation group 4
[DeviceD-Ten-GigabitEthernet1/0/1] quit
# 查看Device A上所有聚合组的详细信息,可以看到Device A的端口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/3均处于选中状态,此时Device A将Device B、Device C、Device D认为是一台设备,从而实现了跨设备的聚合。
[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
XGE1/0/1 S 32768 1 1 {ACDEF}
XGE1/0/2 S 32768 2 1 {ACDEF}
XGE1/0/3 S 32768 3 1 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE1/0/1(R) 32768 16385 50100 0x7b , 0001-0001-0001 {ACDEF}
XGE1/0/2 32768 32769 50100 0x7b , 0001-0001-0001 {ACDEF}
XGE1/0/3 32768 49153 50100 0x7b , 0001-0001-0001 {ACDEF}
· Device A:
#
interface Bridge-Aggregation10
link-aggregation mode dynamic
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-aggregation group 10
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-aggregation group 10
#
interface Ten-GigabitEthernet1/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-GigabitEthernet1/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-GigabitEthernet1/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-GigabitEthernet1/0/1
port link-mode bridge
port link-aggregation group 4
#
如图2所示:
· Device A、Device B、Device C与服务器Server均通过端口Ten-GigabitEthernet1/0/1相互连接。
· Device A、Device B、Device C为独立运行的设备,由于用户对于业务的可靠性要求很高,要求Server和Device A、Device B、Device C之间配置链路聚合。为了实现Device A、Device B、Device C之间跨设备聚合,这时用户可以配置S-MLAG功能,保证正常工作时链路进行负载分担且任何一台设备故障对业务均没有影响,提高可靠性。
· 在Device A、Device B、Device C上配置二层聚合接口为聚合边缘接口,以便当服务器上未配置动态聚合组时,Device A、Device B、Device C上聚合组成员端口都能作为普通端口正常转发报文。
图2 S-MLAG配置组网图
· 设备Server与Device A、Device B、Device C之间部署二层动态聚合。
· 将设备Device A、Device B、Device C上的聚合接口加入同一S-MLAG组。
· 配置聚合组的成员端口过程中,建议配置顺序:在端口视图下使用display this命令查看端口上是否存在属性类配置(包括端口隔离配置、QinQ配置、VLAN配置、VLAN映射),如果有这类配置,请使用对应的undo命令删除这些配置,使端口保持在缺省属性类配置状态,然后再把端口加入到新创建的聚合组内。
· 在加入S-MLAG组的设备上,保证聚合配置一致。
· 为了保证业务的正常运行,建议加入S-MLAG组的各个设备的业务配置保持一致。
# 配置LACP的系统地址为0001-0001-0001。
<DeviceA> system-view
[DeviceA] lacp system-mac 1-1-1
# 配置LACP的系统优先级为123。
[DeviceA] lacp system-priority 123
# 配置LACP的系统编号为1。
[DeviceA] lacp system-number 1
# 创建二层聚合接口1,并配置该接口为动态聚合模式。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
# 配置二层聚合接口1为聚合边缘接口。
[DeviceA-Bridge-Aggregation1] lacp edge-port
# 将二层聚合接口1加入S-MLAG组100。
[DeviceA-Bridge-Aggregation1] port s-mlag group 100
[DeviceA-Bridge-Aggregation1] quit
# 将端口Ten-GigabitEthernet1/0/1加入到聚合组1中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/1] quit
# 配置LACP的系统地址为0001-0001-0001。
<DeviceB> system-view
[DeviceB] lacp system-mac 1-1-1
# 配置LACP的系统优先级为123。
[DeviceB] lacp system-priority 123
# 配置LACP的系统编号为2。
[DeviceB] lacp system-number 2
# 创建二层聚合接口2,并配置该接口为动态聚合模式。
[DeviceB] interface bridge-aggregation 2
[DeviceC-Bridge-Aggregation2] link-aggregation mode dynamic
# 配置二层聚合接口2为聚合边缘接口。
[DeviceB-Bridge-Aggregation2] lacp edge-port
# 将二层聚合接口2加入S-MLAG组100。
[DeviceB-Bridge-Aggregation2] port s-mlag group 100
# 将端口Ten-GigabitEthernet1/0/1加入到聚合组2中。
[DeviceB] interface ten-gigabitethernet 1/0/1
[DeviceB-Ten-GigabitEthernet1/0/1] port link-aggregation group 2
[DeviceB-Ten-GigabitEthernet1/0/1] quit
# 配置LACP的系统地址为0001-0001-0001。
<DeviceC> system-view
[DeviceC] lacp system-mac 1-1-1
# 配置LACP的系统优先级为123。
[DeviceC] lacp system-priority 123
# 配置LACP的系统编号为3。
[DeviceC] lacp system-number 3
# 创建二层聚合接口3,并配置该接口为动态聚合模式。
[DeviceC] interface bridge-aggregation 3
[DeviceC-Bridge-Aggregation3] link-aggregation mode dynamic
# 配置二层聚合接口3为聚合边缘接口。
[DeviceC-Bridge-Aggregation3] lacp edge-port
# 将二层聚合接口3加入S-MLAG组100。
[DeviceC-Bridge-Aggregation3] port s-mlag group 100
# 将端口Ten-GigabitEthernet1/0/1加入到聚合组3中。
[DeviceC] interface ten-gigabitethernet 1/0/1
[DeviceC-Ten-GigabitEthernet1/0/1] port link-aggregation group 3
[DeviceC-Ten-GigabitEthernet1/0/1] quit
# 当Server未完成动态聚合模式配置时,查看Device A、Device B、Device C上聚合组的详细信息。当Device A、Device B、Device C未收到Server的LACP报文时,Device A、Device B、Device C的聚合成员端口都工作在Individual状态,该状态下聚合成员端口可以作为普通物理口转发报文,以保证此时Server与Device A、Device B、Device C间的链路都可以正常转发报文,且相互形成备份。
[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
XGE1/0/1 I 32768 16385 50100 {AG}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE1/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
XGE1/0/1 I 32768 32769 50100 {AG}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE1/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
XGE1/0/1 I 32768 49153 50100 {AG}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE1/0/1 32768 0 0 0x8000, 0000-0000-0000 {DEF}
# 当Server完成动态聚合模式配置时,查看Device A、Device B、Device C上聚合组的详细信息。可以看到Device A、Device B、Device C的端口Ten-GigabitEthernet1/0/1均处于选中状态,此时Server将Device A、Device B、Device C认为是一台设备,从而实现了跨设备的聚合。
[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
XGE1/0/1(R) S 32768 16385 50100 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE1/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
XGE2/0/1(R) S 32768 32769 50100 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE2/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
XGE2/0/1(R) S 32768 49153 50100 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE2/0/1 32768 3 1 0x8000, 5022-e533-0400 {ACDEF}
· 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-GigabitEthernet1/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-GigabitEthernet1/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-GigabitEthernet1/0/1
port link-mode bridge
port link-aggregation group 3
#
· H3C S10500系列交换机 二层技术-以太网交换配置指导-R758X
· H3C S10500系列交换机 二层技术-以太网交换命令参考-R758X
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!