Supported Platforms
Related Documentation
inet (enhanced-hash-key)
Syntax
Hierarchy Level
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 payload fields in IPv4 traffic used by the hashing algorithm to make hashing decisions.
When IPv4 traffic enters a LAG and the hash mode is set to Layer 2 payload, the hashing algorithm checks the fields configured using the inet statement and uses the information in the fields to decide how to place traffic onto the LAG bundle’s member links or how to forward traffic to the next hop device when ECMP is enabled.
The hashing algorithm, when used to hash LAG bundle traffic, always tries to manage bandwidth by evenly load-balancing all incoming traffic across the member links in the bundle.
The hashing algorithm only inspects the IPv4 fields in the payload to make hashing decisions when the hash mode is set to layer2-payload. The hash mode is set to Layer 2 payload by default. You can set the hash mode to Layer 2 payload using the set forwarding-options enhanced-hash-key hash-mode layer2-payload statement.
Default
The following fields are used by the hashing algorithm to make hashing decisions for IPv4 traffic:
- IP destination address
- IP source address
- Layer 4 destination port
- Layer 4 source port
- Protocol
Options
no-ipv4-destination-address | — | Exclude the IPv4 destination address field from the hashing algorithm. |
no-ipv4-source-address | — | Exclude the IPv4 source address field from the hashing algorithm. |
no-l4-destination-port | — | Exclude the Layer 4 destination port field from the hashing algorithm. |
no-l4-source-port | — | Exclude the Layer 4 source port field from the hashing algorithm. |
no-protocol | — | Exclude the protocol 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.