< Home

load-balance (Eth-Trunk interface view)

Function

The load-balance command sets the load balancing mode of the Eth-Trunk interface.

The undo load-balance command restores the default configurations.

Format

load-balance { src-dst-ip | packet-all }

undo load-balance

Parameters

Parameter Description Value

src-dst-ip

Indicates the per-flow load balancing mode, in which the load is balanced by the source and destination IP addresses of the packets.

-

packet-all

Indicates the per-packet load balancing mode, in which the load is balanced by packet.

-

Views

Layer-3 Eth-Trunk interface view, Layer-2 Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

For Eth-Trunk 65535, per-packet load balancing is used by default and only per-packet load balancing can be configured. For other interfaces, per-flow load balancing is used by default and per-packet load balancing can be configured.

Packet-by-packet load balancing can improve the bandwidth usage, but cannot guarantee the packet order. src-dst-ip load balancing can guarantee packet order but cannot improve bandwidth usage.

Example

# Set the Eth-Trunk interface 1 to per-packet load balancing mode.

<sysname> system-view
[sysname] interface eth-trunk 1
[sysname-Eth-Trunk1] load-balance packet-all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >