To implement load balancing on an Eth-Trunk interface, configure a load balancing mode for the Eth-Trunk interface and assign load balancing weights to its member interfaces.
system-view
The system view is displayed.
interface eth-trunk trunk-id
The Eth-Trunk interface is displayed.
load-balance { src-dst-ip | packet-all }
A load balancing mode is configured for the Eth-Trunk interface.
To ensure the bandwidth use efficiency of each member link, you can configure packet-all.
In per-packet load balancing, traffic is evenly distributed to member links by packet, not by data flow.
Per-packet load balancing ensures bandwidth use efficiency, but not packet order, and therefore applies to the scenarios where packet order is not strictly required.
To ensure that packets arrive at the destination in order, configure src-dst-ip.
Per-destination load balancing differentiate data flows based on IP addresses to allow the packets of one data flow to travel along the same member link.
Per-destination load balancing ensures packet order, but not bandwidth use efficiency.
quit
Return to the system view.
interface interface-type interface-number interface-number
The Eth-Trunk member interface is displayed.
distribute-weight weight-value
The load balancing weight is configured for the member interface.
Load balancing is implemented on an Eth-Trunk interface based on the weights of Eth-Trunk member interfaces. A greater weight value indicates a heavier traffic load.
The default weight value is 1.
If an Eth-Trunk interface carries multicast traffic and the distribute-weight command is used to change the load balancing weight for a member interface, run the shutdown and then undo shutdown commands to restart the member interface.