Use it when a neighbour is missing or stuck: each state corresponds to one step, so the state where it stops narrows the cause to a short list.
OSPF Neighbor States Reference
OSPF neighbor state checks
OSPFv2 · Cisco IOS / IOS XE command examples. A state narrows the investigation; it does not uniquely identify a cause. Compare both peers.
| Observed state | Possible cause | Command | Observation and next check |
|---|---|---|---|
| DOWN / absent | No valid Hellos received; interface participation or peer may be missing | show ip ospf interface <interface> | Confirm the intended interface, area, network type, timers and passive status. A dynamic neighbor may be absent from the neighbor table. Next: Compare both peers and Hello reachability, authentication and area parameters. |
| ATTEMPT | NBMA configured neighbor has not responded | show ip ospf neighbor detail | Check configured NBMA peer and whether valid Hellos arrive. Next: Verify unicast reachability and neighbor configuration. |
| INIT | A Hello was received without the local router ID in its neighbor list | show ip ospf neighbor detail | The peer has not reported bidirectional communication. Next: Check Hello delivery in the reverse direction and any filtering. |
| 2-WAY | Bidirectional Hellos; adjacency may not be required | show ip ospf interface <interface> | Read DR/BDR roles. Two DROTHERs normally remain 2-WAY on broadcast networks. Next: Continue only if this pair should form an adjacency; compare network types and roles. |
| EXSTART / EXCHANGE | Database-description negotiation or exchange stalled; MTU mismatch is one possibility | show interfaces <interface> | Compare interface MTU on both peers. Use show ip ospf neighbor detail to inspect negotiation progress. Next: Check DBD delivery and duplicate router IDs; compare network types with show ip ospf interface before changing adjacency settings. |
| LOADING | Requested LSAs have not all been received | show ip ospf request-list <neighbor-id> | Inspect outstanding requests and whether they change over time. Confirm syntax on the platform. Next: Inspect retransmissions and packet loss toward the peer. |
| FULL | Database synchronization completed for this adjacency | show ip route <destination> | Check whether the intended destination route is present and selected. Next: If the route is missing, inspect its LSA and policy; if present, inspect forwarding and the return path. |
Example output and interpretation
Illustrative output · not captured Evidence
Router# show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 192.0.2.2 1 2WAY/DROTHER 00:00:33 198.51.100.2 GigabitEthernet0/0
Illustrative output: this neighbor has bidirectional Hellos and is a DROTHER. If the local router is also a DROTHER on this broadcast segment, 2-WAY is expected. Confirm local role with show ip ospf interface; FULL alone would still not prove route installation or application delivery.
Detailed reference and supporting material
Additional explanation, verification and reference tables.
Operational reference
Fast context before you go deeper.
1. show ip ospf neighbor — is the neighbour listed, and in which state?
2. Missing → interface in OSPF and not passive? Area, timers, mask, authentication equal?
3. Init → Hellos pass one way only.
4. ExStart/Exchange → MTU or duplicate router ID.
5. 2-Way on Ethernet → normal unless one of the two is DR or BDR.
interface in OSPF, not passive → Hello received (Init) → own router ID seen in neighbour's Hello (2-Way) → master/slave agreed (ExStart) → databases described (Exchange) → missing LSAs fetched (Loading) → Full
Context & applicabilityCommon mistakes · platform/version boundaries
Additional verification procedures
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 Verification sequence Verify boundary
Check one boundary at a time, on both routers, before changing configuration.
- Interface participates:
show ip ospf interface brief— confirm the interface is listed in the expected area with the expected cost and state (DR, BDR, DROTHER or P2P). This summary does not show passive status. - Passive status: verify separately with
show ip protocols(Passive Interface(s)) andshow ip ospf interface <interface>(look forNo Hellos (Passive interface)). An interface intended to exchange Hellos must not be passive; confirm the network type in the detailed interface output. - Hello parameters:
show ip ospf interface <interface>— compare area, network type, Hello/Dead timers, priority and authentication with the peer. - Neighbor state:
show ip ospf neighbor— state, role and Dead Time per neighbor.show ip ospf neighbor detailadds the neighbor's interface address, DR/BDR as seen by the neighbor, uptime and options. - Stuck in ExStart or Exchange: compare
show interfaces <interface>MTU on both ends and check for duplicate Router IDs withshow ip ospfon each router. - Stuck in Loading:
show ip ospf request-list <neighbor-id> <interface>shows LSAs still requested;show ip ospf retransmission-listshows LSAs the neighbor has not acknowledged. - Packet-level confirmation:
debug ip ospf adjanddebug ip ospf helloreport mismatched parameters and DD negotiation. Use with conditional debugging or on a lab/maintenance window; debugging adds CPU load. - Beyond Full:
show ip ospf databasefor the expected LSA, thenshow ip route ospfandshow ip cef <prefix>for the result. Full alone does not close the check.
Close the check only when the original traffic works from its original source and the neighbor stays in its expected state for longer than RouterDeadInterval: Full where an adjacency is required, or 2-Way between two DROTHER routers on a broadcast or NBMA segment.
Step 2 Stuck states: likely causes and next check Narrow the fault
- Neighbor missing or Down — no valid Hello arrives. Causes: interface not in OSPF or passive, area mismatch, Hello/Dead timer mismatch, authentication mismatch, subnet mask mismatch (broadcast/NBMA), stub-flag mismatch, or ACL/CoPP/Layer-2 problems dropping 224.0.0.5. Next:
show ip ospf interfaceon both ends anddebug ip ospf hello. - Attempt (NBMA) — the configured neighbor never answers. Next: unicast reachability to the configured neighbor address and its OSPF configuration.
- Init — Hellos arrive in one direction only. Causes: multicast or unicast filtering in one direction, asymmetric Layer-2 path, or the neighbor discarding our Hellos (its side reports the mismatch). Next: check the neighbor's view and filters in the return direction.
- 2-Way where Full is expected — neither router is DR/BDR (priority 0 on both, or both DROTHER on a segment that already has a DR/BDR elsewhere), or a network-type mismatch. Next:
show ip ospf interfacerole and priority on both sides. - ExStart / Exchange — DD negotiation fails. Causes: MTU mismatch (most common), duplicate Router ID, or DD packets lost (unicast filtering, fragmentation on NBMA/overlay). Next: compare MTU and Router IDs.
- Loading — requested LSAs do not arrive or are rejected (BadLSReq). Causes: large LSAs dropped by the path MTU, corrupted LSAs, retransmission problems. Next:
show ip ospf request-listand the interface error counters. - Flapping Full ↔ Down — Hellos lost intermittently. Causes: interface errors, congestion, CPU spikes, or Dead interval too short for the link. Next: interface counters,
show ip ospf neighborDead Time over time, and logs withlog-adjacency-changes detail.
A neighbor state narrows the investigation; it does not identify the cause. Verify the suspected cause on both routers before changing configuration.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
show ip ospf neighbor— state, role, dead time and interface per neighbour.show ip ospf interface <interface>— area, network type, timers, DR and BDR.show ip ospf neighbor detail— options and retransmission queue.- Run the same on the other router and compare.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
An OSPF neighbour passes through a fixed series of states on the way to a complete adjacency: Down, Init, 2-Way, ExStart, Exchange, Loading and Full. The state shown in show ip ospf neighbor tells how far the two routers have got, and a neighbour that stops short of its expected final state points to a specific kind of fault.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
Each state corresponds to one step — receiving a Hello, being heard in return, agreeing who leads, comparing databases, fetching what is missing. Knowing the step turns a stuck state into a short list of causes: Init means one-way Hellos, ExStart usually means an MTU mismatch, Loading means a lost update. Two states are final and healthy: Full, and 2-Way between two routers that are neither DR nor BDR.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
OSPF neighbour states one by one
An OSPF neighbour moves through a fixed series of states, and the state it stops in points to the cause. RFC 2328 defines the process:
- Hellos (packet type 1) discover neighbours and must agree on the area, the hello and dead intervals, the network mask on broadcast and NBMA networks, the stub flag and the authentication type.
- Database Description packets (type 2) negotiate a master and slave and summarise each LSDB.
- Link State Requests (3), Updates (4) and Acknowledgements (5) fill the gaps until both sides are Full.
States
| State | What has happened | Next step |
|---|---|---|
| Down | No hellos received recently | Wait for a hello |
| Attempt | (NBMA only) Hellos are being sent to a configured neighbour | Wait for a reply |
| Init | A hello has arrived, but our router ID isn't in it yet | Bidirectional hello |
| 2-Way | Both routers see each other | DR/BDR election; DROTHERs stay here on LANs |
| ExStart | Master and slave are negotiated for the DBD exchange | DBD exchange |
| Exchange | Database descriptions are exchanged | Request missing LSAs |
| Loading | LS Requests are sent for missing or newer LSAs | Updates and acks |
| Full | Databases are synchronised | Normal operation |
Where neighbours get stuck
| Stuck in | Usual cause |
|---|---|
| Down / no entry | No hellos: OSPF not enabled, passive interface, ACL, wrong VLAN |
| Init | One-way: multicast filtered, unidirectional link, ACL on 224.0.0.5 |
| 2-Way (between DR candidates) | Priority 0 on both, or misunderstanding: 2-Way is normal between DROTHERs |
| ExStart / Exchange | MTU mismatch, duplicate router ID |
| Loading | Corrupted or rejected LSAs, packet loss |
Hello mismatches (RFC 2328)
A mismatch in area, timers, mask, stub flag or authentication means the hello is discarded. The neighbour never even appears. debug ip ospf hello names the mismatched parameter.
R1# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.255.0.2 1 FULL/DR 00:00:33 10.0.12.2 GigabitEthernet0/0/1
10.255.0.3 1 2WAY/DROTHER 00:00:38 10.0.12.3 GigabitEthernet0/0/1
10.255.0.4 1 EXSTART/BDR 00:00:31 10.0.12.4 GigabitEthernet0/0/1
R1# debug ip ospf hello
OSPF-1 HELLO Gi0/0/2: Mismatched hello parameters from 10.0.13.3
OSPF-1 HELLO Gi0/0/2: Dead R 40 C 120, Hello R 10 C 30
R1# show ip ospf interface GigabitEthernet0/0/2 | include Timer|MTU
The debug shows hello and dead timers of 10/40 received (R) against 30/120 configured (C). The neighbour will never form until one side is changed.
Documented example, not captured output.
Neighbor states and what moves a neighbor between them
Each OSPF neighbor is a small state machine (RFC 2328 §10.1 states, §10.2 events, §10.3 transitions). The state describes how far the two routers have got, not whether routing is correct.
States
- Down — no Hello received from this neighbor within RouterDeadInterval. The starting state, and where a neighbor returns after InactivityTimer expiry, KillNbr or LLDown.
- Attempt — NBMA only, for manually configured neighbors (
neighborcommand). The router sends Hellos at HelloInterval to a neighbor it has not heard from yet. - Init — a Hello from the neighbor was received (HelloReceived), but the local Router ID is not listed in that Hello. Communication is so far one-way.
- 2-Way — the local Router ID appears in the neighbor's Hello (2-WayReceived): communication is bidirectional. DR/BDR election happens here. On broadcast and NBMA networks two DROTHER routers stop at 2-Way by design.
- ExStart — the routers decided to form an adjacency. They agree who is master (the higher Router ID) and the initial Database Description (DD) sequence number (NegotiationDone).
- Exchange — DD packets describe each router's LSDB headers. Missing or newer LSAs are queued on the Link State Request list.
- Loading — Link State Request packets fetch the LSAs found missing during Exchange. Loading Done moves to Full.
- Full — the LSDBs are synchronized and the adjacency is advertised in router-LSAs (and network-LSAs by the DR).
Events that send a neighbor backwards
- 1-WayReceived — the neighbor's Hello no longer lists us: back to Init.
- SeqNumberMismatch / BadLSReq — a DD sequence, flag or request error: back to ExStart and the database exchange restarts.
- InactivityTimer — no Hello within RouterDeadInterval: Down, and the adjacency's routes are recalculated.
Reading rule: Full shows LSDB synchronization with this neighbor only. It does not show that a given prefix is in the RIB, won best-path selection or is forwarded.
ReferenceConfiguration & state1 section · depth on demand
Adjacency rules, OSPF header checks and Hello parameters
When two neighbors become adjacent (RFC 2328 §10.4)
- Point-to-point, point-to-multipoint and virtual links — every neighbor in 2-Way goes on to Full.
- Broadcast and NBMA — an adjacency forms only if at least one of the two routers is the DR or BDR. DROTHER-to-DROTHER stays in 2-Way, which is correct.
- A router with
ip ospf priority 0never becomes DR/BDR. If every router on a segment has priority 0 there is no DR and no adjacency forms on that segment.
OSPF header and Hello checks (RFC 2328 §8.2, §10.5, §A.3.1–A.3.2)
Area ID and authentication belong to the common OSPF packet header, not the Hello body. Packet reception first validates the header and authentication (§8.2 and §D):
- Area ID must match the receiving interface's area (subject to the virtual-link rules).
- Authentication type and credentials must satisfy the configured authentication method.
The Hello body is then checked for these matching parameters (§10.5). A failed header/authentication or Hello compatibility check discards the packet, so the neighbor remains Down, disappears after RouterDeadInterval, or never appears:
- HelloInterval and RouterDeadInterval.
- Network mask — checked on broadcast and NBMA, not on point-to-point or virtual links.
- Options E-bit — both sides must agree whether the area is a stub area.
Router IDs must be unique: a duplicate Router ID breaks DR election and LSA ownership.
Database exchange check (RFC 2328 §10.6)
The Interface MTU field in a received DD packet is compared with the receiving interface. If the neighbor's MTU is larger than this router can accept, the DD packet is rejected and the neighbor stays in ExStart or Exchange. On Cisco IOS XE ip ospf mtu-ignore disables this check; correct the MTU instead unless the mismatch is understood and harmless.
Cisco IOS XE defaults
- Broadcast and point-to-point: Hello 10 s, Dead 40 s.
- NBMA and point-to-multipoint: Hello 30 s, Dead 120 s.
ip ospf networkchanges the network type, and with it the timers and DR behavior — both ends must use a compatible type.
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 Network & Protocols → OSPF Neighbor States Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2328.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
OSPF Neighbor States
State → likely boundary.
Deep reference
Healthy vs suspicious evidence
Reading show ip ospf neighbor
Illustrative output (not captured Evidence):
Neighbor ID Pri State Dead Time Address Interface
192.0.2.2 1 FULL/DR 00:00:36 10.0.12.2 GigabitEthernet0/0
192.0.2.3 1 2WAY/DROTHER 00:00:33 10.0.12.3 GigabitEthernet0/0
192.0.2.4 0 FULL/ - 00:00:38 10.0.14.4 GigabitEthernet0/1
192.0.2.5 1 EXSTART/BDR 00:00:31 10.0.12.5 GigabitEthernet0/0
- State column —
state/role. The role is the neighbor's role on that segment (DR, BDR, DROTHER), or-on point-to-point links where no DR exists. - FULL/DR — synchronized with the segment's DR: expected.
- 2WAY/DROTHER — normal when this router is also DROTHER. A problem only if one of the two routers should be DR or BDR.
- FULL/ - — point-to-point adjacency; priority 0 is irrelevant there.
- EXSTART/BDR that does not progress — database exchange cannot start: check MTU and Router ID uniqueness first.
- Dead Time — counts down from RouterDeadInterval and resets on every Hello. A value that keeps approaching zero, or a neighbor that disappears and returns, points to lost Hellos (interface errors, congestion, CPU, filtering).
- Neighbor ID vs Address — Neighbor ID is the neighbor's Router ID; Address is its interface IP on this link. They are often different.
show ip ospf neighbor detail adds In the area, uptime (Neighbor is up for), options and the DR/BDR the neighbor believes in — useful when the two sides disagree about the DR.