Operation Manual

Configuration Guide 112
Configuring LAG LAG Configuration
Port Priority
(0-65535)
Specify the Port Priority. A smaller value means a higher port priority.
The port with higher priority in an LAG will be selected as the active port to
forward data. If two ports have the same priority value, the port with a smaller
port number has the higher priority.
Mode Select the LACP mode for the port.
In LACP, the switch uses LACPDU (Link Aggregation Control Protocol Data Unit)
to negotiate the parameters with the peer end. In this way, the two ends select
active ports and form the aggregation link. The LACP mode determines whether
the port will take the initiative to send the LACPDU. There are two modes:
Passive: The port will not send LACPDU before receiving the LACPDU from the
peer end.
Active: The port will take the initiative to send LACPDU.
Status Enable the LACP function of the port. By default, it is disabled.
2.2 Using the CLI
2.2.1 Configuring Load-balancing Algorithm
Follow these steps to configure the load-balancing algorithm:
Step 1 configure
Enter global configuration mode.
Step 2 port-channel load-balance { src-mac | dst-mac | src-dst-mac | src-ip | dst-ip | src-dst-ip }
Select the Hash Algorithm. The switch will choose the ports to transfer the packets based on
the Hash Algorithm. In this way, different data flows are forwarded on different physical links to
implement load balancing.
src-mac
: The computation is based on the source MAC addresses of the packets.
dst-mac:
The computation is based on the destination MAC addresses of the packets.
src-dst-mac:
The computation is based on the source and destination MAC addresses of the
packets.
src-ip:
The computation is based on the source IP addresses of the packets.
dst-ip:
The computation is based on the destination IP addresses of the packets.
src-dst-ip:
The computation is based on the source and destination IP addresses of the packets.
Step 3 show etherchannel load-balance
Verify the configuration of load-balancing algorithm.
Step 4 end
Return to privileged EXEC mode.
Step 5 copy running-config startup-config
Save the settings in the configuration file.