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


show route

Syntax

show route <brief | detail | extensive> <all | hidden> <destination-prefix> <filters> <routing-table-name>

Description

Display the active entries in the routing tables.

Options

none—Display all active entries in the routing tables.

all—(Optional) Display information about all routes, including hidden entries.

brief—(Optional) Display brief route information.

detail—(Optional) Display detailed route information.

extensive—(Optional) Display very detailed route information.

destination-prefix—(Optional) Display active entries for the specified address or range of addresses.

filters—(Optional) One or more filters that select specific information to display from the routing tables. To simplify the readability and explanation of the filters, each filter is treated as an individual command in this manual, even though you can combine filters in a single show route command. The following is the syntax of the show route command including all filters:

show route <destination-prefix> <summary | detail | extensive> <best | exact | range> 

    <advertising-protocol protocol neighbor-address> <export> <forwarding-table>

    <inactive> <martians> <next-hop> <output> <protocol protocol> 

    <range> <receive-protocol protocol neighbor-address> <source-gateway address>

    <summary> <table routing-table-name> <terse>

    

hidden—(Optional) Display hidden route information.

routing-table-name—(Optional) Display information about a particular routing table.

Default: brief

Required Privilege Level

view

Sample Output: show route

Sample Output: show route brief
Sample Output: show route detail
Sample Output: show route extensive

Options at a Glance

Table 33 summarizes information included in each show route command option. In this table, output fields are listed in alphabetical order. In the Output Fields section, the output fields are listed in the order in which they are displayed.


Table 33: Show Route Output Field Summary

Options
Field Description
Brief
[protocol/preference]—Protocol from which the route was learned and the route's preference value.
Detail Extensive
Age—How long the route has been known.
Detail Extensive
Announcement bits—List of protocols that will announce this route.
Detail Extensive
AS path—AS path through which the route was learned.
Extensive
Destination class—Prefix destination class for class billing.
Detail Extensive
destination-prefix (entries, announced)—Route address. entries is the number of routes for this destination, and announced is the number of routes being announced for this destination.
All
destinations—Number of destinations for which there are routes in the routing table.
Detail Extensive
Inactive reason—Flags for this route, which was not selected as best for a particular destination.
Detail Extensive
Next hop—Network layer address of the directly reachable neighboring system (if applicable) and the interface used to reach it.
Detail Extensive
Preference—Preference value of the route.
Detail Extensive
(protocol) Next hop—Network layer address of a remote CMTS that advertised the prefix. This address is used to recurse through and derive a forwarding next hop.
All
routes—Number of routes in the routing table.
All
routing-table-name—Name of the routing table; for example, inet.0.
Detail Extensive
State—Flags for this route.
Detail Extensive
Static | Direct | Local | protocol-name—How the route was learned.
All
Tag—Tag associated with the route.
Detail Extensive
Task—Name of the task that owns the route.
Brief
time—How long the route has been known.
Extensive
TSI—Header for protocol-specific information.

Output Fields

routing-table-name—Name of the routing table; for example, inet.0.

destinations—Number of destinations for which there are routes in the routing table.

routes—Number of routes in the routing table:

+—A plus sign before [protocol/preference] indicates the active route, which is the route installed from the routing table into the forwarding table.

—A hyphen before [protocol/preference] indicates the last active route.

*—An asterisk before [protocol/preference] indicates that the route is both the active and the last active route. An asterisk before a to line indicates the best subpath to the route.

[protocol/preference]—(Brief output only) Protocol from which the route was learned and the route's preference value.

time—(Brief output only) How long the route has been known.

destination-prefix (entries, announced)—(Detail and Extensive output only) Route address. The value of entries is the number of routes for this destination, and announced is the number of routes being announced for this destination.

TSI—(Extensive output only) Header for protocol-specific information only.

Static | Direct | Local | protocol-name—(Detail and Extensive output only) How the route was learned.

Preference—(Detail and Extensive output only) Preference value of the route.

Next hop—(Detail and Extensive output only) Network layer address of the directly reachable neighboring system (if applicable) and the interface used to reach it.

State—(Detail and Extensive output only) Flags for this route. It can be one or more of the following:

Inactive reason—(Detail and Extensive output only) Flags for this route, which was not selected as best for a particular destination. It can be one or more of the following:

Age—(Detail and Extensive output only) How long the route has been known.

Metric—(Detail and Extensive output only) Tag—Tag associated with the route.

Task—Name of the protocol that has added the route.

Announcement bits—(Detail and Extensive output only) List of protocols that announce this route. n-Resolve inet.x indicates that the route is used for route resolution for next hops found in the routing table inet.x. n is an index used by Juniper Networks Customer Support only.

AS path—(Detail and Extensive output only) AS path through which the route was learned. The letters at the end of the AS path indicate the path origin, providing an indication of the state of the route at the point at which the AS path was originated:

Sample Output: show route brief

user@host> show route brief
inet.0: 33 destinations, 40 routes (32 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both

0.0.0.0/0          *[Static/5] 02:19:41
                    > to 192.168.129.254 via fxp0.0
                    [OSPF/150] 01:40:33, metric 0, tag 0
                      to 10.100.2.1 via fx-0/9/0.0
                    > to 10.100.3.1 via fx-0/5/0.0
10.100.0.0/24      *[OSPF/10] 01:40:33, metric 2
                      to 10.100.2.1 via fx-0/9/0.0
                    > to 10.100.3.1 via fx-0/5/0.0
                    [RIP/100] 02:17:41, metric 2, tag 0
                    > to 10.100.1.1 via fx-0/5/1.0
                      to 10.100.4.1 via gx-0/5/0.0
10.100.1.0/24      *[Direct/0] 02:18:08
                    > via fx-0/5/1.0
10.100.1.2/32      *[Local/0] 02:18:15
                      Local via fx-0/5/1.0
                    ...

Sample Output: show route detail

user@host> show route detail 
inet.0: 33 destinations, 40 routes (32 active, 0 holddown, 1 hidden)
0.0.0.0/0 (2 entries, 1 announced)
        *Static Preference: 5
                Next hop: 192.168.129.254 via fxp0.0, selected
                State: <Active NoReadvrt Int Ext>
                Age: 2:21:09 
                Task: RT
                Announcement bits (1): 0-KRT 
                AS path: I
         OSPF   Preference: 150
                Next hop: 10.100.2.1 via fx-0/9/0.0
                Next hop: 10.100.3.1 via fx-0/5/0.0, selected
                State: <Int Ext>
                Inactive reason: Route Preference
                Age: 1:42:01    Metric: 0       Tag: 0 
                Task: OSPF
                AS path: I
                ...

Sample Output: show route extensive

user@host> show route extensive
inet.0: 33 destinations, 40 routes (32 active, 0 holddown, 1 hidden)
0.0.0.0/0 (2 entries, 1 announced)
TSI:
KRT in-kernel 0.0.0.0/0 -> {192.168.129.254}
        *Static Preference: 5
                Next hop: 192.168.129.254 via fxp0.0, selected
                State: <Active NoReadvrt Int Ext>
                Age: 2:24:42 
                Task: RT
                Announcement bits (1): 0-KRT 
                AS path: I
         OSPF   Preference: 150
                Next hop: 10.100.2.1 via fx-0/9/0.0
                Next hop: 10.100.3.1 via fx-0/5/0.0, selected
                State: <Int Ext>
                Inactive reason: Route Preference
                Age: 1:45:34    Metric: 0       Tag: 0 
                Task: OSPF
                AS path: I
                ...

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