Configuring The Hashing Algorithm To Use Fields In The Layer 2 Header For Hashing; Hashing - Juniper EX2200 Hardware Manual

Junos osfor exseries ethernetswitches
Hide thumbs Also See for EX2200:
Table of Contents

Advertisement

Configuring the Hashing Algorithm to Use Fields in the Layer 2 Header for Hashing

Configuring the Hashing Algorithm to Use Fields in the IP Payload for Hashing
Copyright © 2015, Juniper Networks, Inc.
hashing decisions more efficiently by configuring the algorithm to make hashing decisions
using only those fields.
Configuring the Hashing Algorithm to Use Fields in the Layer 2 Header for
Hashing on page 95
Configuring the Hashing Algorithm to Use Fields in the IP Payload for Hashing on page 95
Configuring the Hashing Algorithm to Use Fields in the IPv6 Payload for
Hashing on page 96
To configure the hashing algorithm to use fields in the Layer 2 header for hashing:
Configure the hash mode to Layer 2 header:
1.
[edit forwarding-options enhanced-hash-key]
user@switch# set
hash-mode
The default hash mode is Layer 2 payload. Therefore, this step must be performed if
you have not previously configured the hash mode.
Configure the fields in the Layer 2 header that the hashing algorithm uses for hashing:
2.
[edit forwarding-options enhanced-hash-key]
user@switch# set
layer2
no-source-mac-address | vlan-id}
By default, the hashing algorithm uses the values in the destination MAC address,
Ethertype, and source MAC address fields in the header to hash traffic on the LAG.
You can configure the hashing algorithm to not use the values in these fields by
configuring
no-destination-mac-address
You can also configure the hashing algorithm to include the VLAN ID field in the header
by configuring the
vlan-id
If you want the hashing algorithm to not use the Ethertype field for hashing:
[edit forwarding-options enhanced-hash-key]
user@switch# set layer2 no-ether-type
To configure the hashing algorithm to use fields in the IP payload for hashing:
Configure the hash mode to Layer 2 payload:
1.
[edit forwarding-options enhanced-hash-key]
user@switch# set
hash-mode
The IP payload is not checked by the hashing algorithm unless the hash mode is set
to Layer 2 payload. The default hash mode is Layer 2 payload.
Configure the fields in the IP payload that the hashing algorithm uses for hashing:
2.
[edit forwarding-options enhanced-hash-key]
user@switch# set
inet
{no-ipv4-destination-address | no-ipv4-source-address |
no-l4-destination-port | no-l4-source-port | no-protocol | vlan-id}
layer2-header
{no-destination-mac-address | no-ether-type |
,
no-ether-type
option.
layer2-payload
Chapter 2: Configuration Tasks
, or
no-source-mac-address
.
95

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents