< Home

set lsw hashmode

Function

The set lsw hashmode command sets the hash mode of a specified switching chip on the device.

Format

set lsw unit-number hashmode mode

Parameters

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.
  • 1: indicates the hash mode involving the source MAC address.
  • 2: indicates the hash mode involving the destination MAC address.
  • 3: indicates the hash mode involving both the source and destination MAC addresses.
  • 4: indicates the hash mode involving the source IP address.
  • 5: indicates the hash mode involving the destination IP address.
  • 6: indicates the hash mode involving both the source and destination IP addresses.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

This command applies only to the USG6515E/6550E/6560E/6580E.

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.

Example

# Set the hash mode of a specified switching chip on the device.

<sysname> system-view
[sysname] set lsw 0 hashmode 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >