layer2 (enhanced-hash-key)
Syntax layer2 {
no-destination-mac-address;
no-ether-type;
no-source-mac-address;
vlan-id;
}
Hierarchy Level [edit forwarding-options enhanced-hash-key]
Release Information Statement introduced in Junos OS Release 13.2X51-D15 for EX Series switches.
Statement introduced in Junos OS Release 13.2X51-D20 for QFX Series devices.
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.
Copyright © 2015, Juniper Networks, Inc.198
Network Interfaces for EX4300 Switches