华为交换机链路聚合Eth-Trunk

交换机链路聚合---Link Aggregation Control Protocol,简称LACP.
链路聚合是一种将多个物理链路聚合成一个逻辑链路的技术,以提高网络的带宽和可靠性。通过交换机链路聚合,多个物理链路可以被视为一个逻辑链路,从而提高网络的带宽和可靠性,同时还可以实现负载均衡和故障转移。
链路聚合有两种模式:静态链路聚合--lacp-static,动态链路聚合--manaual load-balance
手工模式(二层链路聚合)
1.SW1配置
system-view # 进入系统视图
[Huawei]sysname SW1 # 修改设备名为SW1
[SW1]interface Eth-Trunk 1 # 创建聚合口1
[SW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3 # 加入成员口[SW1-Eth-Trunk1]quit # 返回上一界面
2.SW2配置
system-view # 进入系统视图
[Huawei]sysname SW2            # 修改设备名为SW2
[SW2]interface Eth-Trunk 1     # 创建聚合口
[SW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3   # 加入成员口[SW2-Eth-Trunk1]quit           # 返回上一界面

LACP  模式
SW1配置
system-view # 进入系统视图
[Huawei]sysname SW1 # 修改设备名为SW1
[SW1]interface Eth-Trunk 1 # 创建聚合口
[SW1]mode lacp # 选择配置LACP模式 /manual为手动模式
[SW1-rth-trunk 1]least active-linknumber 1 //最小聚合口为1 默认值
[SW1]max active-linknumber 2 # 最大聚合口为2
[SW1-Eth-Trunk1]trunkport G 0/0/1 to 0/0/3 # 加入成员口
[SW1-Eth-Trunk1]quit # 返回上一界面

SW2配置
system-view # 进入系统视图
[Huawei]sysname SW2            # 修改设备名为SW2
[SW2]interface Eth-Trunk 1     # 创建聚合口
[SW2]mode lacp                 # 配置LACP
[SW2]max active-linknumber 2   # 最大聚合口为2
[SW2-Eth-Trunk1]trunkport  G 0/0/1 to 0/0/3   # 加入成员口
[SW2-Eth-Trunk1]quit           # 返回上一界面

posted @ 2025-05-25 13:47  rookie886  阅读(373)  评论(0)    收藏  举报