H3C网管交换机S-MLAG跨设备链路聚合配置举例

一、组网需求
•Device A 通过二层以太网接口 GigabitEthernet1/0/1~GigabitEthernet1/0/3 分别与 Device B、Device C、Device D 的二层以太网接口 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 功能,保证正常工作时链路进行负载分担且任何一台设备故障对业务均没有影响,提高可靠性。

二、 组网图
S-MLAG 配置组网图

三、配置步骤
(1) 配置 Device A
# 创建二层聚合接口 10,并配置该接口为动态聚合模式。
<DeviceA> system-view
[DeviceA] interface bridge-aggregation 10
[DeviceA-Bridge-Aggregation10] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation10] quit

# 分别将端口 GigabitEthernet1/0/1 至 GigabitEthernet1/0/3 加入到聚合组 10 中。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 10
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 10
[DeviceA-GigabitEthernet1/0/2] quit
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 10
[DeviceA-GigabitEthernet1/0/3] quit

(2) 配置 Device B
# 配置 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

# 将端口 GigabitEthernet1/0/1 加入到聚合组 2 中。
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] port link-aggregation group 2
[DeviceB-GigabitEthernet1/0/1] quit

(3) 配置 Device C
# 配置 LACP 的系统地址为 0001-0001-0001。
<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

# 将端口 GigabitEthernet1/0/1 加入到聚合组 3 中。
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] port link-aggregation group 3
[DeviceC-GigabitEthernet1/0/1] quit

(4) 配置 Device D
# 配置 LACP 的系统地址为 0001-0001-0001。
<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

# 将端口 GigabitEthernet1/0/1 加入到聚合组 4 中。
[DeviceD] interface gigabitethernet 1/0/1
[DeviceD-GigabitEthernet1/0/1] port link-aggregation group 4
[DeviceD-GigabitEthernet1/0/1] quit

四、验证配置
# 查看 Device A 上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
验证配置
以上信息表明,Device A 的端口 GigabitEthernet1/0/1~GigabitEthernet1/0/3 均处于选中状态,此时 Device A 将 Device B、Device C、Device D 认为是一台设备,从而实现了跨设备的聚合。

ICP备案号:晋ICP备18007549号-1
站长微信:15534641008