Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show route terse

    Syntax

    show route terse <logical-system (all | logical-system-name)>

    Syntax (EX Series Switches)

    show route terse

    Release Information

    Command introduced before Junos OS Release 7.4.

    Command introduced in Junos OS Release 9.0 for EX Series switches.

    Description

    Display a high-level summary of the routes in the routing table.

    Note: For BGP routes, the show route terse command displays the local preference attribute and MED instead of the metric1 and metric2 values. This is mostly due to historical reasons.

    To display the metric1 and metric2 value of a BGP route, use the show route extensive command.

    Options

    none
    —

    Display a high-level summary of the routes in the routing table.

    logical-system (all | logical-system-name)
    —

    (Optional) Perform this operation on all logical systems or on a particular logical system.

    Required Privilege Level

    view

    List of Sample Output

    show route terse

    Output Fields

    Table 1 describes the output fields for the show route terse command. Output fields are listed in the approximate order in which they appear.

    Table 1: show route terse Output Fields

    Field Name

    Field Description

    routing-table-name

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

    number destinations

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

    number routes

    Number of routes in the routing table and total number of routes in the following states:

    • active (routes that are active)
    • holddown (routes that are in the pending state before being declared inactive)
    • hidden (routes that are not used because of a routing policy)

    route key

    Key for the state of the route:

    • +—A plus sign indicates the active route, which is the route installed from the routing table into the forwarding table.
    • - —A hyphen indicates the last active route.
    • *—An asterisk 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.

    A

    Active route. An asterisk (*) indicates this is the active route.

    V

    Validation status of the route:

    • ?—Not evaluated. Indicates that the route was not learned through BGP.
    • I—Invalid. Indicates that the prefix is found, but either the corresponding AS received from the EBGP peer is not the AS that appears in the database, or the prefix length in the BGP update message is longer than the maximum length permitted in the database.
    • N—Unknown. Indicates that the prefix is not among the prefixes or prefix ranges in the database.
    • V—Valid. Indicates that the prefix and autonomous system pair are found in the database.

    Destination

    Destination of the route.

    P

    Protocol through which the route was learned:

    • A—Aggregate
    • B—BGP
    • C—CCC
    • D—Direct
    • G—GMPLS
    • I—IS-IS
    • L—L2CKT, L2VPN, LDP, Local
    • K—Kernel
    • M—MPLS, MSDP
    • O—OSPF
    • P—PIM
    • R—RIP, RIPng
    • S—Static
    • T—Tunnel

    Prf

    Preference value of the route. In every routing metric except for the BGP LocalPref attribute, a lesser value is preferred. In order to use common comparison routines, Junos OS stores the 1's complement of the LocalPref value in the Preference2 field. For example, if the LocalPref value for Route 1 is 100, the Preference2 value is -101. If the LocalPref value for Route 2 is 155, the Preference2 value is -156. Route 2 is preferred because it has a higher LocalPref value and a lower Preference2 value.

    Metric 1

    First metric value in the route. For routes learned from BGP, this is the MED metric.

    Metric 2

    Second metric value in the route. For routes learned from BGP, this is the IGP metric.

    Next hop

    Next hop to the destination. An angle bracket (>) indicates that the route is the selected route.

    AS path

    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 originated:

    • I—IGP.
    • E—EGP.
    • ?—Incomplete; typically, the AS path was aggregated.

    Sample Output

    show route terse

    user@host> show route terse
    inet.0: 10 destinations, 12 routes (10 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    A V Destination        P Prf   Metric 1   Metric 2  Next hop        AS path
    * ? 1.0.1.1/32         O  10          1            >10.0.0.2
      ?                    B 170        100                             I
      unverified                                       >10.0.0.2
    * ? 1.1.1.1/32         D   0                       >lo0.2       
    * V 2.2.0.2/32         B 170        110                             200 I
      valid                                            >10.0.0.2
    * ? 10.0.0.0/30        D   0                       >lt-1/2/0.1  
      ?                    B 170        100                             I
      unverified                                       >10.0.0.2
    * ? 10.0.0.1/32        L   0                        Local
    * ? 10.0.0.4/30        B 170        100                             I
      unverified                                       >10.0.0.2
    * ? 10.0.0.8/30        B 170        100                             I
      unverified                                       >10.0.0.2
    * I 172.16.1.1/32      B 170         90                             200 I
      invalid                                          >10.0.0.2
    * N 192.168.2.3/32     B 170        100                             200 I
      unknown                                          >10.0.0.2
    * ? 224.0.0.5/32       O  10          1             MultiRecv

    Published: 2013-08-15