Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

layer2 (enhanced-hash-key)

 

List of Syntax

Syntax (EX Series and QFX5100 Switch)

Syntax (QFX10002 Switch)

Syntax (EX Series and QFX5100 Switch)

Syntax (QFX10002 Switch)

Hierarchy Level

Release Information

Statement introduced in Junos OS Release 13.2X51-D15.

Description

Select the fields in the Layer 2 header that are used by the hashing algorithm to make hashing decisions.

When traffic enters a link aggregation group (LAG) bundle, the hashing algorithm checks the fields configured using this statement and uses the information in the fields to decide how to place traffic onto the LAG bundle’s member links. The hashing algorithm always tries to manage bandwidth by evenly load-balancing all incoming traffic across the member links in the bundle.

When traffic is exiting a device that has enabled ECMP, the hashing algorithm checks the fields configured using this statement and uses the information in the fields to decide how to forward traffic to the next hop device.

The hashing algorithm only inspects the fields in the Layer 2 header when the hash mode is set to Layer 2 header. You can set the hash mode to Layer 2 header using the set forwarding-options enhanced-hash-key hash-mode layer2-header statement.

Default

The hash mode of the hashing algorithm is set to Layer 2 payload, by default. When the hash mode is set to Layer 2 payload, the hashing algorithm does not use fields in the Layer 2 header to make hashing decisions.

The following fields are used by the hashing algorithm when the hash mode of the hashing algorithm is set to Layer 2 header, by default:

  • Destination MAC address

  • Ethertype

  • Source MAC address

Options

no-destination-mac-addressExclude the destination MAC address field from the hashing algorithm.
no-ether-typeExclude the Ethertype field from the hashing algorithm.
no-source-mac-addressExclude the source MAC address field from the hashing algorithm.
vlan-idInclude the VLAN ID field in the hashing algorithm.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.