[Contents] [Prev] [Next] [Index] [Report an Error]

show route forwarding-table

Syntax

show route forwarding-table
<detail | extensive | summary>
<ccc interface-name>
<destination>
<family family | matching matching>
<label name>
<multicast>
<table (default | routing-table-name)>
<vpn vpn>

Syntax (Routing Matrix)

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

Release Information

Command introduced before JUNOS Release 7.4.

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. For more information, see the JUNOS System Basics and Services Command Reference.

Options

none — Display the routes in the forwarding table.

detail | extensive | summary — (Optional) Display the specified level of output.

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

destination(Optional) Destination prefix.

family family(Optional) Display routing table entries for the specified family: inet, inet6, iso, mpls, tnp, unix, or vpls.

label name(Optional) Display route entries for the specified label.

lcc number(Routing matrix only) (Optional) Display information for the specified T640 routing node (or line-card chassis) connected to a TX Matrix platform. Replace with a value from 0 through 3.

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

multicast — (Optional) Display routing table entries for multicast routes.

table (default | routing-table-name) — (Optional) Display route entries for all the routing tables in the main routing instance or for the specified routing table.

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

Required Privilege Level

view

List of Sample Output

show route forwarding-table
show route forwarding-table detail
show route forwarding-table destination extensive (Weights and Balances)
show route forwarding-table extensive
show route forwarding-table extensive (RPF)
show route forwarding-table family mpls
show route forwarding-table family vpls
show route forwarding-table family vpls extensive
show route forwarding-table vpn

Output Fields

Table 99 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 may 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 99: show route forwarding-table Output Fields

Field Name

Field Description

Level of Output

Routing table

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

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-ifaceinterface-number—Check against incoming interface.
  • prefix load balance—Load balancing is enabled for this prefix.
  • 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.

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.
  • 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.

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.

none detail extensive

Next-hop interface (Netif)

Interface used to reach the next hop.

none detail extensive

Weight

Value used to distinguish primary, secondary, and fast reroute backup routes. Weight information is available when Multiprotocol Label Switching (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 Border Gateway Protocol (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

show route forwarding-table

user@host> show route forwarding-table
Routing table: inet
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            user     0                   rjct    10     1
default            perm     0                   rjct    12     2
2.2.2.0/24         ifdn     0 f.0.8.0           ucst    39     1 
so-1/1/0.0
2.2.2.1/32         user     0                   rjct    12     2
2.2.2.1/32         intf     0 2.2.2.1           locl    38     1
4.1.1.0/24         intf     0 f.0.8.0           ucst    43     1 
so-1/0/0.0
4.1.1.2/32         intf     0 4.1.1.2           locl    42     1
5.1.1.0/24         user     0                   ucst    44     4 
so-1/0/0.0
10.255.245.220/32  intf     0 10.255.245.220    locl    25     1
10.255.245.245/32  user     0                   ucst    44     4 
so-1/0/0.0
10.255.245.246/32  user     0                   ucst    44     4 
so-1/0/0.0
192.16.0.0/12      user     1 192.168.5.254     ucst    29    11 fxp0.0
192.168.0.0/18     user     0 192.168.5.254     ucst    29    11 fxp0.0
192.168.0.0/20     user     0 192.168.5.254     ucst    29    11 fxp0.0
192.168.1.0/24     user     0 192.168.5.254     ucst    29    11 fxp0.0
192.168.5.0/24     intf     0                   rslv    22     1 fxp0.0
192.168.5.0/32     dest     0 192.168.5.0       recv    20     1 fxp0.0
192.168.5.49/32    dest     0 0:0:c0:e8:69:db   ucst    31     1 fxp0.0
192.168.5.73/32    dest     0 0:a0:c9:85:c:44   ucst    32     1 fxp0.0
192.168.5.80/32    dest     0 0:d0:b7:1e:92:f2  ucst    30     1 fxp0.0
192.168.5.220/32   intf     0 192.168.5.220     locl    21     2

...

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

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 destination extensive (Weights and Balances)

user@host> show route forwarding-table destination 3.4.2.1 extensive
Routing table: inet [Index 0]
Internet:

Destination:  3.4.2.1/32
  Route type: user
  Route reference: 0                   Route interface-index: 0
  Flags: sent to PFE
  Next-hop type: unilist               Index: 262143   Reference: 1
  Nexthop: 4.4.4.4
  Next-hop type: unicast               Index: 335      Reference: 2
  Next-hop interface: so-1/1/0.0       Weight: 22      Balance: 3
  Nexthop: 145.12.1.2
  Next-hop type: unicast               Index: 337      Reference: 2
  Next-hop interface: so-0/1/2.0       Weight: 33      Balance: 33

show route forwarding-table extensive

user@host> show route forwarding-table extensive
Routing table: inet [Index 0] 
Internet:
    
Destination:  default
  Route type: user                  
  Route reference: 2                   Route interface-index: 0   
  Flags: sent to PFE 
  Nexthop: 0:90:69:8e:b1:1b
  Next-hop type: unicast               Index: 132      Reference: 4    
  Next-hop interface: fxp0.0       
    
Destination:  default
  Route type: permanent             
  Route reference: 0                   Route interface-index: 0   
  Flags: none 
  Next-hop type: reject                Index: 14       Reference: 1    
    
Destination:  127.0.0.1/32
  Route type: interface             
  Route reference: 0                   Route interface-index: 0   
  Flags: sent to PFE 
  Nexthop: 127.0.0.1
  Next-hop type: local                 Index: 320      Reference: 1   

... 

Routing table: private1__.inet [Index 1] 
Internet:
    
Destination:  default
  Route type: permanent             
  Route reference: 0                   Route interface-index: 0   
  Flags: sent to PFE 
  Next-hop type: reject                Index: 46       Reference: 1    
    
Destination:  10.0.0.0/8
  Route type: interface             
  Route reference: 0                   Route interface-index: 3   
  Flags: sent to PFE 
  Next-hop type: resolve               Index: 136      Reference: 1    
  Next-hop interface: fxp1.0       

... 

Routing table: iso [Index 0] 
ISO:
    
Destination:  default
  Route type: permanent             
  Route reference: 0                   Route interface-index: 0   
  Flags: sent to PFE 
  Next-hop type: reject                Index: 38       Reference: 1    

Routing table: inet6 [Index 0] 
Internet6:
    
Destination:  default
  Route type: permanent             
  Route reference: 0                   Route interface-index: 0   
  Flags: sent to PFE 
  Next-hop type: reject                Index: 22       Reference: 1    
    
Destination:  ff00::/8
  Route type: permanent             
  Route reference: 0                   Route interface-index: 0   
  Flags: sent to PFE 
  Next-hop type: multicast discard     Index: 21       Reference: 1    
    
... 

Routing table: private1__.inet6 [Index 1] 
Internet6:
    
Destination:  default
  Route type: permanent             
  Route reference: 0                   Route interface-index: 0   
  Flags: sent to PFE 
  Next-hop type: reject                Index: 54       Reference: 1    
    
Destination:  fe80::2a0:a5ff:fe3d:375/128
  Route type: interface             
  Route reference: 0                   Route interface-index: 0   
  Flags: sent to PFE 
  Nexthop: fe80::2a0:a5ff:fe3d:375
  Next-hop type: local                 Index: 75       Reference: 1    
    
... 

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:

so-1/1/0 {
    unit 0 {
        family inet {
            rpf-check;
            address 15.95.1.2/30;
        }
    }
}
user@host> show route forwarding-table extensive
Routing table: inet [Index 0]
Internet:
...
...
Destination:  15.95.1.3/32
  Route type: destination
  Route reference: 0                   Route interface-index: 67
  Flags: sent to PFE
  Nexthop: 15.95.1.3
  Next-hop type: broadcast             Index: 328      Reference: 1
  Next-hop interface: so-1/1/0.0
  RPF interface: so-1/1/0.0

show route forwarding-table family mpls

user@host> show route forwarding-table family mpls
Routing table: mpls                           
MPLS:
Destination        Type RtRef Next hop          Type Index NhRef Netif
default            perm     0                   rjct    19     1
0                  user     0                   recv    18     3
1                  user     0                   recv    18     3
2                  user     0                   recv    18     3
100000             user     0 10.31.1.6         swap  100001     fe-1/1/0.0  
800002             user     0                   Pop              vt-0/3/0.32770  
vt-0/3/0.32770 (VPLS)
                   user     0                   indr   351     4
                                                Push 800000, Push 100002(top) so-0/0/0.0 

show route forwarding-table family vpls

user@host> show route forwarding-table family vpls
Routing table: green.vpls                     
VPLS:
Destination        Type RtRef Next hop          Type Index NhRef Netif
default            dynm     0                   flood   353     1
default            perm     0                   rjct    298     1
fe-0/1/0.0         dynm     0                   flood   355     1
00:90:69:0c:20:1f/48              <<<<<Remote CE

                   dynm     0                   indr   351     4
                                                Push 800000, Push 100002(top) so-0/0/0.0  
00:90:69:85:b0:1f/48              <<<<<<Local CE

                   dynm     0                   ucst   354     2 fe-0/1/0.0 

show route forwarding-table family vpls extensive

user@host> show route forwarding-table family vpls extensive
Routing table: green.vpls [Index 2]
VPLS:

Destination:  default
  Route type: dynamic
  Route reference: 0                   Route interface-index: 72
  Flags: sent to PFE 
  Next-hop type: flood                 Index: 289      Reference: 1
  Next-hop type: unicast               Index: 291      Reference: 3
  Next-hop interface: fe-0/1/3.0
  Next-hop type: unicast               Index: 290      Reference: 3
  Next-hop interface: fe-0/1/2.0

Destination:  default
  Route type: permanent
  Route reference: 0                   Route interface-index: 0
  Flags: none 
  Next-hop type: discard               Index: 341      Reference: 1

Destination:  fe-0/1/2.0
  Route type: dynamic
  Route reference: 0                   Route interface-index: 69
  Flags: sent to PFE 
  Next-hop type: flood                 Index: 293      Reference: 1
  Next-hop type: indirect              Index: 363      Reference: 4
  Next-hop type: Push 800016
  Next-hop interface: at-1/0/1.0
  Next-hop type: indirect              Index: 301      Reference: 5
  Next hop: 10.31.3.2
  Next-hop type: Push 800000
  Next-hop interface: fe-0/1/1.0
  Next-hop type: unicast               Index: 291      Reference: 3
  Next-hop interface: fe-0/1/3.0

Destination:  fe-0/1/3.0
  Route type: dynamic
  Route reference: 0                   Route interface-index: 70
  Flags: sent to PFE 
  Next-hop type: flood                 Index: 292      Reference: 1
  Next-hop type: indirect              Index: 363      Reference: 4
  Next-hop type: Push 800016
  Next-hop interface: at-1/0/1.0
  Next-hop type: indirect              Index: 301      Reference: 5
  Next hop: 10.31.3.2
  Next-hop type: Push 800000
  Next-hop interface: fe-0/1/1.0
  Next-hop type: unicast               Index: 290      Reference: 3
  Next-hop interface: fe-0/1/2.0

Destination:  10:00:00:01:01:01/48
  Route type: dynamic
  Route reference: 0                   Route interface-index: 70
  Flags: sent to PFE, prefix load balance
  Next-hop type: unicast               Index: 291      Reference: 3
  Next-hop interface: fe-0/1/3.0
  Route used as destination:
    Packet count:         6640    Byte count:      675786
  Route used as source
    Packet count:         6894    Byte count:      696424

Destination:  10:00:00:01:01:04/48
  Route type: dynamic
  Route reference: 0                   Route interface-index: 69
  Flags: sent to PFE, prefix load balance
  Next-hop type: unicast               Index: 290      Reference: 3
  Next-hop interface: fe-0/1/2.0
  Route used as destination:
    Packet count:           96    Byte count:        8079
  Route used as source:
    Packet count:          296    Byte count:       24955

Destination:  10:00:00:01:03:05/48
  Route type: dynamic
  Route reference: 0                   Route interface-index: 74
  Flags: sent to PFE, prefix load balance  
  Next-hop type: indirect              Index: 301      Reference: 5
  Next hop: 10.31.3.2
  Next-hop type: Push 800000
  Next-hop interface: fe-0/1/1.0

show route forwarding-table vpn

user@host> show route forwarding-table vpn VPN-A
      Routing table:: VPN-A.inet 
Internet: 
      Destination        Type RtRef Nexthop           Type Index NhRef Netif 
      default            perm     0                   rjct     4     4 
      10.39.10.20/30     intf     0 ff.3.0.21         ucst    40     1 
      so-0/0/0.0 
      10.39.10.21/32     intf     0 10.39.10.21       locl    36     1 
      10.255.14.172/32   user     0                   ucst    69     2 
      so-0/0/0.0 
      10.255.14.175/32   user     0                   indr    81     3 
                                                      Push 100004, Push 
      100004(top) so-1/0/0.0 
      224.0.0.0/4        perm     2                   mdsc     5     3 
      224.0.0.1/32       perm     0 224.0.0.1         mcst     1     8 
      224.0.0.5/32       user     1 224.0.0.5         mcst     1     8 
      255.255.255.255/32 perm     0                   bcst     2     3 

[Contents] [Prev] [Next] [Index] [Report an Error]