Pcornel
Browse topics
Options
Recent
Favorites
Command · Cisco IOS XE

show ip route ospf

show ip route ospf

Display OSPF-installed routes, including O/E1/E2 route codes.

Read output firstroute source/code, prefix, next hop, outgoing interface
HealthyExpected prefix is installed with intended next hop/source.
WarningRoute absent, unexpected protocol/AD/metric, recursive next hop or wrong exit.
Does not proveRIB presence does not prove FIB programming or packet delivery.
Execution context

privileged EXEC

Use when

Use this command at the Route Summarization boundary in the documented evidence chain.

Privilege privileged EXECState impact Read-onlyProduction Unknown

Operational impact: Read-only, but broad output or debug-like variants can be expensive on busy devices.
Command detailsSafety model · family · platform · verification · bundle
Privilegeprivileged EXEC
Execution contextprivileged EXEC
State impactRead-only
Safe during productionUnknown
CategoryOSPF
Evidence levelmixed
Primary DomainNetworking
Historical technical verificationNeeds verification dateCurrent command content requires review after a Git edit.
Family
PlatformCisco IOS XE
Prerequisiteprivileged EXEC
Output fields

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.

Command → Topic semantics

Used in these Topics

Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.

DomainsNetworking

Find another Command

Reference enrichment

Evidence boundary

What this output can establish — and where you must not over-claim.

Proves

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.

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.

Depth when you need it

Command guidance

Execution context

privileged EXEC

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 e2
Command Output Deep Dive

Variants · 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.

Known-good · 2Broken · 1Transitional · 1Observed · 1
1 · Observe the exact persisted fields/state.2 · Compare with authored known-good, broken or transitional samples.3 · Apply the Command evidence boundary; output is not end-to-end proof.4 · Run the next discriminating check and repeat the original workload/test when relevant.
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, GigabitEthernet2
Expected state

OSPF-learned routes expected for the scope appear with plausible route type, distance/metric, next hop and egress interface.

Interpretation

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.

Evidence boundary

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.
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/0
Expected state

intra-area and inter-area routes installed

Interpretation

Illustrative RIB shows OSPF administrative distance 110 and OSPF metric after the slash; route codes distinguish intra/inter-area.

Evidence boundary

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.
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.
Expected state

healthy/terminal

Interpretation

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.

Evidence boundary

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.
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.
Expected state

in-progress

Interpretation

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.

Evidence boundary

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.
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.
Expected state

failed/degraded

Interpretation

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.

Evidence boundary

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.
Confirmation

Confirm action

Continue?