load-balance hash-fields l2vxlan-vni enable

Function

The load-balance hash-fields l2vxlan-vni enable command configures load balancing based on VXLAN information.

The undo load-balance hash-fields l2vxlan-vni enable command restores the default configuration.

By default, load balancing is not implemented based on VXLAN information.

Format

load-balance hash-fields l2vxlan-vni enable

undo load-balance hash-fields l2vxlan-vni enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

In a Layer 2 VXLAN forwarding scenario, this command can be used to enable load balancing. The load balancing function is implemented using the hash algorithm on the upstream interface board. Traffic is hashed based on traffic characteristics, which are called hash factors. By default, the calculation is performed based on VNIs and MAC addresses. After this command is run, the calculation is performed based on VNIs. If hash factors are more hashable, traffic will be more evenly load-balanced. The device has default values of the hash factors used for load balancing of different service types of packets. Traffic is load balanced based on the default hash factors depending on the service types of packets on the upstream interface board. To implement load balancing better, configure hash factors based on traffic types.

Precautions

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

Example

# Configure load balancing based on VXLAN information.
<HUAWEI> system-view
[~HUAWEI] load-balance hash-fields l2vxlan-vni enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >