H3C网管交换机二层链路聚合负载分担配置举例

一、组网需求
• Device A 与 Device B 通过各自的二层以太网接口 GigabitEthernet1/0/1~
GigabitEthernet1/0/4 相互连接。
• 在 Device A 和 Device B 上分别配置两个二层静态链路聚合组,并使两端的 VLAN 10 通过二层聚合接口 1 互通、VLAN 20 通过二层聚合接口 2 互通。
• 通过在聚合组 1 上按照源 MAC 地址进行聚合负载分担、在聚合组 2 上按照目的 MAC 地址进行聚合负载分担的方式,来实现数据流量在各成员端口间的负载分担。

二、 组网图
二层聚合负载分担配置组网图

三、配置步骤
(1) 配置 Device A
# 创建 VLAN 10,并将端口 GigabitEthernet1/0/5 加入到该 VLAN 中。
<DeviceA> system-view
[DeviceA] vlan 10
[DeviceA-vlan10] port gigabitethernet 1/0/5
[DeviceA-vlan10] quit

# 创建 VLAN 20,并将端口 GigabitEthernet1/0/6 加入到该 VLAN 中。
[DeviceA] vlan 20
[DeviceA-vlan20] port gigabitethernet 1/0/6
[DeviceA-vlan20] quit

# 创建二层聚合接口 1,并配置该接口对应的聚合组内按照源 MAC 地址进行聚合负载分担。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation load-sharing mode source-mac
[DeviceA-Bridge-Aggregation1] quit

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

# 配置二层聚合接口 1 为 Trunk 端口,并允许 VLAN 10 的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10
[DeviceA-Bridge-Aggregation1] quit

# 创建二层聚合接口 2,并配置该接口对应的聚合组内按照目的 MAC 地址进行聚合负载分担。
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] link-aggregation load-sharing mode destination-mac
[DeviceA-Bridge-Aggregation2] quit

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

# 配置二层聚合接口 2 为 Trunk 端口,并允许 VLAN 20 的报文通过。
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] port link-type trunk
[DeviceA-Bridge-Aggregation2] port trunk permit vlan 20
[DeviceA-Bridge-Aggregation2] quit

(2) 配置 Device B
Device B 的配置与 Device A 相似,配置过程略。

四、验证配置
# 查看 Device A 上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
查看 Device A 上所有聚合组的详细信息
以上信息表明,聚合组 1 和聚合组 2 都是负载分担类型的二层静态聚合组,各包含有两个选中端口。
# 查看 Device A 上所有聚合接口所对应聚合组内采用的聚合负载分担类型。
[DeviceA] display link-aggregation load-sharing mode interface
Bridge-Aggregation1 Load-Sharing Mode:
source-mac address
Bridge-Aggregation2 Load-Sharing Mode:
destination-mac address
以上信息表明,二层聚合组 1 按照报文的源 MAC 地址进行聚合负载分担,二层聚合组 2 按照报文的目的 MAC 地址进行聚合负载分担。

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