The set lsw hashmode command sets the hash mode of a specified switching chip on the device.
| Parameter | Description | Value |
|---|---|---|
| unit-number | Specifies a switching chip. | 0 indicates the switching chip of the main processing unit. |
| mode | Specifies the hash mode. | The value is an integer ranging from 1 to 6.
|
The set lsw hashmode command sets the hash mode of a switching chip in a specific traffic model for traffic load balancing. The execution of this command has an influence on hash-based traffic distribution on trunk interfaces of the switching chip. Therefore, use this command with caution. Otherwise, traffic may be hashed unevenly or packets are dropped, affecting services and reducing device performance.
The default hash mode is 6, indicating that both source and destination IP addresses participate in hash.