Command Line Reference Guide
Usage
Information
Using CONFIGURATION mode, create an ECMP group ID. You can then assign interfaces to the
ECMP group using CONFIGURATION ECMP-GROUP mode. You can also enable on the port-
channel configuration using the CONFIGURATION ECMP-GROUP command mode.
hash-algorithm
Changes the hash algorithm used to distribute traffic flows across a Port Channel.
S5000
Syntax
hash-algorithm [algorithm-number] | [ecmp {crc | crc-upper |
xor | dest-ip | lsb] | [lag {crc | xor} | [seed]
To return to the default hash algorithm, use the no hash-algorithm command.
To return to the default Equal-cost Multipath Routing (ECMP) hash algorithm, use the no
hash-algorithm ecmp
algorithm-value
command.
Parameters
algorithm-number
Enter the algorithm number. The range is 0 to 47.
ecmp (OPTIONAL) Enter the ecmp keyword followed by the crc, crc-
upper
, xor, dest-ip, or lsb keywords to specify the metric on
which to base route calculations for load balancing.
lag (OPTIONAL) Enter the lag keyword followed by the crc or xor
keywords to specify routing metrics for a specific port-channel.
seed Enter a value with which to seed the algorithm. The range is 0 to
2147483646.
Command Modes CONFIGURATION
Command History
Version 9.0(1.3) Introduced on the S5000.
Usage
Information
The different hash algorithms are based on the number of Port Channel members and packet
values. The default hash algorithm (number 0) yields the most balanced results in various test
scenarios, but if the default algorithm does not provide a satisfactory distribution of traffic, use
the hash-algorithm command to designate another algorithm.
When a Port Channel member leaves or is added to the Port Channel, the hash algorithm is
recalculated to balance traffic across the members.
434