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

show route terse

Syntax

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

Release Information

Command introduced before JUNOS Release 7.4.

Description

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

Options

none — Display a high-level summary of the routes in the routing table on all logical systems.

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 110 describes the output fields for the show route terse command. Output fields are listed in the approximate order in which they appear.

Table 110: 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.

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 software 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 if 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 was originated:

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

Sample Output

show route terse

user@host> show route terse
inet.0: 12 destinations, 12 routes (11 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both

A Destination        P Prf Metric 1   Metric 2    Next hop        AS path
* 0.0.0.0/0          S   5                       >111.222.5.254
* 1.0.0.1/32         D   0                       >at-5/3/0.0
* 1.0.0.2/32         L   0                        Local
* 12.12.12.21/32     L   0                        Reject
* 13.13.13.13/32     D   0                       >t3-5/2/1.0
* 13.13.13.14/32     L   0                        Local
* 13.13.13.21/32     L   0                        Local
* 13.13.13.22/32     D   0                       >t3-5/2/0.0
  127.0.0.1/32       D   0                       >lo0.0
* 111.222.5.0/24     D   0                       >fxp0.0
* 111.222.5.81/32    L   0                        Local
* 224.0.0.5/32       O  10          1             MultiRecv

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