Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

OSPF Neighbors & Adjacencies

Direct answer

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.

When to use this

Use it first in any OSPF problem: if the neighbour is missing or not Full, nothing else works.

First 30 seconds

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.

Operational verification

interface up and in OSPF → Hellos exchanged, parameters match → 2-Way → DR/BDR elected on multi-access links → databases synchronised → Full → kept alive by Hellos

Evidence · next step

Inspect interface parameters and LSDB contents for the required prefix/area.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common interpretation traps
  • "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.
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE · Cisco IOS XE
Key commandshow ip ospf neighbor
Scope / prerequisiteUse it first in any OSPF problem: if the neighbour is missing or not Full, nothing else works.
Show · 4Reference · 1
What next?3 suggested next steps
Catalog command links5
Evidence2
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

How to read the output

show ip ospf neighbor

Look 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 detail

Look 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> detail

Look 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.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

other · 2
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • 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:

StateMeaning
DownNo Hello received
InitA Hello was received, but the neighbour does not yet list this router
2-WayEach router sees itself in the other's Hello. On Ethernet the DR and BDR are elected here
ExStartThe two decide which of them leads the database exchange
ExchangeEach describes its database to the other
LoadingMissing LSAs are requested and received
FullThe 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 typeDR/BDRDefault hello/deadNeighboursTypical use
BroadcastYes10/40 sDiscovered by multicastEthernet segments with several routers
Point-to-pointNo10/40 sDiscoveredRouted links between two routers
NBMAYes30/120 sConfigured manuallyLegacy Frame Relay
Point-to-multipointNo30/120 sDiscoveredHub-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

CheckCommand
OSPF enabled on the interface, not passiveshow ip ospf interface brief
Same area and network type on both endsshow ip ospf interface <int>
Timers matchshow ip ospf interface <int> | include Timer
Authentication matchesshow ip ospf interface <int> | include auth
MTU matchesshow interfaces <int> | include MTU
Unique router IDsshow 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2328

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%
Confirmation

Confirm action

Continue?