37Ethernet link aggregation configuration examplesNOTE:In an aggregation group, only ports that have the same port attributes and class-two configurations (see"Configuration classes") as the reference port (see "Reference port") can operate as Selected ports. Youmust ensure that all member ports have the same port attributes and class-two configurations as thereference port. The other settings only need to be configured on the aggregate interface, not on themember ports.Layer 2 static aggregation configuration exampleNetwork requirementsAs shown in Figure 9:• Device A and Device B are connected through their respective Layer 2 Ethernet interfacesGigabitEthernet 1/0/1 through GigabitEthernet 1/0/3.• Configure a Layer 2 static link aggregation group on Device A and Device B respectively, enableVLAN 10 at one end of the aggregate link to communicate with VLAN 10 at the other end, andVLAN 20 at one end to communicate with VLAN 20 at the other end.• Enable traffic to be load-shared across aggregation group member ports based on source anddestination MAC addresses.Figure 9 Network diagram for Layer 2 static aggregationConfiguration procedure1. Configure Device A# Create VLAN 10, and assign port GigabitEthernet 1/0/4 to VLAN 10. system-view[DeviceA] vlan 10[DeviceA-vlan10] port gigabitethernet 1/0/4[DeviceA-vlan10] quit# Create VLAN 20, and assign port GigabitEthernet 1/0/5 to VLAN 20.[DeviceA] vlan 20GE1/0/2GE1/0/1GE1/0/3 Link aggregation 1 GE1/0/2GE1/0/1GE1/0/3BAGG1 BAGG1Device A Device BVLAN 10VLAN 20GE1/0/4GE1/0/5VLAN 10VLAN 20GE1/0/4GE1/0/5