H3C网管交换机二层动态链路聚合配置举例

一、组网需求
• Device A 与 Device B 通过各自的二层以太网接口 GigabitEthernet1/0/1~
GigabitEthernet1/0/3 相互连接。
• 在 Device A和 Device B上分别配置二层动态链路聚合组,并实现设备间 VLAN 10和 VLAN 20分别互通。

二、 组网图
二层动态聚合配置组网图

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

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

# 创建二层聚合接口 1,并配置该接口为动态聚合模式。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation1] quit

# 分别将端口 GigabitEthernet1/0/1 至 GigabitEthernet1/0/3 加入到聚合组 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
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/3] quit

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

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

四、验证配置
# 查看 Device A 上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
验证配置查看 Device A 上所有聚合组的详细信息
以上信息表明,聚合组 1 为负载分担类型的二层动态聚合组,包含有三个选中端口。

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