[sw1]int Bridge-Aggregation 1
[sw1-Bridge-Aggregation1]int range g1/0/1 to g1/0/3
[sw1-if-range]port link-agg group 1
[sw1-vlan10]port g1/0/4
[sw1]int br 1
[sw1-Bridge-Aggregation1]p l t
[sw1-Bridge-Aggregation1]p t per v 10
[sw1-Bridge-Aggregation1]link-aggregation selected-port maximum 3 #配置聚合端口最大选中3条链路
[sw2]int br 1
[sw2-Bridge-Aggregation1]int range g1/0/1 to g1/0/3
[sw2-if-range]port link-agg group 1
[sw2]vlan 10
[sw2-vlan10]port g1/0/4
[sw2]int br 1
[sw2-Bridge-Aggregation1]p l t
[sw2-Bridge-Aggregation1]p t per v 10
[sw2-Bridge-Aggregation1]link-aggregation selected-port maximum 3
注意:在配置静态链路聚合时建议先创建聚合接口,然后再将端口加入到聚合口中,在聚合接口上进行相应的配置。如果成员端口的配置与其他成员端口配置不一致会直接影响端口的选中,所以建议将空配置的端口统一加入到聚合接口上进行配置