Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show route forwarding-table

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show route forwarding-table 
<detail | extensive | summary> 
<all>
<ccc interface-name>
<destination destination-prefix>
<family family | matching matching>
<interface-name interface-name>
<label name>
<matching matching> 
<multicast> 
<table (default | logical-system-name/routing-instance-name | routing-instance-name)>
<vlan (all | vlan-name)>
<vpn vpn>

Syntax (MX Series Routers)

content_copy zoom_out_map
show route forwarding-table 
<detail | extensive | summary> 
<all>
<bridge-domain (all | domain-name)>
<ccc interface-name>
<destination destination-prefix>
<family family | matching matching>
<interface-name interface-name>
<label name>
<learning-vlan-id learning-vlan-id>
<matching matching> 
<multicast> 
<table (default | logical-system-name/routing-instance-name | routing-instance-name)>
<vlan (all |  vlan-name)>
<vpn vpn>

Syntax (TX Matrix and TX Matrix Plus Routers)

content_copy zoom_out_map
show route forwarding-table 
<detail | extensive | summary> 
<all>
<ccc interface-name>
<destination destination-prefix>
<family family | matching matching>
<interface-name interface-name>
<matching matching> 
<label name>
<lcc number>
<multicast> 
<table routing-instance-name>
<vpn vpn>

Description

Display the Routing Engine's forwarding table, including the network-layer prefixes and their next hops. This command is used to help verify that the routing protocol process has relayed the correction information to the forwarding table. The Routing Engine constructs and maintains one or more routing tables. From the routing tables, the Routing Engine derives a table of active routes, called the forwarding table.

Note:

The Routing Engine copies the forwarding table to the Packet Forwarding Engine, the part of the router that is responsible for forwarding packets. To display the entries in the Packet Forwarding Engine's forwarding table, use the show pfe route command.

Options

none

Display the routes in the forwarding tables. By default, the show route forwarding-table command does not display information about private, or internal, forwarding tables.

detail | extensive | summary

(Optional) Display the specified level of output.

all

(Optional) Display routing table entries for all forwarding tables, including private, or internal, tables.

bridge-domain (all | bridge-domain-name)

(MX Series routers only) (Optional) Display route entries for all bridge domains or the specified bridge domain.

ccc interface-name

(Optional) Display route entries for the specified circuit cross-connect interface.

destination destination-prefix

(Optional) Destination prefix.

family family

(Optional) Display routing table entries for the specified family: bridge (ccc | destination | detail | extensive | interface-name | label | learning-vlan-id | matching | multicast | summary | table | vlan | vpn), ethernet-switching, evpn, fibre-channel, fmembers, inet, inet6, iso, mcsnoop-inet, mcsnoop-inet6, mpls, satellite-inet, satellite-inet6, satellite-vpls, tnp, unix, vpls, or vlan-classification.

interface-name interface-name

(Optional) Display routing table entries for the specified interface.

label name

(Optional) Display route entries for the specified label.

lcc number

(TX Matrix and TX matrix Plus routers only) (Optional) On a routing matrix composed of a TX Matrix router and T640 routers, display information for the specified T640 router (or line-card chassis) connected to the TX Matrix router. On a routing matrix composed of the TX Matrix Plus router and T1600 or T4000 routers, display information for the specified router (line-card chassis) connected to the TX Matrix Plus router.

Replace number with the following values depending on the LCC configuration:

  • 0 through 3, when T640 routers are connected to a TX Matrix router in a routing matrix.

  • 0 through 3, when T1600 routers are connected to a TX Matrix Plus router in a routing matrix.

  • 0 through 7, when T1600 routers are connected to a TX Matrix Plus router with 3D SIBs in a routing matrix.

  • 0, 2, 4, or 6, when T4000 routers are connected to a TX Matrix Plus router with 3D SIBs in a routing matrix.

learning-vlan-id learning-vlan-id

(MX Series routers only) (Optional) Display learned information for all VLANs or for the specified VLAN.

matching matching

(Optional) Display routing table entries matching the specified prefix or prefix length.

multicast

(Optional) Display routing table entries for multicast routes.

table

(Optional) Display route entries for all the routing tables in the main routing instance or for the specified routing instance. If your device supports logical systems, you can also display route entries for the specified logical system and routing instance. To view the routing instances on your device, use the show route instance command.

vlan (all | vlan-name)

(Optional) Display information for all VLANs or for the specified VLAN.

vpn vpn

(Optional) Display routing table entries for a specified VPN.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show route forwarding-table command. Output fields are listed in the approximate order in which they appear. Field names might be abbreviated (as shown in parentheses) when no level of output is specified, or when the detail keyword is used instead of the extensive keyword.

Table 1: show route forwarding-table Output Fields

Field Name

Field Description

Level of Output

Logical system

Name of the logical system. This field is displayed if you specify the table logical-system-name/routing-instance-name option on a device that is configured for and supports logical systems.

All levels

Routing table

Name of the routing table (for example, inet, inet6, mpls).

All levels

Enabled protocols

The features and protocols that have been enabled for a given routing table. This field can contain the following values:

  • BUM hashing—BUM hashing is enabled.

  • MAC Stats—Mac Statistics is enabled.

  • Bridging—Routing instance is a normal layer 2 bridge.

  • No VLAN—No VLANs are associated with the bridge domain.

  • All VLANs—The vlan-id all statement has been enabled for this bridge domain.

  • Single VLAN—Single VLAN ID is associated with the bridge domain.

  • MAC action drop—New MACs will be dropped when the MAC address limit is reached.

  • Dual VLAN—Dual VLAN tags are associated with the bridge domain

  • No local switching—No local switching is enabled for this routing instance..

  • Learning disabled—Layer 2 learning is disabled for this routing instance.

  • MAC limit reached—The maximum number of MAC addresses that was configured for this routing instance has been reached.

  • VPLS—The VPLS protocol is enabled.

  • No IRB l2-copy—The no-irb-layer-2-copy feature is enabled for this routing instance.

  • ACKed by all peers—All peers have acknowledged this routing instance.

  • BUM Pruning—BUM pruning is enabled on the VPLS instance.

  • Def BD VXLAN—VXLAN is enabled for the default bridge domain.

  • EVPN—EVPN protocol is enabled for this routing instance.

  • Def BD OVSDB—Open vSwitch Database (OVSDB) is enabled on the default bridge domain.

  • Def BD Ingress replication—VXLAN ingress node replication is enabled on the default bridge domain.

  • L2 backhaul—Layer 2 backhaul is enabled.

  • FRR optimize—Fast reroute optimization

  • MAC pinning—MAC pinning is enabled for this bridge domain.

  • MAC Aging Timer—The MAC table aging time is set per routing instance.

  • EVPN VXLAN—This routing instance supports EVPN with VXLAN encapsulation.

  • PBBN—This routing instance is configured as a provider backbone bridged network.

  • PBN—This routing instance is configured as a provider bridge network.

  • ETREE—The ETREE protocol is enabled on this EVPN routing instance.

  • ARP/NDP suppression—EVPN ARP NDP suppression is enabled in this routing instance.

  • Def BD EVPN VXLAN—EVPN VXLAN is enabled for the default bridge domain.

  • MPLS control word—Control word is enabled for this MPLS routing instance.

All levels

Address family

Address family (for example, IP, IPv6, ISO, MPLS, and VPLS).

All levels

Destination

Destination of the route.

detail extensive

Route Type (Type)

How the route was placed into the forwarding table. When the detail keyword is used, the route type might be abbreviated (as shown in parentheses):

  • cloned (clon)—(TCP or multicast only) Cloned route.

  • destination (dest)—Remote addresses directly reachable through an interface.

  • destination down (iddn)—Destination route for which the interface is unreachable.

  • interface cloned (ifcl)—Cloned route for which the interface is unreachable.

  • route down (ifdn)—Interface route for which the interface is unreachable.

  • ignore (ignr)—Ignore this route.

  • interface (intf)—Installed as a result of configuring an interface.

  • permanent (perm)—Routes installed by the kernel when the routing table is initialized.

  • user—Routes installed by the routing protocol process or as a result of the configuration.

All levels

Route Reference (RtRef)

Number of routes to reference.

detail extensive

Flags

Route type flags:

  • none—No flags are enabled.

  • accounting—Route has accounting enabled.

  • cached—Cache route.

  • incoming-iface interface-number—Check against incoming interface.

  • prefix load balance—Load balancing is enabled for this prefix.

  • rt nh decoupled—Route has been decoupled from the next hop to the destination.

  • sent to PFE—Route has been sent to the Packet Forwarding Engine.

  • static—Static route.

extensive

Next hop

IP address of the next hop to the destination.

Note:

For static routes that use point-to-point (P2P) outgoing interfaces, the next-hop address is not displayed in the output.

detail extensive

Next hop Type (Type)

Next-hop type. When the detail keyword is used, the next-hop type might be abbreviated (as indicated in parentheses):

  • broadcast (bcst)—Broadcast.

  • deny—Deny.

  • discard (dscd) —Discard.

  • hold—Next hop is waiting to be resolved into a unicast or multicast type.

  • indexed (idxd)—Indexed next hop.

  • indirect (indr)—Indirect next hop.

  • local (locl)—Local address on an interface.

  • routed multicast (mcrt)—Regular multicast next hop.

  • multicast (mcst)—Wire multicast next hop (limited to the LAN).

  • multicast discard (mdsc)—Multicast discard.

  • multicast group (mgrp)—Multicast group member.

  • receive (recv)—Receive.

  • reject (rjct)—Discard. An ICMP unreachable message was sent.

  • resolve (rslv)—Resolving the next hop.

  • unicast (ucst)—Unicast.

  • unilist (ulst)—List of unicast next hops. A packet sent to this next hop goes to any next hop in the list.

  • VxLAN Local—EVPN Type 5 route in kernel.

detail extensive

Index

Software index of the next hop that is used to route the traffic for a given prefix.

detail extensive none

Route interface-index

Logical interface index from which the route is learned. For example, for interface routes, this is the logical interface index of the route itself. For static routes, this field is zero. For routes learned through routing protocols, this is the logical interface index from which the route is learned.

extensive

Reference (NhRef)

Number of routes that refer to this next hop.

detail extensive none

Next-hop interface (Netif)

Interface used to reach the next hop.

detail extensive none

Weight

Value used to distinguish primary, secondary, and fast reroute backup routes. Weight information is available when MPLS label-switched path (LSP) link protection, node-link protection, or fast reroute is enabled, or when the standby state is enabled for secondary paths. A lower weight value is preferred. Among routes with the same weight value, load balancing is possible (see the Balance field description).

extensive

Balance

Balance coefficient indicating how traffic of unequal cost is distributed among next hops when a router is performing unequal-cost load balancing. This information is available when you enable BGP multipath load balancing.

extensive

RPF interface

List of interfaces from which the prefix can be accepted. Reverse path forwarding (RPF) information is displayed only when rpf-check is configured on the interface.

extensive

sftw On Junos OS Evolved devices, sftw is another type of next-hop. A software next-hop can contain a link to another single next-hop, and hence it often works as an indirect next-hop. The usage of sftw helps to reduce churn in Junos OS Evolved objects by providing a common object where topology updates can be reflected. Further MPLS states can also be attached to these software next-hops. When a route is created, a sftw next-hop seems to be created whether it is the management port or the loopback interface.

detail extensive none

Alternate forward nh index

Index number of the alternate next hop interface. Seen with multicast option only.

extensive

Next-hop L3 Interface

The next hop layer 3 interface. This option can be expressed as a VLAN name and is only seen with the multicast option.

extensive

Next-hop L2 Interfaces

The next hop layer 2 interfaces. Seen with multicast option only.

extensive

Sample Output

show route forwarding-table

content_copy zoom_out_map
user@host> show route forwarding-table   
Routing table: default.inet
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    rjct    46     4
0.0.0.0/32         perm     0                    dscd    44     1
172.16.1.0/24         ifdn     0                    rslv   608     1 ge-2/0/1.0
172.16.1.0/32         iddn     0 172.16.1.0            recv   606     1 ge-2/0/1.0
172.16.1.1/32         user     0                    rjct    46     4
172.16.1.1/32         intf     0 172.16.1.1            locl   607     2
172.16.1.1/32         iddn     0 172.16.1.1            locl   607     2
172.16.1.255/32       iddn     0 ff:ff:ff:ff:ff:ff  bcst   605     1 ge-2/0/1.0
10.0.0.0/24        intf     0                    rslv   616     1 ge-2/0/0.0
10.0.0.0/32        dest     0 10.0.0.0           recv   614     1 ge-2/0/0.0
10.0.0.1/32        intf     0 10.0.0.1           locl   615     2
10.0.0.1/32        dest     0 10.0.0.1           locl   615     2
10.0.0.255/32      dest     0 10.0.0.255         bcst   613     1 ge-2/0/0.0
10.1.1.0/24        ifdn     0                    rslv   612     1 ge-2/0/1.0
10.1.1.0/32        iddn     0 10.1.1.0           recv   610     1 ge-2/0/1.0
10.1.1.1/32        user     0                    rjct    46     4
10.1.1.1/32        intf     0 10.1.1.1           locl   611     2
10.1.1.1/32        iddn     0 10.1.1.1           locl   611     2
10.1.1.255/32      iddn     0 ff:ff:ff:ff:ff:ff  bcst   609     1 ge-2/0/1.0
10.206.0.0/16      user     0 10.209.63.254      ucst   419    20 fxp0.0
10.209.0.0/16      user     1 0:12:1e:ca:98:0    ucst   419    20 fxp0.0
10.209.0.0/18      intf     0                    rslv   418     1 fxp0.0
10.209.0.0/32      dest     0 10.209.0.0         recv   416     1 fxp0.0
10.209.2.131/32    intf     0 10.209.2.131       locl   417     2
10.209.2.131/32    dest     0 10.209.2.131       locl   417     2
10.209.17.55/32    dest     0 0:30:48:5b:78:d2   ucst   435     1 fxp0.0
10.209.63.42/32    dest     0 0:23:7d:58:92:ca   ucst   434     1 fxp0.0
10.209.63.254/32   dest     0 0:12:1e:ca:98:0    ucst   419    20 fxp0.0
10.209.63.255/32   dest     0 10.209.63.255      bcst   415     1 fxp0.0
10.227.0.0/16      user     0 10.209.63.254      ucst   419    20 fxp0.0
...

Routing table: iso 
ISO:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                   rjct    27     1
47.0005.80ff.f800.0000.0108.0003.0102.5524.5220.00
intf     0                   locl    28     1

Routing table: inet6
Internet6:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                   rjct     6     1
ff00::/8           perm     0                   mdsc     4     1
ff02::1/128        perm     0 ff02::1           mcst     3     1

Routing table: ccc
MPLS:
Interface.Label    Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    rjct 16     1
100004(top)fe-0/0/1.0

show route forwarding-table detail

content_copy zoom_out_map
user@host> show route forwarding-table detail   
Routing table: inet
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            user     2 0:90:69:8e:b1:1b   ucst   132     4 fxp0.0
default            perm     0                    rjct    14     1
10.1.1.0/24        intf     0 ff.3.0.21          ucst   322     1 so-5/3/0.0
10.1.1.0/32        dest     0 10.1.1.0           recv   324     1 so-5/3/0.0
10.1.1.1/32        intf     0 10.1.1.1           locl   321     1
10.1.1.255/32      dest     0 10.1.1.255         bcst   323     1 so-5/3/0.0
10.21.21.0/24      intf     0 ff.3.0.21          ucst   326     1 so-5/3/0.0
10.21.21.0/32      dest     0 10.21.21.0         recv   328     1 so-5/3/0.0
10.21.21.1/32      intf     0 10.21.21.1         locl   325     1
10.21.21.255/32    dest     0 10.21.21.255       bcst   327     1 so-5/3/0.0
127.0.0.1/32       intf     0 127.0.0.1          locl   320     1
172.17.28.19/32    clon     1 192.168.4.254      ucst   132     4 fxp0.0
172.17.28.44/32    clon     1 192.168.4.254      ucst   132     4 fxp0.0
...

Routing table: private1__.inet
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    rjct    46     1
10.0.0.0/8         intf     0                    rslv   136     1 fxp1.0
10.0.0.0/32        dest     0 10.0.0.0           recv   134     1 fxp1.0
10.0.0.4/32        intf     0 10.0.0.4           locl   135     2
10.0.0.4/32        dest     0 10.0.0.4           locl   135     2

...

Routing table: iso
ISO:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    rjct    38     1

Routing table: inet6
Internet6:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    rjct    22     1
ff00::/8           perm     0                    mdsc    21     1
ff02::1/128        perm     0 ff02::1            mcst    17     1

...

Routing table: mpls
MPLS:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    rjct 28     1

show route forwarding-table summary

content_copy zoom_out_map
user@switch> show route forwarding-table summary             

Routing table: default.inet
Internet:
         user:          6 routes
         perm:          5 routes
         intf:          8 routes
         dest:         12 routes
         ifdn:          1 routes
         iddn:          3 routes

show route forwarding-table extensive

content_copy zoom_out_map
user@switch> show route forwarding-table extensive             

Routing table: default.inet [Index 0]
Internet:

Destination:  default
  Route type: user
  Route reference: 2                   Route interface-index: 0
  Flags: sent to PFE, rt nh decoupled
  Nexthop: 0:12:f2:21:cf:0
  Next-hop type: unicast               Index: 333      Reference: 5
  Next-hop interface: me0.0

Destination:  default
  Route type: permanent
  Route reference: 0                   Route interface-index: 0
  Flags: none
  Next-hop type: reject                Index: 36       Reference: 2

Destination:  0.0.0.0/32
  Route type: permanent
  Route reference: 0                   Route interface-index: 0
  Flags: sent to PFE
  Next-hop type: discard               Index: 34       Reference: 1

Destination:  2.2.2.0/24
  Route type: interface
  Route reference: 0                   Route interface-index: 66
  Flags: sent to PFE
  Next-hop type: resolve               Index: 1309     Reference: 1
  Next-hop interface: ae0.0

Destination:  2.2.2.0/32
  Route type: destination
  Route reference: 0                   Route interface-index: 66
  Flags: sent to PFE
  Nexthop: 2.2.2.0
  Next-hop type: receive               Index: 1307     Reference: 1
  Next-hop interface: ae0.0

Destination:  2.2.2.1/32
  Route type: destination
  Route reference: 0                   Route interface-index: 66
  Flags: sent to PFE
  Nexthop: 0:21:59:cc:89:c0
  Next-hop type: unicast               Index: 1320     Reference: 1
  Next-hop interface: ae0.0

Destination:  2.2.2.2/32
  Route type: interface
  Route reference: 0                   Route interface-index: 0
  Flags: sent to PFE
  Nexthop: 2.2.2.2
  Next-hop type: local                 Index: 1308     Reference: 2

Destination:  2.2.2.2/32
  Route type: destination
  Route reference: 0                   Route interface-index: 66
  Flags: none
  Nexthop: 2.2.2.2
  Next-hop type: local                 Index: 1308     Reference: 2

Destination:  2.2.2.255/32
  Route type: destination
  Route reference: 0                   Route interface-index: 66
  Flags: sent to PFE
  Nexthop: 2.2.2.255
  Next-hop type: broadcast             Index: 1306     Reference: 1
  Next-hop interface: ae0.0

show route forwarding-table ccc

content_copy zoom_out_map
user@switch> show route forwarding-table ccc ge-0/0/0.10             
Routing table: default.mpls
MPLS:
Destination        Type RtRef Next hop           Type Index NhRef Netif
ge-0/0/0.10  (CCC) user     0 3.3.3.2           Push 300112  1343     2 ae1.0

show route forwarding-table family (MPLS)

content_copy zoom_out_map
user@switch> show route forwarding-table family mpls             

Routing table: default.mpls
MPLS:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    dscd    50     1
0                  user     0                    recv    49     3
1                  user     0                    recv    49     3
2                  user     0                    recv    49     3
299776             user     0                   Pop    1334     2 ge-0/0/0.10
299792             user     0                   Pop    1339     2 ge-0/0/0.14
299808             user     0                   Pop    1341     2 ge-0/0/0.2
299824             user     0                   Pop    1344     2 ge-0/0/0.11
299840             user     0                   Pop    1345     2 ge-0/0/0.13
299856             user     0                   Pop    1346     2 ge-0/0/0.18
299872             user     0                   Pop    1347     2 ge-0/0/0.16
299888             user     0                   Pop    1348     2 ge-0/0/0.7
299904             user     0                   Pop    1349     2 ge-0/0/0.20
299920             user     0                   Pop    1350     2 ge-0/0/0.19
299936             user     0                   Pop    1351     2 ge-0/0/0.17
299952             user     0                   Pop    1352     2 ge-0/0/0.9
299968             user     0                   Pop    1353     2 ge-0/0/0.1
299984             user     0                   Pop    1354     2 ge-0/0/0.12
300000             user     0                   Pop    1355     2 ge-0/0/0.8
300016             user     0                   Pop    1356     2 ge-0/0/0.4
300032             user     0                   Pop    1357     2 ge-0/0/0.5
300048             user     0                   Pop    1358     2 ge-0/0/0.3
300064             user     0                   Pop    1359     2 ge-0/0/0.15
ge-0/0/0.1  (CCC)  user     0 3.3.3.2           Push 300064  1340     2 ae1.0
ge-0/0/0.2  (CCC)  user     0 3.3.3.2           Push 299872  1328     2 ae1.0
ge-0/0/0.3  (CCC)  user     0 3.3.3.2           Push 299792  1323     2 ae1.0
ge-0/0/0.4  (CCC)  user     0 3.3.3.2           Push 300016  1337     2 ae1.0
ge-0/0/0.5  (CCC)  user     0 3.3.3.2           Push 299824  1325     2 ae1.0
ge-0/0/0.7  (CCC)  user     0 3.3.3.2           Push 299920  1331     2 ae1.0
ge-0/0/0.8  (CCC)  user     0 3.3.3.2           Push 299840  1326     2 ae1.0
ge-0/0/0.9  (CCC)  user     0 3.3.3.2           Push 299888  1329     2 ae1.0
ge-0/0/0.10  (CCC) user     0 3.3.3.2           Push 300112  1343     2 ae1.0
ge-0/0/0.11  (CCC) user     0 3.3.3.2           Push 299776  1322     2 ae1.0
ge-0/0/0.12  (CCC) user     0 3.3.3.2           Push 299952  1333     2 ae1.0
ge-0/0/0.13  (CCC) user     0 3.3.3.2           Push 300096  1342     2 ae1.0
ge-0/0/0.14  (CCC) user     0 3.3.3.2           Push 299984  1335     2 ae1.0
ge-0/0/0.15  (CCC) user     0 3.3.3.2           Push 299936  1332     2 ae1.0
ge-0/0/0.16  (CCC) user     0 3.3.3.2           Push 299808  1324     2 ae1.0
ge-0/0/0.17  (CCC) user     0 3.3.3.2           Push 300000  1336     2 ae1.0
ge-0/0/0.18  (CCC) user     0 3.3.3.2           Push 300032  1338     2 ae1.0
ge-0/0/0.19  (CCC) user     0 3.3.3.2           Push 299904  1330     2 ae1.0
ge-0/0/0.20  (CCC) user     0 3.3.3.2           Push 299856  1327     2 ae1.0

show route forwarding-table family (IPv6)

content_copy zoom_out_map
user@switch> show route forwarding-table family inet6             
Routing table: default.inet6
Internet6:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    rjct    44     1
::/128             perm     0                    dscd    42     1
ff00::/8           perm     0                    mdsc    43     1
ff02::1/128        perm     0 ff02::1            mcst    39     1

Routing table: default-switch.inet6
Internet6:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    rjct   530     1
::/128             perm     0                    dscd   528     1
2:1::3a00/312      user     0                    indr 131070     2
                                                 comp   572     1
2:1::3a82/320      user     0                    indr 131071     3
                                                 comp   573     1
2:1::3af0/320      user     0                    indr 131071     3
                                                 comp   573     1
2:1:0:ff00::/56    user     0                    mdsc   529     2
ff00::/8           perm     0                    mdsc   529     2
ff02::1/128        perm     0 ff02::1            mcst   526     1

Routing table: __master.anon__.inet6
Internet6:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    rjct   554     1
::/128             perm     0                    dscd   552     1
ff00::/8           perm     0                    mdsc   553     1
ff02::1/128        perm     0 ff02::1            mcst   550     1

show route forwarding-table label

content_copy zoom_out_map
user@switch> show route forwarding-table label 29976             

Routing table: default.mpls
MPLS:
Destination        Type RtRef Next hop           Type Index NhRef Netif
299776             user     0                   Pop    1334     2 ge-0/0/0.10

show route forwarding-table matching

content_copy zoom_out_map
user@switch> show route forwarding-table matching 3             

Routing table: default.inet
Internet:

show route forwarding-table multicast

content_copy zoom_out_map
user@switch> show route forwarding-table multicast             

Routing table: default.inet
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
224.0.0.0/4        perm     1                    mdsc    35     1
224.0.0.1/32       perm     0 224.0.0.1          mcst    31     3
224.0.0.5/32       user     1 224.0.0.5          mcst    31     3

Routing table: __master.anon__.inet
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
224.0.0.0/4        perm     0                    mdsc  1289     1
224.0.0.1/32       perm     0 224.0.0.1          mcst  1285     1

Routing table: default.inet6
Internet6:
Destination        Type RtRef Next hop           Type Index NhRef Netif
ff00::/8           perm     0                    mdsc    43     1
ff02::1/128        perm     0 ff02::1            mcst    39     1

show route forwarding-table destination extensive (EVPN Type 5 route with Type 2 and Type 5 route coexistence)

content_copy zoom_out_map
user@device> show route forwarding-table destination 10.1.1.20 table vrf1 extensive
Routing table: vrf1.inet [Index 9] 
Internet:    
Destination:  10.1.1.20/32
  Route type: user                  
  Route reference: 0                   Route interface-index: 0   
  Multicast RPF nh index: 0             
  P2mpidx: 0              
  Flags: sent to PFE, VxLAN Local 
  Nexthop:  
  Next-hop type: composite             Index: 2694     Reference: 7  
  Next-hop type: indirect              Index: 524326   Reference: 2  
  Next-hop type: unilist               Index: 524288   Reference: 5  
  Nexthop: 10.1.1.1
  Next-hop type: unicast               Index: 1724     Reference: 15 
  Next-hop interface: xe-0/0/1.0    Weight: 0x0  
  Nexthop: 10.1.1.4  Next-hop type: unicast               Index: 1725     Reference: 15 
  Next-hop interface: xe-0/0/4.0    Weight: 0x0

show route forwarding-table extensive (RPF)

The next example is based on the following configuration, which enables an RPF check on all routes that are learned from this interface, including the interface route:

content_copy zoom_out_map
so-1/1/0 {
    unit 0 {
        family inet {
            rpf-check;
            address 192.0.2.2/30;
        }
    }
}

show route forwarding-table (Junos OS Evolved devices with next-hop type 'sftw')

content_copy zoom_out_map
user@host> show route forwarding-table | grep sftw
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            user     0                    sftw     7021     1 re0:mgmt-0.0
10.21.1.0/32       user     0                    sftw     7022     1 et-0/0/32.0

user@host> show route forwarding-table | grep sftw
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            user     0                    sftw     5021     1 re0:mgmt-0.0
10.22.1.0/32       user     0                    sftw     5022     1 et-0/0/32.0

Release Information

Command introduced before Junos OS Release 7.4.

Option bridge-domain introduced in Junos OS Release 7.5

Option learning-vlan-id introduced in Junos OS Release 8.4

Options all and vlan introduced in Junos OS Release 9.6.

footer-navigation