load-balance hash

For supported header types, selects the fields used for LAG hashing.

Syntax

load-balance hash ethernet { da-mac | etype | sa-mac | vlan }
no load-balance hash ethernet [ da-mac | etype | sa-mac | vlan ]
load-balance hash ip { dst-ip | dst-l4-port | protocol | src-ip | src-l4-port }
no load-balance hash ip [ dst-ip | dst-l4-port | protocol | src-ip | src-l4-port ]
load-balance hash ipv6 { ipv6-dst-ip | ipv6-dst-l4-port | ipv6-next-hdr | ipv6-src-ip | ipv6-src-l4-port }
no load-balance hash ipv6 [ ipv6-dst-ip | ipv6-dst-l4-port | ipv6-next-hdr | ipv6-src-ip | ipv6-src-l4-port ]
load-balance hash mpls { label1 | label2 | label3 }
no load-balance hash mpls [ label1 | label2 | label3 ]

Command Default

All header parameters are enabled.

Parameters

ethernet
da-mac
Specifies Layer 2 destination address.
etype
Specifies the etype option.
sa-mac
Specifies Layer 2 source address.
vlan
Specifies the vlan option.
ip
dst-ip
Specifies destination IP address.
dst-l4-port
Specifies destination Layer 4 port.
protocol
Specifies the IP protocol.
src-ip
Specifies source IP address.
src-l4-port
Specifies source Layer 4 port.
ipv6
ipv6-dst-ip
Specifies destination IPv6 address.
ipv6-dst-l4-port
Specifies IPv6 destination Layer 4 port.
ipv6-next-hdr
Specifies next IPv6 header.
ipv6-src-ip
Specifies source IPv6 address.
ipv6-src-l4-port
Specifies IPv6 source Layer 4 port.
mpls
(Not supported for SLX 9150 or SLX 9250 devices)
label1
Specifies MPLS label 1.
label2
Specifies MPLS label 2.
label3
Specifies MPLS label 3.

Modes

Global configuration mode

Usage Guidelines

The no forms of these commands cancel selection of the relevant protocol headers for LAG hashing.

Examples

The following example specifies Layer 2 destination address.

device# configure terminal
device(config)# load-balance hash ethernet da-mac

The following example cancels the default enablement of IPv4 headers for hashing. It then enables IPv4 source IP address only.

device# configure terminal
device(config)# no load-balance hash ip
device(config)# load-balance hash ip src-ip