configure sharing address-based custom

configure sharing address-based custom [ipv4 [source-only | destination-only | source-and-destination] | hash-algorithm [xor | crc-16 | crc-32 [lower | upper]]]

Description

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.

Syntax Description

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.

Default

Algorithm: source-and-destination.

Hash algorithm: xor.

Usage Guidelines

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 addressing information examined is based on the packet protocol as follows:
  • IPv4 packets—Uses the source and destination IPv4 addresses and Layer4 port numbers as specified with this command.

  • IPv6 packets—Uses the source and destination IPv6 addresses and Layer4 port numbers.

  • MPLS (Multiprotocol Label Switching) packets—Uses the top, second, and reserved labels and the source and destination IP addresses.

  • Non-IP Layer 2—Uses the VLAN (Virtual LAN) ID, the source and destination MAC addresses, and the ethertype.

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.

Example

The following example configures the switch to examine the source IP address:

configure sharing address-based custom ipv4 source-only

History

This command was first available in ExtremeXOS 12.3.

Platform Availability

This command is available on the Summit X450-G2, X460-G2, X670-G2, X770, and ExtremeSwitching X870 series switches.