定义:是一种将多个以太网接口捆绑成一个逻辑接口的捆绑技术
特点:链路聚合能够提高链路带宽,增强网络可用性,支持负载分担。
链路聚合有两种模式:
manual:手动负载均衡模式,手动添加成员接口。
lacp-static:动态链路聚合控制协议,也叫M:N模式,“M”表示活动成员链路,用于在负载均衡模式中转发数据;“N”表示非活动链路,用于冗余备份;
区别:在LACP模式中,一些链路充当备份链路,在手动负载均衡模式中,所有成员接口都处于转发状态。
手工配置:
LSW1交换机:
[Huawei]int Eth-Trunk 1 #创建链路聚合编号为1
[Huawei-Eth-Trunk1]mode manual load-balance #切换链路聚合工作模式
[Huawei-Eth-Trunk1]trunkport Ethernet 0/0/1 0/0/2 0/0/3 0/0/4 #为链路聚合组添加成员链路
[Huawei-Eth-Trunk1]port link-type trunk
[Huawei-Eth-Trunk1]port trunk allow-pass vlan all
LSW2交换机:
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]mode manual load-balance
[Huawei-Eth-Trunk1]trunkport Ethernet 0/0/1 0/0/2 0/0/3 0/0/4
[Huawei-Eth-Trunk1]port link-type trunk
[Huawei-Eth-Trunk1]port trunk allow-pass vlan all
LACP模式:
LSW3:
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]mode lacp-static
[Huawei-Eth-Trunk1]trunkport Ethernet 0/0/1 0/0/2 0/0/3 0/0/4 0/0/5
[Huawei-Eth-Trunk1]max active-linknumber 3
LSW5:
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]mode lacp-static
[Huawei-Eth-Trunk1]trunkport Ethernet 0/0/1 0/0/2 0/0/3 0/0/4 0/0/5
[Huawei-Eth-Trunk1]max active-linknumber 3
路由器(三层):
AR1:
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]undo portswitch
[Huawei-Eth-Trunk1]trunkport GigabitEthernet 0/0/0 0/0/1
[Huawei-Eth-Trunk1]ip add 192.168.1.1 24
AR2:
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]undo portswitch
[Huawei-Eth-Trunk1]trunkport GigabitEthernet 0/0/0 0/0/1
[Huawei-Eth-Trunk1]ip add 192.168.1.2 24
标签:Trunk1,Trunk,Huawei,trunkport,链路,Eth
From: https://blog.csdn.net/weixin_57945391/article/details/141164881