04-S-MLAG典型配置举例
本章节下载: 04-S-MLAG典型配置举例 (233.15 KB)
本文档介绍S-MLAG特性的配置举例。
S-MLAG将多台独立运行的物理设备在聚合层面虚拟成一台设备实现简单的跨设备链路聚合,从而提供设备级冗余保护和流量负载分担。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解S-MLAG特性。
如图1所示:
· Device A通过二层以太网接口Ten-GigabitEthernet3/0/1~Ten-GigabitEthernet3/0/3分别与Device B、Device C、Device D的二层以太网接口Ten-GigabitEthernet3/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组。
表1 适用产品及版本
产品 |
软件版本 |
S12500G-AF |
Release 8053P05及以上版本 |
S12500CR |
Release 8053P05及以上版本 |
S10500X-G |
Release 7753P05及以上版本 |
S7500X-G |
Release 7753P05及以上版本 |
S7000X |
Release 7753P05及以上版本 |
仅在和服务器对接的场景中使用本功能。
为了实现S-MLAG功能,需要将不同设备的聚合接口加入同一S-MLAG组。
同一设备上不同聚合接口不能加入同一S-MLAG组。
为了保证S-MLAG正常工作,请勿在IRF设备上使用S-MLAG。有关IRF的详细介绍,请参见“虚拟化技术配置指导”中的“IRF”。
配置聚合接口加入S-MLAG组后,该聚合接口不能再配置为M-LAG接口或peer-link接口。有关M-LAG接口和peer-link接口的详细介绍,请参见“二层技术-以太网交换配置指导”中的“M-LAG”。
S-MLAG组网环境下,建议聚合组中成员端口实际速率和双工保持一致,否则在聚合组中加入新成员端口时可能导致参考端口改变,使其他成员端口变为非选中状态,影响流量转发。
S-MLAG组网环境下,请不要配置以下功能:
· LACP MAD检测。
· 聚合流量重定向功能。
· 聚合组中的最大/最小选中端口。
· 半自动动态聚合。
· 聚合组选择选中端口时忽略端口速率。
· 生成树功能。有关生成树功能的详细介绍,请参见“二层技术-以太网交换配置指导”中的“生成树”。
为了保证业务的正常运行,建议加入S-MLAG组的各个设备的业务配置保持一致。
<DeviceA> system-view
[DeviceA] interface bridge-aggregation 10
[DeviceA-Bridge-Aggregation10] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation10] quit
# 分别将端口Ten-GigabitEthernet3/0/1至Ten-GigabitEthernet3/0/3加入到聚合组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
# 配置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-GigabitEthernet3/0/1加入到聚合组2中。
[DeviceB] interface ten-gigabitethernet 3/0/1
[DeviceB-Ten-GigabitEthernet3/0/1] port link-aggregation group 2
[DeviceB-Ten-GigabitEthernet3/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-GigabitEthernet3/0/1加入到聚合组3中。
[DeviceC] interface ten-gigabitethernet 3/0/1
[DeviceC-Ten-GigabitEthernet3/0/1] port link-aggregation group 3
[DeviceC-Ten-GigabitEthernet3/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-GigabitEthernet3/0/1加入到聚合组4中。
[DeviceD] interface ten-gigabitethernet 3/0/1
[DeviceD-Ten-GigabitEthernet3/0/1] port link-aggregation group 4
[DeviceD-Ten-GigabitEthernet3/0/1] quit
# 查看Device A上所有聚合组的详细信息,可以看到Device A的端口Ten-GigabitEthernet3/0/1~Ten-GigabitEthernet3/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
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}
· 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
#
如图2所示:
· Device A、Device B、Device C与服务器Server均通过端口Ten-GigabitEthernet3/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组。
表2 适用产品及版本
产品 |
软件版本 |
S12500G-AF |
Release 8053P05及以上版本 |
S12500CR |
Release 8053P05及以上版本 |
S10500X-G |
Release 7753P05及以上版本 |
S7500X-G |
Release 7753P05及以上版本 |
S7000X |
Release 7753P05及以上版本 |
仅在和服务器对接的场景中使用本功能。
为了实现S-MLAG功能,需要将不同设备的聚合接口加入同一S-MLAG组。
同一设备上不同聚合接口不能加入同一S-MLAG组。
为了保证S-MLAG正常工作,请勿在IRF设备上使用S-MLAG。有关IRF的详细介绍,请参见“虚拟化技术配置指导”中的“IRF”。
配置聚合接口加入S-MLAG组后,该聚合接口不能再配置为M-LAG接口或peer-link接口。有关M-LAG接口和peer-link接口的详细介绍,请参见“二层技术-以太网交换配置指导”中的“M-LAG”。
S-MLAG组网环境下,建议聚合组中成员端口实际速率和双工保持一致,否则在聚合组中加入新成员端口时可能导致参考端口改变,使其他成员端口变为非选中状态,影响流量转发。
S-MLAG组网环境下,请不要配置以下功能:
· LACP MAD检测。
· 聚合流量重定向功能。
· 聚合组中的最大/最小选中端口。
· 半自动动态聚合。
· 聚合组选择选中端口时忽略端口速率。
· 生成树功能。有关生成树功能的详细介绍,请参见“二层技术-以太网交换配置指导”中的“生成树”。
为了保证业务的正常运行,建议加入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-GigabitEthernet3/0/1加入到聚合组1中。
[DeviceA] interface ten-gigabitethernet 3/0/1
[DeviceA-Ten-GigabitEthernet3/0/1] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet3/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-GigabitEthernet3/0/1加入到聚合组2中。
[DeviceB] interface ten-gigabitethernet 3/0/1
[DeviceB-Ten-GigabitEthernet3/0/1] port link-aggregation group 2
[DeviceB-Ten-GigabitEthernet3/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-GigabitEthernet3/0/1加入到聚合组3中。
[DeviceC] interface ten-gigabitethernet 3/0/1
[DeviceC-Ten-GigabitEthernet3/0/1] port link-aggregation group 3
[DeviceC-Ten-GigabitEthernet3/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
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}
# 当Server完成动态聚合模式配置时,查看Device A、Device B、Device C上聚合组的详细信息。可以看到Device A、Device B、Device C的端口Ten-GigabitEthernet3/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
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}
· 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
#
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!