Link aggregation is very important for improving link reliability, increasing link bandwidth, and load sharing in the network. Link aggregation in Huawei devices is divided into Manual mode and LACP mode
The number of Huawei link aggregation groups ranges from 0 to 63. There are six types of load sharing modes for link aggregation:
· Based on the original IP
· Based on the original MAC
· Based on the original and destination IP
· Based on the original and destination MAC
· Based on the destination IP
· Based on the destination MAC.
Lab topology

Manual mode Configuration:
In manual mode, the establishment of Eth-Trunk and the joining of member interfaces are manually configured, without the participation of link aggregation control protocol LACP. When you need to provide a larger link bandwidth between two directly connected devices and the device does not support the LACP protocol, you can use the manual mode. At the same time, in manual mode, all active links participate in data forwarding and share traffic.
The Configuration
<HUAWEI> system-view
[HUAWEI] sysname SwitchA
[SwitchA] interface eth-trunk 1
//Create an Eth-Trunk interface with ID 1
[SwitchA-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/3
//Add three member interfaces GE0/0/1 to GE0/0/3 to the Eth-Trunk1 interface
[SwitchA-Eth-Trunk1] port link-type trunk
//Set the interface link type to trunk, the default link type of the interface is not trunk port
[SwitchA-Eth-Trunk1] port trunk allow-pass vlan 5 10
//Allowing the intended VLANs
[SwitchA-Eth-Trunk1] load-balance src-dst-mac
//Configure Eth-Trunk1 to perform load sharing based on source MAC address and destination MAC address
[SwitchA-Eth-Trunk1] quit
Verification
Execute the display eth-trunk 1 command in any view to check whether the Eth-Trunk is successfully created and the member interfaces are added correctly.
[SwitchA] display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SA-XOR-DA
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 3
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/1 Up 1
GigabitEthernet0/0/2 Up 1
GigabitEthernet0/0/3 Up 1
It can be seen from the above information that Eth-Trunk 1 contains three member interfaces GigabitEthernet0/0/1, GigabitEthernet0/0/2, and GigabitEthernet0/0/3, and the status of the member interfaces are all Up. The "Operate status" of Eth-Trunk 1 is up.
LACP mode configuration:
In LACP mode, you can specify the active link and the inactive link. If an active link fails, the link aggregation group automatically selects a link from the inactive link as the active link, and the number of links involved in data forwarding constant. The number of active links ranges from 1-8
Configuration
<HUAWEI> system-view
[HUAWEI] sysname SwitchA
[SwitchA] interface eth-trunk 1
//Create an Eth-Trunk interface with ID 1
[SwitchA-Eth-Trunk1] mode lacp
//Configure the link aggregation mode to LACP mode
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] eth-trunk 1
//Add GE0/0/1 interface to Eth-Trunk1
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] eth-trunk 1
//Add GE0/0/2 interface to Eth-Trunk1
[SwitchA-GigabitEthernet0/0/2] quit
[SwitchA] interface gigabitethernet 0/0/3
[SwitchA-GigabitEthernet0/0/3] eth-trunk 1
//Add GE0/0/3 interface to Eth-Trunk1
[SwitchA-GigabitEthernet0/0/3] quit
[SwitchA] lacp priority 100
//The default LACP priority of the system is 32768. Change the priority of SwitchA to be higher than the priority of SwitchB and act as the active end.
[SwitchA] interface eth-trunk 1
[SwitchA-Eth-Trunk1] max active-linknumber 2
//The upper threshold of the number of active interfaces in the link aggregation group is 8 by default. Modify the upper threshold of the number of active interfaces to 2.
[SwitchA-Eth-Trunk1] quit
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] lacp priority 100
//The LACP priority of the interface is 32768 by default. Modify the LACP priority of the GE0/0/1 interface to 100, as the active interface
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] lacp priority 100
//The LACP priority of the interface is 32768 by default. Modify the LACP priority of the GE0/0/2 interface to 100, as the active interface
[SwitchA-GigabitEthernet0/0/2] quit
Verification
Execute the display eth-trunk 1 command in any view to check whether the link negotiation is successful.
[SwitchA] display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: LACP
Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP
System Priority: 100 System ID: 00e0-fca8-0417
Least Active-linknumber: 1 Max Active-linknumber: 2
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1 Selected 1GE 100 6145 2865 11111100 1
GigabitEthernet0/0/2 Selected 1GE 100 6146 2865 11111100 1
GigabitEthernet0/0/3 Unselect 1GE 32768 6147 2865 11100000 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/1 32768 00e0-fca6-7f85 32768 6145 2609 11111100
GigabitEthernet0/0/2 32768 00e0-fca6-7f85 32768 6146 2609 11111100
GigabitEthernet0/0/3 32768 00e0-fca6-7f85 32768 6147 2609 11110000
From the above information, you can see that the system priority of SwitchA is 100, which is higher than the system priority of SwitchB. The member interfaces GigabitEthernet0/0/1 and GigabitEthernet0/0/2 of the Eth-Trunk become active interfaces and are in the "Selected" state, and the interface GigabitEthernet0/0/3 is in the "Unselect" state. At the same time, it realizes the load sharing of M links and N Redundant backup function of two links.
Link aggregation troubleshooting notes
Is the number of interfaces the same?
Are the link aggregation modes the same?
Is the interface rate the same?
Whether the interface duplex mode is the same?
Whether the interface flow control configuration is the same?

