privileged EXEC
show ip route ospf
show ip route ospf
Display OSPF-installed routes, including O/E1/E2 route codes.
Use this command at the Route Summarization boundary in the documented evidence chain.
If an expected O, IA, E1 or E2 route is missing, check show ip ospf neighbor and show ip ospf database for the LSA, then show ip route <prefix> to see whether another source with a lower administrative distance or a longer match wins. Repeat the original test and check the return path.
Privilege privileged EXECState impact Read-onlyProduction Unknown
Field glossary
Important fields projected from persisted Command guidance.
Scope/VRF, interface/direction, peer or target, state, counters, timestamps and error reason.Important persisted output field; use surrounding guidance for interpretation.
Used in these Topics
Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.
Evidence boundary
What this output can establish — and where you must not over-claim.
Supports the state directly exposed by show ip route ospf for the selected object and execution context.
Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.
If an expected O, IA, E1 or E2 route is missing, check show ip ospf neighbor and show ip ospf database for the LSA, then show ip route <prefix> to see whether another source with a lower administrative distance or a longer match wins. Repeat the original test and check the return path.
Command guidance
Execution context
privileged EXEC
Use when
Use this command at the Route Summarization boundary in the documented evidence chain.
Important fields
Scope/VRF, interface/direction, peer or target, state, counters, timestamps and error reason.
Common problems
Wrong context, inactive attachment, asymmetric configuration, stale counters or unsupported release syntax.
Operational impact
Read-only, but broad output or debug-like variants can be expensive on busy devices.
Runtime cautions
Filter to the exact object where supported and compare controlled before/after evidence.
Technical context
Cisco IOS / IOS XE first. A visible summary does not prove every component is reachable; a component route does not prove the aggregate is advertised.
Aliases
ospf routes e1 e2Variants · known-good and broken output
Read the stored sample against its authored expected state and interpretation, then return to the Command evidence boundary for what the observation can and cannot prove.
Bounded illustrative output patternKnown-good · Cisco IOS / IOS XE
O 203.0.113.0/24 [110/20] via 192.0.2.2, 00:10:22, GigabitEthernet1
O IA 198.51.100.0/24 [110/30] via 192.0.2.6, 00:08:11, GigabitEthernet2OSPF-learned routes expected for the scope appear with plausible route type, distance/metric, next hop and egress interface.
Illustrative structural pattern, not verbatim vendor output. OSPF routes in the RIB do not prove every expected LSA exists or that forwarding succeeds beyond the next hop. Next: Check the missing prefix in the LSDB and then CEF/adjacency for installed routes.
Supports the state directly exposed by show ip route ospf for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.If an expected O, IA, E1 or E2 route is missing, check show ip ospf neighbor and show ip ospf database for the LSA, then show ip route <prefix> to see whether another source with a lower administrative distance or a longer match wins. Repeat the original test and check the return path.
Illustrative OSPF routesObserved · Cisco IOS / IOS XE
O 10.30.0.0/16 [110/20] via 10.0.12.2, 00:12:41, GigabitEthernet0/0
O IA 10.40.0.0/16 [110/30] via 10.0.12.2, 00:11:58, GigabitEthernet0/0intra-area and inter-area routes installed
Illustrative RIB shows OSPF administrative distance 110 and OSPF metric after the slash; route codes distinguish intra/inter-area.
Supports the state directly exposed by show ip route ospf for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.If an expected O, IA, E1 or E2 route is missing, check show ip ospf neighbor and show ip ospf database for the LSA, then show ip route <prefix> to see whether another source with a lower administrative distance or a longer match wins. Repeat the original test and check the return path.
Known-good state patternKnown-good · Cisco IOS XE
State pattern: expected object is present, identity/scope matches the controlled test, terminal state is healthy and relevant counters/results are internally consistent.healthy/terminal
show ip route ospf — Known-good. State pattern: expected object is present, identity/scope matches the controlled test, terminal state is healthy and relevant counters/results are internally consistent. Why: this command exposes the OSPF routes installed in the IPv4 routing table. What it proves: only the selected object/context and fields directly returned here. What it does not prove: root cause, adjacent dependency health or end-to-end workload success. Next check: If an expected O, IA, E1 or E2 route is missing, check show ip ospf neighbor and show ip ospf database for the LSA, then show ip route <prefix> to see whether another source with a lower administrative distance or a longer match wins. Repeat the original test and check the return path. Then repeat the original workload/request and verify the return path.
Supports the state directly exposed by show ip route ospf for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.If an expected O, IA, E1 or E2 route is missing, check show ip ospf neighbor and show ip ospf database for the LSA, then show ip route <prefix> to see whether another source with a lower administrative distance or a longer match wins. Repeat the original test and check the return path.
Transitional state patternTransitional · Cisco IOS XE
State pattern: object exists but negotiation, convergence, reconciliation, retry or recovery is still progressing; timers/counters or stage markers should change between samples.in-progress
show ip route ospf — Transitional. State pattern: object exists but negotiation, convergence, reconciliation, retry or recovery is still progressing; timers/counters or stage markers should change between samples. Why: this command exposes the OSPF routes installed in the IPv4 routing table. What it proves: only the selected object/context and fields directly returned here. What it does not prove: root cause, adjacent dependency health or end-to-end workload success. Next check: If an expected O, IA, E1 or E2 route is missing, check show ip ospf neighbor and show ip ospf database for the LSA, then show ip route <prefix> to see whether another source with a lower administrative distance or a longer match wins. Repeat the original test and check the return path. Then repeat the original workload/request and verify the return path.
Supports the state directly exposed by show ip route ospf for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.If an expected O, IA, E1 or E2 route is missing, check show ip ospf neighbor and show ip ospf database for the LSA, then show ip route <prefix> to see whether another source with a lower administrative distance or a longer match wins. Repeat the original test and check the return path.
Broken state patternBroken · Cisco IOS XE
State pattern: expected object is absent, denied, unresolved, failed or divergent from the controlled test; error/result fields identify the directly observed boundary, not automatic root cause.failed/degraded
show ip route ospf — Broken. State pattern: expected object is absent, denied, unresolved, failed or divergent from the controlled test; error/result fields identify the directly observed boundary, not automatic root cause. Why: this command exposes the OSPF routes installed in the IPv4 routing table. What it proves: only the selected object/context and fields directly returned here. What it does not prove: root cause, adjacent dependency health or end-to-end workload success. Next check: If an expected O, IA, E1 or E2 route is missing, check show ip ospf neighbor and show ip ospf database for the LSA, then show ip route <prefix> to see whether another source with a lower administrative distance or a longer match wins. Repeat the original test and check the return path. Then repeat the original workload/request and verify the return path.
Supports the state directly exposed by show ip route ospf for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.If an expected O, IA, E1 or E2 route is missing, check show ip ospf neighbor and show ip ospf database for the LSA, then show ip route <prefix> to see whether another source with a lower administrative distance or a longer match wins. Repeat the original test and check the return path.