Use it first in any OSPF problem: if the neighbour is missing or not Full, nothing else works.
OSPF Neighbors & Adjacencies
OSPF routers on the same link that exchange Hellos are neighbours; neighbours that go on to synchronise their databases are adjacent. Routes are calculated only across adjacencies.
1. show ip ospf neighbor — listed? In which state?
2. Not listed → interface in OSPF and not passive; then area, timers, mask, authentication.
3. Init → the other side does not hear this router.
4. ExStart/Exchange → MTU.
5. Full, but a route is missing → the neighbour is fine; check what is advertised.
Inspect interface parameters and LSDB contents for the required prefix/area.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
- "The neighbours can ping, so OSPF should work." Ping proves reachability, not that the Hello parameters agree.
- 2-Way is taken for a fault. Between two routers that are neither DR nor BDR it is the final, correct state.
- Full is taken to mean the routes are there. The neighbour is synchronised; whether a given network is advertised is a separate question.
- ExStart is treated like a Hello problem. By then the Hellos have been accepted; look at the MTU.
- A passive interface is expected to form neighbours. It advertises its network but sends no Hellos.
- Init is blamed on the local router. It means the other side is not hearing this router's Hellos.
Operational reference
Fast context before you go deeper.
show ip ospf neighborShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ip ospf neighborShowDisplay OSPF neighbor adjacencies.
Use when: OSPF adjacency verification.
Quick note: FULL is the expected adjacency state in normal cases.
IOS/IOS XE · mixedshow ip ospf interface [interface]ShowInspect area, network type, timers and cost.
Use when: Adjacency/tuning verification.
IOS/IOS XE · mixedshow ipv6 ospf neighborShowInspect OSPFv3 neighbor state.
Use when: OSPFv3 adjacency verification.
IOS/IOS XE · mixedshow ip ospf neighbor detailShowDetailed OSPF neighbor state, timers, retransmission and adjacency context.
Use when: An OSPF neighbor does not reach FULL or keeps going down and you need its timers and state history.
Quick note: "Neighbor is up for" and the number of state changes show whether the adjacency is stable over time.
Cisco IOS XE · mixedshow ip ospf neighbor <neighbor-id> detailReferenceInspect adjacency state, retransmit information and database exchange context.
Cisco IOS XE · mixedHow to read the output
show ip ospf neighborLook first: neighbor ID, state, dead timer, address, interface
Healthy: Expected neighbor reaches FULL where the network type requires it.
Warning: INIT/EXSTART/EXCHANGE or repeated resets indicate a boundary before route installation.
Does not prove: FULL does not prove expected LSAs/routes are installed.
show ip ospf neighbor detailLook first: neighbor ID, state, dead timer, address, interface
Healthy: Expected neighbor reaches FULL where the network type requires it.
Warning: INIT/EXSTART/EXCHANGE or repeated resets indicate a boundary before route installation.
Does not prove: FULL does not prove expected LSAs/routes are installed.
show ip ospf neighbor <neighbor-id> detailLook first: neighbor ID, state, dead timer, address, interface
Healthy: Expected neighbor reaches FULL where the network type requires it.
Warning: INIT/EXSTART/EXCHANGE or repeated resets indicate a boundary before route installation.
Does not prove: FULL does not prove expected LSAs/routes are installed.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
show ip ospf neighbor
show ip ospf interface GigabitEthernet0/0
show ip ospf interface brief
The neighbour table shows each neighbour's router ID, priority, state and role, remaining dead time, address and interface. The interface view shows the parameters this router sends in its Hellos — area, network type, timers — to compare with the other side. The brief view shows at a glance which interfaces are in OSPF and how many neighbours each has.
Known-good: every expected neighbour is listed and is Full — or 2-Way between two DROTHER routers — and the dead time is refreshed every hello interval.
If a neighbour is missing, check in this order: is the interface in OSPF and not passive, can the two routers reach each other, do area, timers, mask and authentication agree, and are the router IDs different.
Evidence · 2 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The official Cisco source documents this command in a bounded Cisco product/release or feature context.
other · Evidence referenceCisco source context for show ip ospf neighbor <neighbor-id> detailThe official Cisco source documents this command in a bounded Cisco product/release or feature context.
Area, timers, authentication and area type must match — on Ethernet the mask too — and router IDs must differ. Full is the goal, except between two DROTHER routers, where 2-Way is correct. Ping proves reachability, not that the Hello parameters agree.
show ip ospf neighbor— router ID, state, role, dead time and interface.show ip ospf interface <interface>— area, network type and timers to compare with the other side.show ip ospf interface brief— which interfaces are in OSPF and their neighbour counts.
ReferenceWhat it is1 section · depth on demand
Mental model
Two OSPF routers on the same link that exchange Hellos are neighbours. Two neighbours that go on to synchronise their link-state databases are adjacent. Routes are only calculated across adjacencies.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
Almost every OSPF problem starts here: if the neighbour relationship is missing or incomplete, nothing else works. The state shown for a neighbour says how far the process got, and therefore where to look.
ReferenceHow it works1 section · depth on demand
How it works
For two routers to become neighbours, their Hellos must agree on area, hello and dead timers, authentication, and area type; on Ethernet the subnet mask must match too. The router IDs must differ.
The relationship then moves through these states:
| State | Meaning |
|---|---|
| Down | No Hello received |
| Init | A Hello was received, but the neighbour does not yet list this router |
| 2-Way | Each router sees itself in the other's Hello. On Ethernet the DR and BDR are elected here |
| ExStart | The two decide which of them leads the database exchange |
| Exchange | Each describes its database to the other |
| Loading | Missing LSAs are requested and received |
| Full | The databases are identical; the adjacency is complete |
On a point-to-point link the two routers always go on to Full. On a multi-access segment each router becomes Full only with the DR and the BDR; two routers that hold neither role stay at 2-Way with each other.
A neighbour is kept alive by Hellos. If none arrives within the dead interval, the neighbour is removed and its routes with it.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
OSPF neighbours and adjacencies on different network types
Whether two OSPF routers become fully adjacent depends on the network type and the DR election, as well as on matching parameters. RFC 2328 has these rules:
- Elections: on broadcast and NBMA networks, routers elect a designated router and a backup DR. The highest router priority wins and the router ID breaks ties. Priority 0 means never DR.
- Adjacencies: every router forms full adjacencies only with the DR and BDR. Other pairs stay in 2-Way.
- Point-to-point links: have no election and always go to Full.
Network types
| Network type | DR/BDR | Default hello/dead | Neighbours | Typical use |
|---|---|---|---|---|
| Broadcast | Yes | 10/40 s | Discovered by multicast | Ethernet segments with several routers |
| Point-to-point | No | 10/40 s | Discovered | Routed links between two routers |
| NBMA | Yes | 30/120 s | Configured manually | Legacy Frame Relay |
| Point-to-multipoint | No | 30/120 s | Discovered | Hub-and-spoke |
Point-to-point on Ethernet
Routed links between two switches or routers are usually configured as ip ospf network point-to-point. That skips the DR election and its wait time, so the adjacency forms faster. It also avoids the Type 2 network LSA.
Adjacency checklist
| Check | Command |
|---|---|
| OSPF enabled on the interface, not passive | show ip ospf interface brief |
| Same area and network type on both ends | show ip ospf interface <int> |
| Timers match | show ip ospf interface <int> | include Timer |
| Authentication matches | show ip ospf interface <int> | include auth |
| MTU matches | show interfaces <int> | include MTU |
| Unique router IDs | show ip ospf | include ID on both |
R1(config)# interface GigabitEthernet0/0/1
R1(config-if)# ip ospf network point-to-point
R1(config-if)# ip ospf authentication message-digest
R1(config-if)# ip ospf message-digest-key 1 md5 <key>
R1# show ip ospf interface GigabitEthernet0/0/1 | include Network Type|State|Neighbor Count|Timer
Process ID 1, Router ID 10.255.0.1, Network Type POINT_TO_POINT, Cost: 1
Transmit Delay is 1 sec, State POINT_TO_POINT
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Neighbor Count is 1, Adjacent neighbor count is 1
R1# show ip ospf neighbor detail | include Neighbor|area|uptime|DR is
Network type mismatch
If one end is point-to-point and the other broadcast, the routers may still reach Full. Routes then fail to install, because each side describes the link differently in its LSAs. Always configure the same network type on both ends.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in OSPF → OSPF Neighbors & Adjacencies. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2328.html · confidence 94%