Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

show forwarding-options load-balance

 

Syntax

Release Information

Command introduced in Junos OS Release 17.1R1.

Description

Displays the load-balancing hash result. You can view this information for one, two, or three levels of load balancing. This command can be used in two ways to get different load-balancing information based on the parameters:

  • To get the load-balancing decision result for routed IPv4, IPv6, and other L3 traffic, use the following:

    show forwarding-options load-balance ingress-interface <interface-name> family <family-type> source-address <src-IP> destination-address <dest-IP> transport-protocol <transport-protocol> source-port <src-port> destination-port <dest-port> tos <TOS>

    You can use this command when all the packet header details are available.

  • To get the load-balancing decision result for raw packet dump files, use the following:

    show forwarding-options load-balance ingress-interface <interface-name> family <family-type> packet-dump <pkt-dump>

    You can use this command when the packets in the traffic are complex to be described by the 5-tuple.

Note
  • This feature is not supported for multicast flows and L2 packets.

  • The maximum size of the raw packets entered on the CLI is 256 KB.

  • When injecting raw packets, ensure 24 bytes of trailing space, which is accounted for in the packet header length. This space will be used for inserting metadata to the injected probe packet.

Options

interface-nameIngress logical interface.
family-typeLayer 3 family “inet/inet6”.
src-IPSource IP address.
dest-IPDestination IP address.
transport-protocolTransport layer protocol “tcp/udp”.
src-portSource port (0 – 65535).
dest-portDestination port (0 – 65535).
TOSType of service field (0 – 255).
pkt-dumpRaw packet dump in hexadecimal without '0x'. The hexadecimal code of packet information must start from the L3 header (IPv4/IPv6) to the end of the packet. It should be less than 256,000 characters in length.

Required Privilege Level

view

List of Sample Output

AE Egress-IPv6 Egress

MPLS Egress IPv4

Packet hash:IPv4 (MPLS egress)

Packet hash:IPv6 (MPLS egress)

Output Fields

Table 1 lists the output fields for the show forwarding-options load-balance command. Output fields are listed in the order in which they appear.

Table 1: show forwarding-options hyper-mode Output Fields

Field Name

Field Description

Outgoing logical aggregate interface

Egress aggregated Ethernet interface for current parameters

Outgoing member physical interface

Egress physical interface for current parameters

Outgoing next hop address

Egress next hop chosen for current parameters

Outgoing next hop id

Egress next-hop ID chosen for current parameters

Sample Output

AE Egress-IPv6 Egress

user@host> show forwarding-options load-balance family inet6 ingress-interface xe-5/0/3 transport-protocol tcp source-address 2201::2 destination-address 2202::2 source-port 1617 destination-port 1640 tos 224

Sample Output

MPLS Egress IPv4

user@host> show forwarding-options load-balance ingress-interface xe-5/0/3 family inet source-address 102.1.1.2 destination-address 202.1.1.2 tos 4 transport-protocol udp source-port 1431 destination-port 6531

Sample Output

Packet hash:IPv4 (MPLS egress)

user@host> show forwarding-options load-balance ingress-interface xe-5/0/3 family inet packet-dump 4580004e000000003d114b1966010102ca01010205971983003a31abb9b7c07aa5bafa434978696000000001101112134bdfa97e00161a1b1c1d1e1f202122232425262728292a2b2c2d2e2fa073

Note that for the MPLS egress, the outgoing next-hop address will not be displayed.

Sample Output

Packet hash:IPv6 (MPLS egress)

user@host> show forwarding-options load-balance ingress-interface xe-5/0/3 family inet6 packet-dump 6c0000000026113d210100000000000000000000000000022201000000000000000000000000000206b6078000265a60b9b7c07aa5bafa43497869600000000210111213361b3e6300021a1bd63a