Supported Platforms
show route terse
Syntax
Syntax (EX Series Switches)
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 terseOutput 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:
|
route key | Key for the state of the route:
|
A | Active route. An asterisk (*) indicates this is the active route. |
V | Validation status of the route:
|
Destination | Destination of the route. |
P | Protocol through which the route was learned:
|
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:
|
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