Huawei configures link aggregation

1. Link aggregation in manual load balancing mode
In manual load balancing mode, the establishment of Eth-Trunk and the addition of member interfaces are completely configured manually. In this mode, all active links participate in data forwarding and share the traffic equally, thus becoming the load sharing mode. If an active link fails, the link aggregation group automatically shares traffic evenly among the remaining active links.
Insert image description here
Lsw1:
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]trunkport Ethernet 0/0/1 to 0/0/2
Lsw2
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]trunkport Ethernet 0/ 0/1 to 0/0/2
2. LACP mode link aggregation.
Active interfaces and inactive interfaces are determined by LACP protocol negotiation. LACP mode is also called M:N mode. This method can realize the dual functions of link load sharing and link redundancy backup at the same time. In the link aggregation group, M links are active. These links are responsible for forwarding data and load sharing, and the other N links Is inactive as a backup link and does not forward data. When one of the M links fails, the system will select the highest priority link from the N backup links to take over the failed link and start forwarding data.
Insert image description here
Configure the member interfaces on SwitchA to join the Eth-Trunk. The configuration process of SwitchB is similar to that of SwitchA.
SwitchA] interface eth-trunk 1
[SwitchA-Eth-Trunk1] mode lacp
[SwitchA-Eth-Trunk1] quit

[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] eth-trunk 1
[SwitchA-GigabitEthernet0/0/1] quit

[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] eth-trunk 1
[SwitchA-GigabitEthernet0/0/2] quit

[SwitchA] interface gigabitethernet 0/0/3
[SwitchA-GigabitEthernet0/0/3] eth-trunk 1
[SwitchA-GigabitEthernet0/0/3] quit

Configure the system priority on SwitchA to 100, making it the LACP active end
[SwitchA] lacp priority 100. The default is 32768. The smaller the priority, the higher the priority.

Configure the upper threshold of active interfaces on SwitchA to 2
[SwitchA] interface eth-trunk 1
[SwitchA-Eth-Trunk1] max active-linknumber 2
[SwitchA-Eth-Trunk1] quit

Configure the interface priority on SwitchA to determine the active link
[SwitchA] interface gigabitethernet 0/0/1 active interface
[SwitchA-GigabitEthernet0/0/1] lacp priority 100 Default 32768 The smaller the priority, the higher the priority
[SwitchA-GigabitEthernet0/0/ 1] quit
[SwitchA] interface gigabitethernet 0/0/2 active interface
[SwitchA-GigabitEthernet0/0/2] lacp priority 100
[SwitchA-GigabitEthernet0/0/2] quit

Note
1: The ports are all in full-duplex mode
2: The port rates are the same
3: The port types must be the same, such as both Ethernet ports or fiber optic ports;
4: The ports are both access ports and belong to the same VLAN or TRUNK Port
5: If the port is a TRUNK port, its allowed vlan and native vlan attributes should also be the same.
6: The switch can be configured with up to 48 etherchannels.
7: The etherchannel in pagp mode can be configured with up to 8 ports of the same type, that is, 4 for each device. Port
8: Etherchannel in lacp mode can be configured with up to 16 ports of the same type, that is, 8 ports per device.
9: Due to the particularity of some devices, the ports on both sides of the line between link aggregation devices must be the same. (It is best that the models of the devices on both sides of the link aggregation should be the same)

Guess you like

Origin blog.csdn.net/weixin_42121397/article/details/112315965