链路聚合基本概念:链路聚合是把两台设备之间的链路聚集在一块,当做一条逻辑链路使用。
链路聚合的作用:
1.增加链路带宽:多个链路聚合成一个带宽更大的链路,一般采用基于流的负载均衡模式;
2.增加链路可靠性:通过聚合组的多个链路,若一条物理链路出现问题,不会影响整个逻辑链路聚合组链路;
3.实现流量的负载均衡。把流量平均分到所有成员链路中去。使得每个成员链路最低限度的降低产生流量阻塞链路的风险
华为交换机配置Eth-Trunk端口(LACP模式)
[A2-42U-ACC]int Eth-Trunk 10
[A2-42U-ACC-Eth-Trunk10]mode lacp
[A2-42U-ACC-Eth-Trunk10]port link-type access
Info: This operation may take a few seconds. Please wait for a moment…done.
[A2-42U-ACC-Eth-Trunk10]port default vlan 88
[A2-42U-ACC]int g 0/0/23
[A2-42U-ACC-GigabitEthernet0/0/23]eth-trunk 10
Info: This operation may take a few seconds. Please wait a moment…done.
[A2-42U-ACC-GigabitEthernet0/0/23]dis th
interface GigabitEthernet0/0/23
eth-trunk 10
return
[A2-42U-ACC]int g 0/0/24
[A2-42U-ACC-GigabitEthernet0/0/24]eth-trunk 10
Info: This operation may take a few seconds. Please wait a moment…done.
[A2-42U-ACC-GigabitEthernet0/0/24]dis th
interface GigabitEthernet0/0/24
eth-trunk 10
return
[A2-42U-ACC]dis int Eth-Trunk 10
Eth-Trunk10 current state : UP
Line protocol current state : UP
Description:
Switch Port, Link-type : access(configured),
PVID : 88, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 2G, Current BW: 2G, The Maximum Frame Length is 9216
除此之外,在对端的设备上也要配置相同的聚合模式。