link-aggregation load-sharing mode

Use link-aggregation load-sharing mode to set the link-aggregation load sharing mode for an aggregation group.

Use undo link-aggregation load-sharing mode to restore the default.

Syntax

link-aggregation load-sharing mode { { destination-ip | destination-mac | source-ip | source-mac } * | flexible }

undo link-aggregation load-sharing mode

Default

The group-specific load sharing mode is the same as the global load sharing mode.

Views

Layer 2 aggregate interface view

Layer 3 aggregate interface view

Predefined user roles

network-admin

Parameters

destination-ip: Load shares traffic based on destination IP addresses.

destination-mac: Load shares traffic based on destination MAC addresses.

source-ip: Load shares traffic based on source IP addresses.

source-mac: Load shares traffic based on source MAC addresses.

flexible: Load shares traffic flexibly based on the packet types (Layer 2 protocol packet, IPv4 packet, IPv6 packet, or MPLS packet).

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

If an unsupported load sharing mode is set, an error prompt appears.

In aggregate interface view, the switch supports the following load sharing modes:


[NOTE: ]

NOTE:

Packets cannot be load shared based on source MAC addresses when the destination IP addresses of the packets match multiport ARP entries. For more information about multiport ARP entries, see Layer 3—IP Services Configuration Guide.


Examples

# Configure Layer 2 aggregation group 1 to load share packets based on destination MAC addresses.

<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] link-aggregation load-sharing mode destination-mac

Related commands

link-aggregation global load-sharing mode