[sw1]int Bridge-Aggregation 1
[sw1-Bridge-Aggregation1]link-agg mode dynamic
[sw1-Bridge-Aggregation1]int range g1/0/1 to g1/0/3
[sw1-if-range]port link-agg group 1
[sw1]vlan 10
[sw1-vlan10]port g1/0/4
[sw1-vlan10]int br 1
[sw1-Bridge-Aggregation1]p l t
[sw1-Bridge-Aggregation1]p t per v 10
[sw1-Bridge-Aggregation1]link-agg selected-port max 3
[sw1]int g1/0/5
[sw1-GigabitEthernet1/0/5]link-agg port-priority 65535
[sw2]int br 1
[sw2-Bridge-Aggregation1]link-agg mode dynamic
[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-vlan10]int br 1
[sw2-Bridge-Aggregation1]p l t
[sw2-Bridge-Aggregation1]p t per v 10
[sw2-Bridge-Aggregation1]link-agg selected-port max 3
[sw1]int g1/0/5
[sw1-GigabitEthernet1/0/5]link-agg port-priority 65535