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


Step 4: Examine the Forwarding Table

Purpose

You can examine the set of routes installed in the forwarding table to verify that the routing protocol process (rpd) has relayed the correct information into the forwarding table.

Action

To examine the forwarding table, enter the following CLI commands:

user@host> show route destination-prefix extensive
user@host> show route forwarding-table destination destination-prefix

Sample Output

user@R2> show route 10.0.0.3 extensive    

inet.0: 19 destinations, 24 routes (19 active, 0 holddown, 0 hidden)
10.0.0.3/32 (1 entry, 1 announced)
TSI:
KRT in-kernel 10.0.0.3/32 -> {so-0/0/1.0}
        *OSPF   Preference: 10
                Next hop: via so-0/0/1.0, selected
                State: <Active Int>
                Local AS: 65002 
                Age: 5d 16:07:37        Metric: 1 
                Area: 0.0.0.0
                Task: OSPF
                Announcement bits (2): 0-KRT 4-Resolve inet.0 
                AS path: I

user@R2> show route forwarding-table destination 10.0.0.3    
Routing table: inet
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
10.0.0.3/32        user     1                    ucst   294     3 so-0/0/1.0 

What It Means

The sample output shows that the same next hop appears in the output for the show route destination-prefix extensive and the show route forwarding-table destination destination-prefix commands, indicating that the routing protocol process (rpd) is relaying the correct next hop to the forwarding table.

The show route destination-prefix extensive command displays very detailed route information about the active entries for the specified address or range of addresses.

The show route forwarding-table destination destination-prefix command displays the route entries in the kernel's forwarding table. This is the version of the forwarding table in the Routing Engine. The Routing Engine copies this table to the Packet Forwarding Engine.

NOTE: The show route forwarding-table command is an independent command, not a filter that selects specific information that is displayed from the routing tables. You cannot use this command in conjunction with any of the show route filter options.


For more information about the show route command, see the JUNOS Routing Protocols and Policies Command Reference.


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