show forwarding-options load-balance ecmp|trunk
Syntax
show forwarding-options load-balance ecmp
(ipv4 | ipv6 | l2)
� ipv4 source-ip source-ip destination-ip destination-ip vlan-id vlan-id l4-source-port l4-source-port l4-destination-port l4-destination-port protocol protocol ingress-interface interface
� ipv6 source-ip source-ip destination-ip destination-ip vlan-id vlan-id l4-source-port l4-source-port l4-destination-port l4-destination-port next-header next-header ingress-interface interface
� l2 source-mac source-mac destination-mac destination-mac ether-type ethertype vlan-id vlan-id ingress-interface interface (destination-ipv4-address destination-ipv4-address | destination-ipv6-address destination-ipv6-address)
Syntax
show forwarding-options load-balance trunk
(ipv4 | ipv6 | l2)
� ipv4 source-ip source-ip destination-ip destination-ip vlan-id vlan-id l4-source-port l4-source-port l4-destination-port l4-dest-port protocol protocol ingress-interface interface egress-ae-interface interface packet-type (broadcast | l2-multicast | l3-multicast|unicast |unknown-unicast)
� ipv6 source-ip source-ip destination-ip destination-ip vlan-id vlan-id l4-source-port l4-source-port l4-destination-port l4-destination-port next-header next-header ingress-interface interface egress-ae-interface interface packet-type (broadcast | l2-multicast | l3-multicast | unicast | unknown-unicast)
� l2 source-mac source-mac destination-mac destination-mac ether-type ethertype vlan-id vlan-id ingress-interface interface egress-ae-interface interface packet-type (broadcast | l2-multicast | l3-multicast| unicast | unknown-unicast)
Description
Display hash parameters used by the hashing algorithm and the final egress interface for the traffic you�re interested in. Use the command for ECMP (Layer 3 load balancing) or for aggregated Ethernet interfaces (Layer 2 load balancing). Use these commands to troubleshoot issues for which you need to know the packet path.
The show forwarding-options load-balance option is not available in
Junos EVO.
Some options are required. If you do not specify those required options when you enter the command, you are provided with an error message that tells you that you must provide a value for the field. The required options are shown in boldface text in the preceding Syntax sections and are marked as �(Required)� in the following Options section.
To use this command, specify one of the ipv4,
ipv6, or l2 required options, with the choice of that
option based on the hash mode that is configured on the switch. Check the
hash-mode value by using the show forwarding-options
enhanced-hash-key command. By default, the hash mode is
layer2-payload. When the hash mode is layer2-payload,
specify the l2 option for Layer 2 packets (ARP, STP, and so on), the
ipv4 option for IPv4 packets, and the ipv6 option for
IPv6 packets. When the hash mode is layer2-header, specify the
l2 option for all types of packets. Next, provide valid inputs for
Hash settings that are marked Yes in the show
forwarding-options enhanced-hash-key command output. A value of 0 (zero) is
automatically supplied for input for Hash settings fields that are marked
as No in the same command output.
You do not need to provide input for fields such as ECMP Next-hop and
Next-hop ID/Type (see these in the sample later in this document).
Values for those fields are provided automatically.
Options
| destination-ip destination-ip | (Required) Destination IP address. |
| destination-ipv4-address destination-ipv4-address | (Required) Destination IPv4 address. |
| destination-ipv6-address destination-ipv6-address | (Required) Destination IPv6 address. |
| destination-mac destination-mac | (Required) Destination MAC address. |
| egress-ae-interface interface | Egress aggregated Ethernet LAG interface�the LAG bundle to which the traffic is destined. |
| ether-type ethertype | Ethertype value. |
| ingress-interface interface | (Required) Ingress interface�the network-facing interface where packets enter the switch. |
| ipv4 | (Required) IPv4 packets. |
| ipv6 | (Required) IPv6 packets. |
| l2 | (Required) Layer
2 packets (such as ARP or STP) when the hash mode is |
| l4-destination-port l4-destination-port | Layer 4 destination port number. |
| l4-source-port l4-source-port | Layer 4 source port number. |
| next-header next-header | Next header, as an integer value. Specifies the type of the next header for an IPv6 packet. This field usually specifies the transport layer protocol used by a packet's payload. When extension headers are present in the packet, this field indicates which extension header follows. |
| packet-type (broadcast | l2-multicast | l3-multicast|unicast |unknown-unicast) | Packet type: One of |
| protocol protocol | Protocol, as an integer value. The Protocol field in the IPv4 header contains a number indicating the type of data found in the payload portion of the datagram. |
| source-ip source-ip | (Required) Source IP address. |
| source-mac source-mac | (Required) Source MAC address. |
| vlan-id vlan-id | VLAN ID. |
Required Privilege Level
view
Output Fields
Table 1 lists the output fields for the show forwarding-options load-balance
ecmp and show forwarding-options load-balance trunk commands. Output fields are listed in the order in which they appear.
Field Name |
Field Description |
|---|---|
|
Hash parameters for the selected
hash mode |
|
|
Sample Output
show forwarding-options load-balance ecmp ipv4
user@switch> show forwarding-options load-balance ecmp ipv4 source-ip 192.168.8.193 destination-ip 203.0.113.22 vlan-id 0 l4-source-port 0 l4-destination-port 0 protocol 6 ingress-interface ge-0/0/12
Hash parameters
---------------
Hash Mode : layer2-payload
Ingress interface : 14
VLAN ID : 0
Ether Type : 0x800
Source IP Address : 192.168.8.193
Dest IP Address : 203.0.113.22
Protocol : 6
Source L4 port : 0
Dest L4 port : 0
ECMP Next-hop : 200001
Next-hop ID/ Type : 131071/Unilist
Hash result
-----------
Egress interface : ge-0/0/34
Release Information
Commands introduced in Junos OS Release 20.4R1.