show (ospf | ospf3) route
List of Syntax
SyntaxSyntax (EX Series Switch and QFX Series)
Syntax
Syntax (EX Series Switch and QFX Series)
Release Information
Command introduced before Junos OS Release 7.4.
topology option introduced in Junos OS Release 9.0.
realm option introduced in Junos OS Release 9.2.
Description
Display the entries in the Open Shortest Path First (OSPF) routing table.
Options
Required Privilege Level
view
List of Sample Output
show ospf routeshow ospf route extensive
show ospf3 route
show ospf route topology voice
Output Fields
Table 1 list the output fields for the show (ospf | ospf3) route command. Output fields are listed in the approximate order in which they appear.
Table 1: show (ospf | ospf3) route Output Fields
Field Name | Field Description | Output Level |
---|---|---|
Topology | Name of the topology. | All levels |
Prefix | Destination of the route. | All levels |
Path type | How the route was learned:
| All levels |
Route type | The type of routing device from which the route was learned:
| All levels |
NH Type | Next-hop type: LSP or IP. | All levels |
Metric | Route's metric value. | All levels |
NH-interface | (OSPFv3 only) Interface through which the route's next hop is reachable. | All levels |
NH-addr | (OSPFv3 only) IPv6 address of the next hop. | All levels |
NextHop Interface | (OSPFv2 only) Interface through which the route's next hop is reachable. | All levels |
Nexthop addr/label | (OSPFv2 only) If the NH Type is IP, then it is the address of the next hop. If the NH Type is LSP, then it is the name of the label-switched path. | All levels |
Area | Area ID of the route. | detail |
Origin | Router from which the route was learned. | detail |
Type 7 | Route was learned through a not-so-stubby area (NSSA) link-state advertisement (LSA). | detail |
P-bit | Route was learned through NSSA LSA and the propagate bit was set. | detail |
Fwd NZ | Forwarding address is nonzero. Fwd NZ is only displayed if the route is learned through an NSSA LSA. | detail |
optional-capability | Optional capabilities propagated in the router LSA. This field is in the output for intra-area router routes only (when Route Type is Area BR, AS BR, Area/AS BR, or Router), not for interarea router routes or network routes. Three bits in this field are defined as follows:
| detail |
priority | The priority assigned to the prefix:
Note: The priority field applies only to routes of type Network. | detail |
BGP-ORR Generation-ID | Display the BGP-ORR generation identifier of the main OSPF route. This field is shown only for non-zero values. | extensive |
Sample Output
show ospf route
user@host> show ospf route
Topology default Route Table: Prefix Path Route NH Metric NextHop Nexthop Type Type Type Interface Address/LSP 1.1.1.60/32 Intra Network Spring 6 lt-1/2/0.14 10.0.10.70 Bkup SPRING lt-1/2/0.12 10.0.6.60 1.1.1.70/32 Intra Network IP 1 lt-1/2/0.14 10.0.10.70 Bkup LSP (null) 1.1.1.70/32 Intra Network Spring 1 lt-1/2/0.14 10.0.10.70 Bkup SPRING lt-1/2/0.12 10.0.6.60 1.1.1.80/32 Intra Network IP 6 lt-1/2/0.14 10.0.10.70 Bkup IP lt-1/2/0.12 10.0.6.60 1.1.1.80/32 Intra Network Spring 6 lt-1/2/0.14 10.0.10.70 802068 (S=0) Intra Network Mpls 0 lt-1/2/0.14 10.0.10.70 Bkup MPLS lt-1/2/0.12 10.0.6.60 802078 (S=0) Intra Network Mpls 0 lt-1/2/0.14 10.0.10.70 Bkup MPLS lt-1/2/0.12 10.0.6.60 802088 (S=0) Intra Network Mpls 0 lt-1/2/0.14 10.0.10.70 Bkup MPLS lt-1/2/0.12 10.0.6.60 802098 (S=0) Intra Network Mpls 0 lt-1/2/0.14 10.0.10.70 Bkup MPLS lt-1/2/0.12 10.0.6.60 802108 (S=0) Intra Network Mpls 0 lt-1/2/0.14 10.0.10.70 Bkup MPLS lt-1/2/0.12 10.0.6.60 802118 (S=0) Intra Network Mpls 0 lt-1/2/0.14 10.0.10.70 Bkup MPLS lt-1/2/0.12 10.0.6.60 802118 Intra Network Mpls 0 lt-1/2/0.14 10.0.10.70 Bkup MPLS lt-1/2/0.12 10.0.6.60
show ospf route extensive
user@host> show ospf route extensive
Topology default Route Table: Prefix Path Route NH Metric NextHop Nexthop Type Type Type Interface Address/LSP 1.1.1.1 Intra Router IP 100 ge-0/0/2.0 10.1.1.1 area 0.0.0.0, origin 1.1.1.1, optional-capability 0x0 1.1.1.1/32 Intra Network IP 100 ge-0/0/2.0 10.1.1.1 area 0.0.0.0, origin 1.1.1.1, priority medium BGP-ORR generation-id: 1
show ospf3 route
user@host> show ospf3 route
Prefix Path Route NH Metric NextHop Nexthop Type Type Type Interface addr/label 10.255.71.13 Intra Router IP 1 NH-interface fe-0/0/2.0, NH-addr fe80::290:69ff:fe9b:e002 10.255.71.13;0.0.0.2 10.255.245.1 Intra Router IP 40 fxp1.1 192.168.36.17 area 0.0.0.0, origin 10.255.245.1 optional-capability 0x0, 10.255.245.3 Intra AS BR IP 1 fxp2.3 192.168.36.34 area 0.0.0.0, origin 10.255.245.3 optional-capability 0x0, 10.255.245.1/32 Intra Network IP 40 fxp1.1 192.168.36.17 area 0.0.0.0, origin 10.255.245.1, priority high 10.255.245.2/32 Intra Network IP 0 lo0.0 area 0.0.0.0, origin 10.255.245.2, priority medium 10.255.245.3/32 Intra Network IP 1 fxp2.3 192.168.36.34 area 0.0.0.0, origin 10245.3, priority low Intra Transit IP 1 NH-interface fe-0/0/2.0 192::168:222:84/126 Intra Network IP 1 NH-interface fe-0/0/2.0 abcd::71:12/128 Intra Network IP 0 NH-interface lo0.0 abcd::71:13/128 Intra Network LSP 1 NH-interface fe-0/0/2.0, NH-addr lsp-cd
show ospf route topology voice
user@host show ospf route topology voice
Topology voice Route Table: Prefix Path Route NH Metric NextHop Nexthop Type Type Type Interface addr/label 10.255.8.2 Intra Router IP 1 so-0/2/0.0 10.255.8.3 Intra Router IP 2 so-0/2/0.0 10.255.8.1/32 Intra Network IP 0 lo0.0 10.255.8.2/32 Intra Network IP 1 so-0/2/0.0 10.255.8.3/32 Intra Network IP 2 so-0/2/0.0 192.168.8.0/29 Intra Network IP 2 so-0/2/0.0 192.168.8.44/30 Intra Network IP 2 so-0/2/0.0 192.168.8.46/32 Intra Network IP 1 so-0/2/0.0 192.168.8.48/30 Intra Network IP 1 so-0/2/1.0 192.168.8.52/30 Intra Network IP 2 so-0/2/0.0 192.168.9.44/30 Intra Network IP 1 so-0/2/0.0 192.168.9.45/32 Intra Network IP 2 so-0/2/0.0