family inet
Syntax
family inet {
layer-3;
layer-4;
session-id;
symmetric-hash {
complement;
}
}
Hierarchy Level
[edit forwarding-options hash-key]
Description
Configure layer information for the load-balancing specification. Only the IPv4 protocol is supported.
Options
family inet—Incorporate port
data into the hash key for flow determination. By default, port data
is ignored when determining flows.
layer-3—Incorporate Layer 3 (IP) data into the hash key. You must include thelayer-3statement. If you omit thelayer-3statement, the management process removes thehash-keystatement from the configuration and the router behaves as if you specifiedlayer-3.By default, or if you specify only the
layer-3statement, the router uses the following Layer 3 information in the packet header for per-flow load balancing:Source IP address
Destination IP address
Protocol
Incoming interface index
layer-4—Incorporate Layer 4 Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) data into the hash key.If you include the
layer-4statement, the router uses the following Layer 4 information to load-balance:Source port number
Destination port number
IP type of service
session-id—Include the session ID in the hash key.symmetric-hash—Create the symmetric hash key with source and destination ports.complement—Create the complement of the symmetric hash key.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.