fabric advanced-hash

Required Command-Line Mode = Configure

Use the fabric advanced-hash command to select the criteria for advanced-hashing behavior on stack GigaStreams and GigaSMART groups. You can configure fabric-advanced hash at the chassis level.

The fabric advanced-hash command is supported on the following platforms:

■   GigaVUE‑HC1
■   GigaVUE‑HC1-Plus
■   GigaVUE‑HC2
■   GigaVUE-HC2+
■   GigaVUE‑HC3-v1
■   GigaVUE‑HC3-v2
■   GigaVUE-TA40
■   GigaVUE-TA100
■   GigaVUE-TA200
■   GigaVUE‑TA25
■   GigaVUE‑TA25E

The fabric advanced-hash command has the following syntax:

fabric advanced-hash
     all box-id
    default
    fields
        ethertype
        gtpteid
        ip6dst
        ip6nextHeader
        ip6src
        ipdst
        ipsrc
        macdst
        macsrc
        mpls
        port6dst
        port6src
        portdst

        portsrc

        protocol

        ingressport

   none

The following table describes the arguments for the fabric advanced-hash command:

Argument

Description

box-id

Identifies the chassis to which the advanced-hash algorithm will apply.

(config) # fabric advanced-hash box-id 12

all

Enables all hash criteria fields, including Layer 2, Layer 3, and Layer 4 fields.

Note:  When both Layer 3 (IPv4 or IPv6) and Layer 2 (MAC) fields are enabled for a given GigaStream and there is a mix of Layer 3 and Layer 2 packets, Layer 3 will take precedence. The incremental Layer 3 packets will hash; the incremental Layer 2 packets will not hash.

(config) # fabric advanced-hash all

default

Sets the advanced-hash algorithm to its default settings. By default, the advanced-hash algorithm includes source/destination IPv4/IPv6 addresses and ports (ipsrc, ipdst, ip6src, ip6dst, protocol).

For example:

(config) # fabric advanced-hash default

fields

(config) # fabric advanced-hash fields <fields>

Specifies the hash criteria. Includes the following options:

ethertype—Adds L2 ethertype field.
gtpteid—Adds GTP tunnel endpoint identifier.
ip6dst—Adds IPv6 destination IP.
ip6nextHeader—Adds IPv6 next header field.
ip6src—Adds IPv6 source IP.
ipdst—Adds IPv4 destination IP.
ipsrc—Adds IPv4 source IP.
macdst—Adds L2 destination MAC.
macsrc—Adds L2 source MAC.
mpls—Adds MPLS label (up to three).
port6dst—Adds IPv6 destination port.
port6src—Adds IPv6 source port.
portdst—Adds IPv4 destination port.
portsrc—Adds IPv4 source port.
protocol—Adds IPv4 protocol.
ingressport—Adds ingress port.

Note:  Layer 2 hash criteria (ethertype, macdst, and macsrc) are only honored for Layer 2 packets. They are not used to hash TCP/IP packets.

ipsrc, ipdst, ip6src, and ip6dst fields inside an MPLS tunnel can also be used for hashing across GigaStream ports.

GTP TEID can also be used for hashing across GigaStream ports.

ingress port can also be used for hashing across GigaStream ports.

none

Clears all fields from the advanced hash.

For example:

(config) # fabric advanced-hash box-id 12 none

Related Commands

The following table summarizes the command related to the fabric advanced-hash command:

Task

Command

Displays fabric advanced hash fields for stack GigaStream or gsports

show fabric advanced-hash

Displays fabric advanced hash fields for all the chassis in a table format

show fabric advanced-hash brief

Displays fabric advanced hash fields for a specified box ID

show fabric advanced-hash box-id 24

Displays fabric advanced hash fields for a specified box ID in a table format

show fabric advanced-hash box-id 24 brief

Note: If the chassis is part of a cluster, then the following show commands will display the fabric advanced hash fields for all the boxes in the cluster:

show fabric advanced-hash

show fabric advanced-hash brief