load-balance hash-arithmetic second-hash

Function

The load-balance hash-arithmetic second-hash command enables two-level hashing for the load-balancing hash algorithm used by an interface board.

The undo load-balance hash-arithmetic second-hash command restores the default configuration.

By default, random is used on the interface board and second-hash is disabled.

Format

load-balance hash-arithmetic second-hash

undo load-balance hash-arithmetic

Parameters

None

Views

Slot view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

There are three types of hash algorithms to implement traffic load balancing.

In two-level load balancing, hash algorithms cannot be configured the same for the first- and second-level load balancing on the router. If they are configured the same, the second-level load balancing does not take effect.

Configuration Impact

The load-balance hash-arithmetic command is cyclic in nature, and only the latest configuration takes effect. After the command is configured, the new hash algorithm takes effect on the interface board to perform traffic load balancing.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Enable two-level hashing for the load-balancing hash algorithm used by an interface board.
<HUAWEI> system-view
[~HUAWEI] slot 1
[~HUAWEI-slot-1] load-balance hash-arithmetic second-hash
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >