BuildTheNet

Opening your workspace

Your learning content and tools are loading.

OSPF

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 0x01A2B4

Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.

Useful variants

What each column or field means

FieldMeaning
with ID 1.1.1.1The router ID: configured with router-id, otherwise the highest loopback address, otherwise the highest active interface address.
SPF schedule delay / hold timeThrottling for SPF runs after a change.
Number of areas … normal / stub / nssaAreas 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 unitThe value interface costs are calculated from.
SPF algorithm executed N timesHow many times SPF has run. A count that climbs steadily means the topology is unstable.
Number of LSALSAs 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

Learn it in the CCNA path

Topic

OSPF — Enable single-area OSPFv2, form neighbor adjacencies, read the neighbor and interface tables and confirm learned routes.

All 57 commands