Reference Guide

Interfaces | 393
For the E-Series TeraScale and ExaScale, you can select one of 47 possible hash algorithms.
Figure 19-17 shows a sample configuration for the
hash-algorithm command.
Figure 19-17. Command example: hash-algorithm
On C-Series and S-Series, the hash-algorithm command is specific to ECMP groups and has different
defaults from the E-Series. The default ECMP hash configuration is
crc-lower. This takes the lower 32 bits
of the hash key to compute the egress port. Other options for ECMP hash-algorithms are:
crc-upper — uses the upper 32 bits of the hash key to compute the egress port
dest-ip — uses destination IP address as part of the hash key
lsb — always uses the least significant bit of the hash key to compute the egress port
To change to another method, use the following command in the CONFIGURATION mode:
Command Syntax Command Mode Purpose
hash-algorithm {algorithm-number} |
{ecmp {checksum|crc|xor}
[number]} lag
{checksum|crc|xor][number]}nh-ecm
p
{[checksum|crc|xor] [number]}}|
{linecard number ip-sa-mask value
ip-da-mask value}
CONFIGURATION Change the default (0) to another algorithm and apply
it to ECMP, LAG hashing, or a particular line card.
Note: To achieve the functionality of hash-align
on the ExaScale platform, do not use CRC as an
hash-algorithm method. For ExaScale systems,
set the default hash-algorithm method to ensure
CRC is not used for LAG. For example,
hash-algorithm ecmp xor lag checksum
nh-ecmp checksum
For details on the algorithm choices, see the command
details in the IP Routing chapter of the FTOS
Command Reference.
Note: E-Series systems require the lag-hash-align microcode be configured in the in the CAM profile.
E-Series TeraScale e
t
includes this microcode as an option with the Default cam profile. E-Series
ExaScale e
x
systems require that a CAM profile be created and specifically include lag-hash-align
microcode.
Command Syntax Command Mode Purpose
hash-algorithm ecmp {crc-upper} |
{dest-ip} | {lsb}
CONFIGURATION Change to another algorithm.
FTOS(conf)##hash-algorithm ecmp xor 26 lag crc 26 nh-ecmp checksum 26
FTOS(conf)#