BuildTheNet

Opening your workspace

Your learning content and tools are loading.

OSPF

show ip ospf neighbor

Lists every OSPF neighbor with its router ID, priority, adjacency state, dead timer, address and interface.

Written by a working field network engineer · CCNA, Security+, CySA+

If OSPF routes are missing, start here. An adjacency has to reach FULL before any routes are exchanged, and this table tells you which neighbors made it and which are stuck.

Example output

R1#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           1   FULL/DR         00:00:36    10.0.12.2       GigabitEthernet0/1

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
Neighbor IDThe neighbor’s OSPF router ID, not its interface address.
PriThe neighbor’s interface priority for DR election. 0 means it can never be DR or BDR.
StateAdjacency state / the neighbor’s role. FULL is the goal; on a broadcast segment DROTHERs stop at 2WAY with each other, which is normal. The role after the slash is DR, BDR, DROTHER or a dash on point-to-point links.
Dead TimeCountdown to declaring the neighbor down. It resets with every hello (default hello 10 s, dead 40 s on Ethernet).
Address / InterfaceThe neighbor’s interface address and the local interface it was seen on.

When it doesn’t look right

No neighbor appears.

Hellos are not being exchanged or not accepted. Both interfaces must be in the same subnet and area, with matching hello/dead timers, authentication and network type, and neither may be passive.

Stuck in EXSTART or EXCHANGE.

Almost always an MTU mismatch between the two interfaces. Make the MTUs match (or use ip ospf mtu-ignore as a last resort).

Stuck in INIT.

This router hears the neighbor but the neighbor does not hear it back: one-way traffic, often an ACL dropping 224.0.0.5 in one direction.

Both routers show the same Neighbor ID as their own.

Duplicate router IDs. Set unique IDs with router-id and run clear ip ospf process.

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