H3C Technologies H3C S7500E Series Switches User Manual
Page 148
11-24
[DeviceA] vlan 20
[DeviceA-vlan20] port gigabitEthernet 2/0/6
[DeviceA-vlan20] quit
# Create Layer 2 aggregate interface 1, and configure the load sharing criterion for the link aggregation
group as the source MAC addresses of packets.
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation load-sharing mode source-mac
[DeviceA-Bridge-Aggregation1] quit
# Assign ports GigabitEthernet 2/0/1 and GigabitEthernet 2/0/2 to link aggregation group 1.
[DeviceA] interface gigabitEthernet 2/0/1
[DeviceA-GigabitEthernet2/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/1] quit
[DeviceA] interface gigabitEthernet 2/0/2
[DeviceA-GigabitEthernet2/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet2/0/2] quit
# Configure Layer 2 aggregate interface 1 as a trunk port and assign it to VLANs 10 and 20.
This configuration automatically propagates to all the member ports in link aggregation group 1.
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20
Please wait... Done.
Configuring GigabitEthernet2/0/1... Done.
Configuring GigabitEthernet2/0/2... Done.
[DeviceA-Bridge-Aggregation1] quit
# Create Layer 2 aggregate interface 2, configure the load sharing criterion for the link aggregation
group as the destination MAC addresses of packets.
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] link-aggregation load-sharing mode destination-mac
[DeviceA-Bridge-Aggregation2] quit
# Assign ports GigabitEthernet 2/0/3 and GigabitEthernet 2/0/4 to link aggregation group 2.
[DeviceA] interface gigabitEthernet 2/0/3
[DeviceA-GigabitEthernet2/0/3] port link-aggregation group 2
[DeviceA-GigabitEthernet2/0/3] quit
[DeviceA] interface gigabitEthernet 2/0/4
[DeviceA-GigabitEthernet2/0/4] port link-aggregation group 2
[DeviceA-GigabitEthernet2/0/4] quit
# Configure Layer 2 aggregate interface 2 as a trunk port and assign it to VLANs 10 and 20.
This configuration automatically propagates to all the member ports in link aggregation group 2.