Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

family multiservice

Syntax

Hierarchy Level

Description

Configure load balancing based on Layer 2 media access control information. On MX Series routers, configure VPLS load balancing. On M120 and M320 routers only, configure VPLS load balancing based on MPLS labels and IP information. For IPv4 traffic, only the IP source and destination addresses are included in the hash key. For MPLS and IPv4 traffic, one or two MPLS labels and IPv4 source and destination addresses are included. For MPLS Ethernet pseudowires, only one or two MPLS labels are included in the hash key.

Options

You can configure one or more options to load-balance using the packet information that you specify.

destination-mac—Include the destination-address MAC information in the hash key for Layer 2 load balancing.

label-1 (M120 and M320 routers only)—Include the first MPLS label in the hash key. Used for including a one-label packet for per-flow load balancing of IPv4 VPLS traffic based on IP information and MPLS labels.

label-2 (M120 and M320 routers only)—Include the second MPLS label in the hash key. If both label-1 and label-2 are specified, the entire first label and the first 16 bits of the second label are hashed.

payload (MX Series, M120, and M320 routers only)—Include the packet’s IP payload in the hash key.

  • ip (MX Series, M120, and M320 routers only)—Include the IP address of the IPv4 or IPv6 payload in the hash key.

    • layer-3 (MX Series routers only)—Use this to include Layer 3 information from the packet’s IP payload in the hash key.

      • destination-ip-only (MX Series routers only)—Use this to include only the destination IP address in the payload in the hash key.

      • source-ip-only (MX Series routers only)—Use this to include only the source IP address in the payload in the hash key.

      Note:

      You can include either the source-ip-only or the destination-ip-only statement, not both. They are mutually exclusive.

    • layer-3-only (M120, and M320 routers only)—Include only the Layer 3 information from the packet’s IP payload in the hash key.

    • layer-4 (MX Series routers only)—Include Layer 4 information from the packet’s IP payload in the hash key.

    Note:

    On MX Series routers only, you can configure either Layer 3 or Layer 4 load balancing, or both at the same time.

    Note:

    On I chip platforms, an unknown Layer 4 header is excluded from load-balance hashing to avoid undesired packet reordering.

source-mac—Include the source-address MAC information in the hash key.

symmetric-hash (MX Series routers only)—Configure the symmetric hash or symmetric hash complement for configuring symmetrical load balancing on an 802.3ad Link Aggregation Group.

  • complement —Include the complement of the symmetric hash in the 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 in Junos OS Release 8.0.

ip, label-1, label-2, layer-3-only, and payload options introduced in Junos OS Release 9.4.

layer-3, layer-. source-ip-only, and destination-ip-only options introduced in Junos OS Release 9.5.

symmetric-hash and complement options introduced in Junos OS Release 9.6.