Eth-trunk链路聚合
原理:Eth-trunk是逻辑上把多条物理链路捆绑等于一条逻辑链路,对上层数据透明传输。
Eth-trunk链路两端物理接口的接口类型、数量、速率、双工模式流控方式等参数必须一致。
作用:负载分担,提高可靠性,增加带宽(trunk接口的总带宽是成员接口带宽之和)
模式:1.手动负载分担模式
2.静态LACP模式
手工负载分担模式配置
将S1和S2的G0/0/1和G0/0/2聚合为一条链路
命令:
S1
<Huawei>sys
[Huawei]sysname S2
[S1]int Eth-Trunk 1
[S1-Eth-Trunk1]int g0/0/1
[S1-GigabitEthernet0/0/1]eth-trunk 1
[S1-GigabitEthernet0/0/1]int g0/0/2
[S1-GigabitEthernet0/0/2]eth-trunk 1
[S1-GigabitEthernet0/0/2]q
[S1]q
<S1>save
<Huawei>sys
[Huawei]sysname S2
[S2]int Eth-Trunk 1
[S2-Eth-Trunk1]int g0/0/1
[S2-GigabitEthernet0/0/1]eth-trunk 1
[S2-GigabitEthernet0/0/1]int g0/0/2
[S2-GigabitEthernet0/0/2]eth-trunk 1
[S2-GigabitEthernet0/0/2]q
[S2]q
<S2>save
静态lacp模式
将S1和S2的g0/0/1、g0/0/2、g0/0/5、三个接口加入链路聚合,配置g0/0/1和g0/0/2为活动接口,g0/0/5(不活动接口)作为备份链路。
命令:
<Huawei>sys
[Huawei]sysname S1
[S1]lacp prilrity 100
[S1]int Eth-Trunk 1
[S1-Eth-Trunk1]mode lacp-static
[S1-Eth-Trunk1]max active-linknumber 2
[S1-Eth-Trunk1]int g0/0/1
[S1-GigabitEthernet0/0/1]lacp priority 100
[S1-GigabitEthernet0/0/1]eth-trunk 1
[S1-GigabitEthernet0/0/1]int g0/0/2
[S1-GigabitEthernet0/0/2]lacp priority 100
[S1-GigabitEthernet0/0/2]eth-trunk 1
[S1-GigabitEthernet0/0/2]int g0/0/5
[S1-GigabitEthernet0/0/5]eth-trunk 1
[S1-GigabitEthernet0/0/5]q
[S1]q
<S1>save
<Huawei>sys
[Huawei]sysname S2
[S2]int Eth-Trunk 1
[S2-Eth-Trunk1]mode lacp-static
[S2-Eth-Trunk1]int g0/0/1
[S2-GigabitEthernet0/0/1]eth-trunk 1
[S2-GigabitEthernet0/0/1]int g0/0/2
[S2-GigabitEthernet0/0/2]eth-trunk 1
[S2-GigabitEthernet0/0/2]int g0/0/5
[S2-GigabitEthernet0/0/5]eth-trunk 1
[S2-GigabitEthernet0/0/5]q
[S2]q
<S2>save