华三H3C交换机链路聚合基本配置

作者:IT技术圈子 浏览量:1043   发表于 2023-10-01 17:56 标签:

一、网络拓扑结构

yyy

二、实验需求

要求相同VLAN互通,DeviceA与DeviceB之间的两条链路配置链路聚合,以提高设备间链路带宽及可靠性。

三、实验步骤

1、DeviceA创建VLAN 10、20,将连接终端的接口划入相应的VLAN。

2、DeviceA配置链路聚合,配置聚合后的接口为Trunk,放行VLAN10、20

3、DeviceB创建VLAN 10、20,将连接终端的接口划入相应的VLAN。

4、DeviceB配置链路聚合,配置聚合后的接口为Trunk,放行VLAN10、20

5、查看聚合后的接口信息

6、PC终端配置IP地址Ping测试

DeviceA配置VLAN

创建VLAN10,将端口GigabitEthernet1/0/4加入VLAN10

<DeviceA> system-view
[DeviceA] vlan 10
[DeviceA-vlan10] port GigabitEthernet 1/0/4
[DeviceA-vlan10] quit

创建VLAN20,将端口GigabitEthernet1/0/5加入VLAN20

[DeviceA] vlan 20
[DeviceA-vlan20] port GigabitEthernet 1/0/5
[DeviceA-vlan20] quit

DeviceA配置聚合接口

创建聚合接口1,静态和动态模式(选择其中之一即可),这里选择动态模式

# 静态模式
[DeviceA] interface Bridge-Aggregation 1
[DeviceA-Bridge-Aggregation1] quit

# 动态模式
[DeviceA] interface Bridge-Aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation1] quit

将端口GigabitEthernet1/0/1、1/0/2 加到聚合组1

[DeviceA] interface range GigabitEthernet 1/0/1 GigabitEthernet 1/0/2
[DeviceA-if-range] port link-aggregation group 1
[DeviceA-if-range] quit

配置二层聚合接口1为Trunk端口,允许VLAN10 、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

DeviceB配置聚合接口

由于DeviceB的端口编号与DeviceA端口编号一一对应,因此DeviceA配置与DeviceA相同,按照DeviceA步骤配置即可。

四、测试验证结果

查看DeviceA和DeviceB聚合后接口的带宽

display interface brief

yyy

yyy

BAGG1为聚合后的接口名称,带宽由原来单条链路1G提升到单条链路2G。

VLAN 10的两台PC终端配置IP地址,测试连通性。

PC_3:192.168.10.1/24

PC_5:192.168.10.2/24

yyy

yyy

尝试用PC_3 Ping PC_5,发现Ping不通,PC的接口频繁Up或Down,确认配置没问题后,猜测是HCL模拟器的Bug,先执行save保存配置后,全部设备断电,然后重启。

再次尝试PC_3 Ping PC_5,测试通过

yyy