show route output
Syntax
show route output (address ip-address | interface interface-name) <brief | detail | extensive | terse> <logical-system (all | logical-system-name)>
Syntax (EX Series Switches)
show route output (address ip-address | interface interface-name) <brief | detail | extensive | terse>
Description
Display the entries in the routing table learned through static routes and interior gateway protocols that are to be sent out the interface with either the specified IP address or specified name.
To view routes advertised to a neighbor or received from a neighbor for the BGP protocol, use the show route advertising-protocol bgp
and show route receive-protocol bgp
commands instead.
Options
address ip-address | Display entries in the routing table that are to be sent out the interface with the specified IP address. |
brief | detail | extensive | terse | (Optional) Display the specified level of output. If you do not specify a level of output, the system defaults to |
interface interface-name | Display entries in the routing table that are to be sent out the interface with the specified name. |
logical-system (all | logical-system-name) | (Optional) Perform this operation on all logical systems or on a particular logical system. |
Required Privilege Level
view
Output Fields
For information about output fields, see the output field tables for the show route command, the show route detail command, the show route extensive command, or the show route terse command.
Sample Output
- show route output address
- show route output address detail
- show route output address extensive
- show route output address terse
show route output address
user@host> show route output address 172.16.36.1/24 inet.0: 28 destinations, 30 routes (27 active, 0 holddown, 1 hidden) + = Active Route, - = Last Active, * = Both 172.16.36.0/24 *[Direct/0] 00:19:56 > via so-0/1/2.0 [OSPF/10] 00:19:55, metric 1 > via so-0/1/2.0 private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden) iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) mpls.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden) inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) private1__.inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
show route output address detail
user@host> show route output address 172.16.36.1 detail inet.0: 28 destinations, 30 routes (27 active, 0 holddown, 1 hidden) 172.16.36.0/24 (2 entries, 0 announced) *Direct Preference: 0 Next hop type: Interface Next-hop reference count: 1 Next hop: via so-0/1/2.0, selected State: <Active Int> Age: 23:00 Task: IF AS path: I OSPF Preference: 10 Next-hop reference count: 1 Next hop: via so-0/1/2.0, selected State: <Int> Inactive reason: Route Preference Age: 22:59 Metric: 1 Area: 0.0.0.0 Task: OSPF AS path: I private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden) iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) mpls.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden) inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) private1__.inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
show route output address extensive
The output for the show route output address extensive
command is identical to that of the show route output address detail
command. For sample output, see show route output address detail.
show route output address terse
user@host> show route output address 172.16.36.1 terse inet.0: 28 destinations, 30 routes (27 active, 0 holddown, 1 hidden) + = Active Route, - = Last Active, * = Both A Destination P Prf Metric 1 Metric 2 Next hop AS path * 172.16.36.0/24 D 0 >so-0/1/2.0 O 10 1 >so-0/1/2.0 private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden) iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) mpls.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden) inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) private1__.inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
Release Information
Command introduced before Junos OS Release 7.4.