Free tech learning for everyone, from basics to pro

Routing & SwitchingNetworking SecurityAdvanced

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.

OSPF neighbour statesDownno hellosInithello heard2-Wayseen eachotherExStart /ExchangecomparedatabasesLoadingrequest LSAsFullin sync
Figure 1. The states an OSPF neighbour passes through. Routers stop at 2-Way when neither is the DR or BDR; otherwise they continue to Full.

What must match

SettingIf it differs
Area IDNo 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 keyNo adjacency
Area type (stub, NSSA flags)No adjacency
Interface MTUNeighbours stick in ExStart or Exchange
Network typeMay form but routes are missing or wrong
Router IDMust 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.

  1. The highest interface priority wins (default 1; 0 means never become DR or BDR).
  2. If priorities tie, the highest router ID wins.
  3. 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

  1. show ip ospf neighbor: is the neighbour listed, and in what state?
  2. 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.
  3. Listed but stuck: compare area, timers, authentication and area type with show ip ospf interface on both sides. Stuck in ExStart or Exchange: compare MTU.
  4. Full but routes missing: check network types, the network statements, filtering and summarisation.
  5. Use debug ip ospf adj briefly 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?
No. DROTHERs only form full adjacencies with the DR and BDR; 2-Way between DROTHERs is normal.
A neighbour is stuck in EXSTART. What is the most likely cause?
An MTU mismatch between the two interfaces.
A router with priority 200 joins a segment where a priority 1 router is already DR. Does it take over?
No. The DR election is not pre-emptive; it only becomes DR after the current DR and BDR fail or OSPF is reset.

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.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

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.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.