华为-配置手工/LACP模式链路聚合
1、配置手工模式链路聚合(默认模式)
[HUAWEI] interface eth-trunk 1
[HUAWEI-Eth-Trunk1] trunkport gigabitethernet 1/0/1 to 1/0/3
[HUAWEI-Eth-Trunk1] port link-type trunk
[HUAWEI-Eth-Trunk1] port trunk allow-pass vlan 10 20
[HUAWEI-Eth-Trunk1] quit
2、配置LACP模式的链路聚合
[HUAWEI] interface eth-trunk 1
[HUAWEI-Eth-Trunk1] mode lacp
[HUAWEI-Eth-Trunk1] trunkport gigabitethernet 1/0/1 to 1/0/3
[HUAWEI-Eth-Trunk1] port link-type trunk
[HUAWEI-Eth-Trunk1] port trunk allow-pass vlan 10 20
[HUAWEI-Eth-Trunk1] quit
![](https://pics0.baidu.com/feed/4a36acaf2edda3ccf07e212abb7fbf0b203f9247.png@f_auto?token=fbe54694b3ed181ebcad2e77de60af7a)
华三-二层静态聚合配置举例
1、# 创建二层聚合接口1
[H3C] interface bridge-aggregation 1
[H3C-Bridge-Aggregation1] quit
2、# 分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中。
[H3C] interface gigabitethernet 1/0/1
[H3C-GigabitEthernet1/0/1] port link-aggregation group 1
[H3C-GigabitEthernet1/0/1] quit
[H3C] interface gigabitethernet 1/0/2
[H3C-GigabitEthernet1/0/2] port link-aggregation group 1
[H3C-GigabitEthernet1/0/2] quit
[H3C] interface gigabitethernet 1/0/3
[H3C-GigabitEthernet1/0/3] port link-aggregation group 1
[H3C-GigabitEthernet1/0/3] quit
3、# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。
[H3C] interface bridge-aggregation 1
[H3C-Bridge-Aggregation1] port link-type trunk
[H3C-Bridge-Aggregation1] port trunk permit vlan 10 20
[H3C-Bridge-Aggregation1] quit
![](https://pics4.baidu.com/feed/a044ad345982b2b7cb49149e873b4de577099b32.png@f_auto?token=7f850e698e3c61a39f7a74351f32b4f4)
华三-二层动态聚合配置举例
1、# 创建二层聚合接口1,并配置该接口为动态聚合模式
[H3C] interface bridge-aggregation 1
[H3C-Bridge-Aggregation1] link-aggregation mode dynamic
[H3C-Bridge-Aggregation1] quit
2、# 分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中。
[H3C] interface gigabitethernet 1/0/1
[H3C-GigabitEthernet1/0/1] port link-aggregation group 1
[H3C-GigabitEthernet1/0/1] quit
[H3C] interface gigabitethernet 1/0/2
[H3C-GigabitEthernet1/0/2] port link-aggregation group 1
[H3C-GigabitEthernet1/0/2] quit
[H3C] interface gigabitethernet 1/0/3
[H3C-GigabitEthernet1/0/3] port link-aggregation group 1
[H3C-GigabitEthernet1/0/3] quit
3、# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。
[H3C] interface bridge-aggregation 1
[H3C-Bridge-Aggregation1] port link-type trunk
[H3C-Bridge-Aggregation1] port trunk permit vlan 10 20
[H3C-Bridge-Aggregation1] quit
![](https://pics2.baidu.com/feed/83025aafa40f4bfbef290a5ab4d9fefaf6361867.png@f_auto?token=a77121409448400b05086624d874bd1d)
锐捷-配置静态/动态模式链路聚合
1、二层静态链路聚合
Ruijie(config)#interface range gigabitEthernet 0/1-3
Ruijie(config-if-range)#port-group 1
Ruijie(config-if-range)#exit
Ruijie(config)#interface aggregateport 1
Ruijie(config-if-AggregatePort 1)#switchport mode trunk
Ruijie(config-if-AggregatePort 1)#exit
Ruijie(config)#aggregateport load-balance src-dst-ip
Ruijie(config)#exit
2、二层动态链路聚合
Ruijie(config)#interface range gigabitEthernet 0/1-3
Ruijie(config-if-range)#port-group 1 mode active
Ruijie(config-if-range)#exit
Ruijie(config)#interface aggregateport 1
Ruijie(config-if-AggregatePort 1)#switchport mode trunk
Ruijie(config-if-AggregatePort 1)#exit
Ruijie(config)#aggregateport load-balance src-dst-ip
Ruijie(config)#exit
![](https://pics1.baidu.com/feed/b8389b504fc2d562ca6414c4278716e577c66cc8.png@f_auto?token=bc533b07c5ec536ef88906e9a2156cd3)