Setting the Link Aggregation Mode to LACP
Context
Link aggregation can work in manual load balancing mode, static LACP mode, or dynamic LACP mode.
In LACP mode, you must manually create an Eth-Trunk and add interfaces to the Eth-Trunk. However, LACP controls active interfaces through negotiation.
Eth-Trunks in dynamic LACP mode are used only when a Huawei device connects to a server. For other scenarios, configuring Eth-Trunks in static LACP mode is recommended to reduce the chances of potential loops.
Procedure
- Run system-view
The system view is displayed.
- Run interface eth-trunk trunk-id
The Eth-Trunk interface view is displayed.
- Configure a working mode of the Eth-Trunk.
Configure the static or dynamic LACP mode.
-
When the two directly connected devices support LACP, static LACP is recommended.
Run mode lacp-static
The Eth-Trunk is configured to work in static LACP mode.
Before configuring an Eth-Trunk, ensure that both devices use the same working mode.
-
When a device is directly connected to a server, the dynamic LACP mode is often used. You can also use the static LACP mode.
Run mode lacp-dynamic
The Eth-Trunk is configured to work in dynamic LACP mode.
-
- Run commit
The configuration is committed.