Users Guide
hash-algorithm
Changes the hash algorithm used to distribute traffic flows across a Port Channel and ECMP. The ECMP and
LAG options are supported on the S-Series and Z-Series.
Syntax
hash-algorithm {ecmp {crc16 | crc16cc | crc32MSB | crc32LSB | crc-
upper | dest-ip | flow-based-hashing {crc16|crc16cc|crc32MSB|
crc32LSB|xor1|xor2|xor4|xor8|xor16}|lsb | xor1 | xor2 | xor4 |
xor8 | xor16}[[hg {crc16 | crc16cc | crc32MSB | crc32LSB | xor1 |
xor2 | xor4 | xor8 | xor16}]| [lag {crc16 | crc16cc | crc32MSB |
crc32LSB | xor1 | xor2 | xor4 | xor8 | xor16 }][stack-unit|
linecard number | port-set number] | [hg—seed value] | [seedvalue]
To return to the default hash algorithm, use the no hash-algorithm command.
To return to the default ECMP hash algorithm, use the no hash-algorithm ecmp
algorithm-value command.
Parameters
ecmp crc16 |
crc16cc |
crc32MSB |
crc32LSB | crc-
upper | dest-ip |
flow-based-
hashing | crc16|
crc16cc|
crc32MSB|
crc32LSB|xor1 |
xor2 | xor4 | xor8 |
xor16}|lsb | xor1 |
xor2 | xor4 | xor8 |
xor16
Enter the keyword ecmp then one of the following options:
• crc16: Use CRC16_BISYNC — 16 bit CRC16-bisync
polynomial (default)
• crc16cc: Use CRC16_CCITT — 16 bit CRC16 using
CRC16-CCITT polynomial
• crc32MSB: Use CRC32_UPPER — MSB 16 bits of
computed CRC32
• crc32LSB: Use CRC32_LOWER — LSB 16 bits of
computed CRC32
• crc-upper: Uses the upper 32 bits of the key for the hash
computation
• dest-ip: Uses the destination IP for ECMP hashing
• flow-based-hashing: Enter the keywords flow-based-
hashing followed by the algorithm
crc16 |crc16cc |crc32MSB |crc32LSB |xor1 |xor2 |xor4 |xor8
| xor16
• lsb: Returns the LSB of the key as the hash
• xor1: Use CRC16_BISYNC_AND_XOR1 — Upper 8 bits of
CRC16-BISYNC and lower 8 bits of xor1
• xor2: Use CRC16_BISYNC_AND_XOR2 — Upper 8 bits of
CRC16-BISYNC and lower 8 bits of xor2
• xor4: Use CRC16_BISYNC_AND_XOR4 — Upper 8 bits of
CRC16-BISYNC and lower 8 bits of xor4
Equal Cost Multi-Path (ECMP) 737