Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

inet (enhanced-hash-key)

Syntax (EX Series and QFX5100 Switch)

Syntax (QFX10000 Series Switches)

Hierarchy Level

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.

no-incoming-port

Exclude the incoming port number from the hashing algorithm.

vlan-id

Include the VLAN ID field in the hashing algorithm.

Note:

The vlan-id option is not supported and should not be configured on a Virtual Chassis or Virtual Chassis Fabric (VCF) that contains any of the following switches as members: EX4300, EX4600, QFX3500, QFX3600, QFX5100, or QFX5110 switches.

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.