layer2 (enhanced-hash-key)
Syntax (EX Series and QFX5100 Switch)
layer2 { no-destination-mac-address; no-ether-type; no-source-mac-address; vlan-id; }
Syntax (QFX10002 Switch)
layer2 { no-incoming-port; no-destination-mac-address; no-ether-type; no-source-mac-address; source-mac-address; vlan-id; no-vlan-id; inner-vlan-id; }
Hierarchy Level
[edit forwarding-options enhanced-hash-key]
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-address |
Exclude the destination MAC address field from the hashing algorithm. |
no-ether-type |
Exclude the Ethertype field from the hashing algorithm. |
no-source-mac-address |
Exclude the source MAC address field from the hashing algorithm. |
vlan-id |
Include 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.
Release Information
Statement introduced in Junos OS Release 13.2X51-D15.