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 routedestination-prefixextensiveuser@host>show route forwarding-table destinationdestination-prefixSample Output
user@R2>show route 10.0.0.3 extensiveinet.0: 19 destinations, 24 routes (19 active, 0 holddown, 0 hidden)10.0.0.3/32 (1 entry, 1 announced)TSI:KRT in-kernel10.0.0.3/32 -> {so-0/0/1.0}*OSPF Preference: 10Next hop: via so-0/0/1.0, selectedState: <Active Int>Local AS: 65002Age: 5d 16:07:37 Metric: 1Area: 0.0.0.0Task: OSPFAnnouncement bits (2): 0-KRT 4-Resolve inet.0AS path: Iuser@R2>show route forwarding-table destination 10.0.0.3Routing table: inetInternet:Destination Type RtRef Next hop Type Index NhRef Netif10.0.0.3/32 user 1 ucst 294 3so-0/0/1.0What It Means
The sample output shows that the same next hop appears in the output for the
show routedestination-prefixextensiveand theshow route forwarding-table destinationdestination-prefixcommands, indicating that the routing protocol process (rpd) is relaying the correct next hop to the forwarding table.The
show routedestination-prefixextensivecommand displays very detailed route information about the active entries for the specified address or range of addresses.The
show route forwarding-table destinationdestination-prefixcommand 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.
For more information about the
show routecommand, see the JUNOS Routing Protocols and Policies Command Reference.