This command configures the part of the packet examined by the switch when selecting the egress port for transmitting link aggregation, or load-sharing, data.
ipv4 |
IPv4 hash configuration for custom load sharing and L2VPN sharing. |
source-only |
Indicates that the switch should examine the IP source address only. |
destination-only |
Indicates that the switch should examine the IP destination address only. |
source-and-destination |
Indicates that the switch should examine the IP source and destination address. |
hash-algorithm |
Hash algorithm for custom load sharing and L2VPN sharing. |
xor |
Use exclusive-OR for load sharing hash computation. |
crc-16 |
Use CRC-16 for load sharing hash computation. |
crc-32 |
Use CRC-32 for load sharing hash computation. |
lower |
Use lower 16 bits of CRC32 for load sharing hash computation. |
upper |
Use upper 16 bits of CRC32 for load sharing hash computation. |
Algorithm: source-and-destination.
Hash algorithm: xor.
This command specifies the part of the packet header that the switch examines to select the egress port for address-based load-sharing trunks. The address-based load-sharing setting is global and applies to all load-sharing trunks, or LAGs, that are address-based and configured with a custom algorithm. You change this setting by issuing the command again with a different option.
The xor hash algorithm guarantees that the same egress port is selected for traffic distribution based on a pair of IP addresses, Layer4 ports, or both, regardless of which is the source and which is the destination.
For IP-in-IP and GRE tunneled packets, the switch examines the inner header to determine the egress port.
To verify your configuration, use the show ports sharing command.
The following example configures the switch to examine the source IP address:
# configure sharing address-based custom ipv4 source-only
This command was first available in ExtremeXOS 12.3.
This command is supported on the ExtremeSwitching X450-G2, X460-G2, X670-G2, X465, X590, X690, X695, X870, 5520 series switches.