lacp-hash

This command sets which hash function the LACP aggregation uses to determine the interface for outbound packets.

Syntax

lacp-hash { ip-port | mac | mac-ip }

Parameters

ip-port
Indicates that the hash function uses both IP addresses and TCP/UDP ports. IP addresses are layer 3. TCP/UDP ports are layer 4. This approach is not strictly compliant to the LACP standard.
mac
Indicates that the hash function uses only MAC addresses, which is layer 2 data.
mac-ip
Indicates that the hash function uses both MAC addresses and IP addresses. MAC addresses are layer 2. IP addresses are layer 3. This setting is the default value.

Guidelines

The lacp-hash command sets which hash function the Link Aggregation Control Protocol (LACP) aggregation uses to determine the interface for outbound packets.

The command is meaningful only when you use the type command to define LACP as the link aggregation type.

Example

Set the aggregate interface to use LACP and choose the aggregator with the highest bandwidth. The aggregate interface uses only the MAC address hash algorithm.
# type LACP
# lacp-select bandwith
# lacp-hash mac