思科、华为、华三交换机配置端口聚合

华为-配置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

华三-二层静态聚合配置举例

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 100的报文通过。
[H3C] interface bridge-aggregation 1

[H3C-Bridge-Aggregation1] port link-type trunk

[H3C-Bridge-Aggregation1] port trunk permit vlan 100

[H3C-Bridge-Aggregation1] quit
思科配置链路聚合

进入全局模式:Switch#conf t
进入交换机接口:Sw1(config)#int range f0/1-2
更改接口传输模式:Sw1(config-if)#switchport mode trunk
将接口绑定链路聚合1:Sw1(config-if-range)#channel-group 1 mode on
允许所有vlan通过:Sw1(config-if)#switchport trunk allowed vlan all

你可能感兴趣的:(网络交换机,端口聚合,链路聚合)