HuaweiS300, S500, S2700, S5700, S6700 series switches—Ethernet Link Aggregation Configuration
Routers, switches, firewallsDetailed configuration documentation knowledge base has been established and can be queried in thedialog box!
ConfigurationLACP mode link aggregation
● (Optional) Configure systemLACP priority
● (Optional) Configure interfaceLACP priority
● (Optional) ConfigureLACP preemption
● (Optional) Configure the timeout for receivingLACP messages
● (Optional) Configure the member ports directly connected to the switch and server to forward messages
● CheckLACP mode link aggregation configuration results
1.(Optional) Configure systemLACP priority
1、Background Information
1.1 To distinguish the priority levels of the link aggregation devices at both ends, the systemLACP priority can be configured.
1.2 In LACP mode, the active interfaces selected by both devices must be consistent; otherwise, the link aggregation group cannot be established. To ensure that the active interfaces at both ends remain consistent, one end can be assigned a higher priority, allowing the other end to select its active interface based on the higher priority end.
2、Operation Steps
2.1 Execute the commandsystem-view, enter system view.
2.2 Execute the commandlacp priority priority, configure the systemLACP priority for the current device.
● The lower the value of the systemLACP priority, the higher the priority. By default, the systemLACP priority is32768.
● Choose the end with the smaller systemLACP priority as the active end. If the systemLACP priorities are the same, choose the end with the smallerMAC address as the active end.
2.(Optional) Configure interfaceLACP priority
1、Background Information
● In LACP mode, the interfaceLACP priority can be configured to distinguish the priority of different interfaces being selected as active interfaces. The higher priority interface will be selected as the active interface first.
2、Operation Steps
2.1 Execute the commandsystem-view, enter system view.
2.2 Execute the commandinterface interface-type interface-number, enter interface view.
2.3Execute the commandlacp priority priority, configure the LACP priority for the current interface.
● By default, the interface’s LACP priority is32768. The smaller the value of the interface priority, the higher the interface’s LACP priority.
● If the commandmax active-linknumber link-number is configured in the Eth-Trunk interface view, the commandlacp preempt enable must also be executed to enable the current Eth-Trunk interface’s LACP preemption function; otherwise, it may result in a higher priority interface not being selected as the active interface.
3.(Optional) ConfigureLACP preemption
1、Background Information
1.1 EnablingLACP preemption allows the interface with the highest LACP priority to remain as the active interface. For example, when a high-priority interface switches to inactive due to a fault and then recovers, if preemption is enabled, the high-priority interface will become active again; if preemption is not enabled, that interface cannot become active again.
1.2 The preemption delay, which is the waiting time for preemption, refers to the time that a non-active interface in LACP mode Eth-Trunk needs to wait before switching to an active interface. Configuring the preemption delay can prevent unstable data transmission in Eth-Trunk due to frequent changes in link states.
2、Operation Steps
2.1 Execute the commandsystem-view, enter system view.
2.2 Execute the commandinterface eth-trunk trunk-id, enter Eth-Trunk interface view.
2.3 Execute the commandlacp preempt enable, enable the current Eth-Trunk interface’s LACP preemption function.
● By default, LACP preemption is disabled. To ensure the normal operation of Eth-Trunk, both ends of the Eth-Trunk must be uniformly configured to enable or disable LACP preemption.
2.4 Execute the commandlacp preempt delay delay-time, configure the current Eth-Trunk interface’s LACP preemption waiting time.
● By default, the LACP preemption waiting time is30 seconds. When the preemption waiting times configured at both ends of the link are inconsistent, the longest waiting time will be used as the actual preemption waiting time.
4.(Optional) Configure the timeout for receiving LACP messages
1、Background Information
● To promptly detect changes in the status of the link aggregation group member ports at the opposite end and avoid data loss when the opposite member interface experiences a loop or other faults, the timeout for receivingLACP messages can be configured. If the local member port does not receive the LACP protocol messages sent from the opposite end within the set timeout period, it is considered unreachable, and the local member port status immediately changes toDown, ceasing to forward data.
2、Operation Steps
2.1 Execute the commandsystem-view, enter system view.
2.2 Execute the commandinterface eth-trunk trunk-id, enter Eth-Trunk interface view.
2.3 Execute the commandlacp timeout { fast[ user-defined ] | slow }, configure the timeout for receiving LACP protocol messages for the current interface.
5、(Optional) Configure the member ports directly connected to the switch and server to forward messages
1、Background Information
● When the switch uses LACP mode Eth-Trunk interface directly connected to the server, to avoid negotiation failure due to the direct connection port not being configured with LACP before obtaining the configuration file, the commandlacp force-forward can be configured on the switch’s Eth-Trunk interface. When the Eth-Trunk member port is in a physical Up state, it can still forward data messages even if the opposite end has not enabled the LACP protocol.
2、Operation Steps
2.1 Execute the commandsystem-view, enter system view.
2.2 Execute the commandinterface eth-trunk trunk-id, enter Eth-Trunk interface view.
2.3 Execute the commandlacp force-forward, configure the member port in physical state Up to forward data messages when the opposite end has not joined Eth-Trunk.
● By default, member ports in physical state Up cannot forward data messages when the opposite end has not joined Eth-Trunk.
6.CheckLACP mode link aggregation configuration results
1、Operation Steps
1.1 Execute the commanddisplay eth-trunk [ trunk-id [ interface interface-type interfacenumber | verbose ] ], view Eth-Trunk configuration information.
1.2 Execute the commanddisplay trunkmembership eth-trunk trunk-id, view Eth-Trunk member interface information.
1.3 Execute the commanddisplay eth-trunk [ trunk-id ] load-balance, view Eth-Trunk interface load balancing method.
1.4 Execute the commanddisplay load-balance-profile [ profile-name ], view detailed information of the specified load balancing template.