show ip ospf
Shows the OSPF process: router ID, SPF timers, how many areas and interfaces it runs, and how often SPF has run.
Written by a working field network engineer · CCNA, Security+, CySA+
Information about the OSPF process itself rather than its neighbors: the router ID it chose, SPF timers, and per-area counts. Useful for confirming the router ID and for seeing how often SPF is running.
Example output
R1#show ip ospf
Routing Process "ospf 1" with ID 1.1.1.1
Start time: 00:02:11.452, Time elapsed: 00:15:03.118
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Reference bandwidth unit is 100 mbps
Area BACKBONE(0)
Number of interfaces in this area is 2
Area has no authentication
SPF algorithm last executed 00:13:51.004 ago
SPF algorithm executed 4 times
Number of LSA 3. Checksum Sum 0x01A2B4Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.
Useful variants
show ip ospf 1
What each column or field means
| Field | Meaning |
|---|---|
with ID 1.1.1.1 | The router ID: configured with router-id, otherwise the highest loopback address, otherwise the highest active interface address. |
SPF schedule delay / hold time | Throttling for SPF runs after a change. |
Number of areas … normal / stub / nssa | Areas this router has interfaces in, by type. A router is an ABR only when its interfaces are in more than one area and one of them is area 0, the backbone. R1 has both interfaces in area 0, so it is an internal router. |
Reference bandwidth unit | The value interface costs are calculated from. |
SPF algorithm executed N times | How many times SPF has run. A count that climbs steadily means the topology is unstable. |
Number of LSA | LSAs in this area’s database. |
When it doesn’t look right
The router ID is not the one you configured.
A router ID change only takes effect when the process restarts. Run clear ip ospf process (it drops adjacencies briefly).
SPF executions keep rising.
A link is flapping somewhere in the area. Look for neighbors whose up time keeps resetting.
Related commands
Try it yourself
- OSPF Single-Area Base (Pro)
- OSPF Multi-Area Tuning (Pro)
- Or build the example network in the free Sandbox
Learn it in the CCNA path
- OSPF Basics & Neighbor States (3. IP Connectivity)
- Multi-Area OSPF & Default Route Injection (3. IP Connectivity)
Topic
OSPF — Enable single-area OSPFv2, form neighbor adjacencies, read the neighbor and interface tables and confirm learned routes.