hash

Syntax

hash [l2-src-dst | l3-src-dst | l4-src-dst]

Description

This command controls the selection of an interface in a group of aggregate interfaces. The hash type value helps transmit a frame. This configuration must be done at the LAG interface level.

Command context

config-lag-if

Parameters

l2-src-dst
Specifies the load-balancing calculation to include only Layer 2 items, such as source and destination MAC addresses.
l3-src-dst
Specifies the load-balancing calculation to include only Layer 3 items, such as source and destination IP addresses. Default setting.
l4-src-dst
Specifies the load-balancing calculation to include only Layer 4 items, such as source and destination UDP/TCP ports.

Authority

Administrators or local user group members with execution rights for this command.

Example

switch(config-lag-if)# hash l2-src-dst