OSPF neighbours and DR/BDR: adjacency states, network types and troubleshooting
In short: OSPF only exchanges routes with routers that have formed a full adjacency. Neighbours must agree on area, subnet, timers, authentication and area type, and MTU problems leave them stuck part-way. On shared segments a designated router reduces flooding. Most OSPF faults can be found by checking these items in order.
From hello to Full
Every OSPF interface sends hellos, every 10 seconds by default on Ethernet and point-to-point links. A hello lists the neighbours the sender has already heard. When a router sees its own router ID in a neighbour's hello, they are in two-way communication. From there they exchange database summaries, request anything missing, and reach the Full state, meaning their databases are synchronised.
What must match
| Setting | If it differs |
|---|---|
| Area ID | No adjacency; a log message reports the mismatch |
| Subnet and mask (on broadcast links) | No adjacency |
| Hello and dead intervals (default 10 s / 40 s) | No adjacency |
| Authentication type and key | No adjacency |
| Area type (stub, NSSA flags) | No adjacency |
| Interface MTU | Neighbours stick in ExStart or Exchange |
| Network type | May form but routes are missing or wrong |
| Router ID | Must be different; duplicates cause flapping and errors |
DR and BDR on shared segments
On a broadcast network such as an Ethernet VLAN with five routers, full adjacencies between every pair would mean ten adjacencies and lots of duplicate flooding. Instead the routers elect a designated router (DR) and a backup designated router (BDR). Every other router (a DROTHER) forms a full adjacency only with the DR and BDR, and sends updates to 224.0.0.6, the address the DR and BDR listen on. DROTHERs stay in 2-Way with each other, and that is normal.
- The highest interface priority wins (default 1; 0 means never become DR or BDR).
- If priorities tie, the highest router ID wins.
- The election is not pre-emptive: a better router that boots later does not take over until the DR fails or OSPF is reset.
interface GigabitEthernet0/0
ip ospf priority 255 ! make this router the DR
interface GigabitEthernet0/1
ip ospf network point-to-point ! two routers only: no DR election, faster adjacency
On a link with only two routers, set the network type to point-to-point. It skips the election and the wait timer, so adjacencies form faster.
Authentication
Authenticating OSPF stops rogue or misconfigured devices from forming adjacencies and injecting routes. Plain-text and MD5 authentication are old; on current software use a key chain with HMAC-SHA.
key chain OSPF-KEYS
key 1
key-string <your-shared-key>
cryptographic-algorithm hmac-sha-256
interface GigabitEthernet0/1
ip ospf authentication key-chain OSPF-KEYS
Troubleshooting step by step
show ip ospf neighbor: is the neighbour listed, and in what state?- Not listed at all: check the interface is up, in OSPF (
show ip ospf interface brief), not passive, and that the two ends can ping each other. - Listed but stuck: compare area, timers, authentication and area type with
show ip ospf interfaceon both sides. Stuck in ExStart or Exchange: compare MTU. - Full but routes missing: check network types, the
networkstatements, filtering and summarisation. - Use
debug ip ospf adjbriefly in a lab or maintenance window; it prints the exact reason an adjacency fails.
Real-world example: after a WAN provider changed a circuit, the OSPF neighbour over it sat in EXSTART for an hour. The new provider handoff had a smaller MTU, and the router on that side had been set to match. Database description packets from the other end were too large and were ignored. Matching the MTU on both interfaces brought the adjacency to Full in seconds.
Keep a short record of each adjacency in your network documentation: the two routers, interfaces, area, network type and whether authentication is used. It makes the checks above much faster.
Practice
Two DROTHER routers on the same VLAN show 2-WAY with each other. Is that a fault?
A neighbour is stuck in EXSTART. What is the most likely cause?
A router with priority 200 joins a segment where a priority 1 router is already DR. Does it take over?
Key takeaways
- Neighbours progress Down, Init, 2-Way, ExStart, Exchange, Loading, Full.
- Area, subnet, timers, authentication and area type must match; router IDs must differ.
- MTU mismatches leave neighbours stuck in ExStart or Exchange.
- DR/BDR election: highest priority, then highest router ID, and it is not pre-emptive.
- Use point-to-point network type on two-router links and authenticate with HMAC-SHA.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.