Packet Path/

OSPF Neighbor Flapping Explained: Why an OSPF Adjacency Keeps Going Up and Down

An OSPF neighbor that keeps reaching Full, dropping to Down, and starting over is flapping, and %OSPF-5-ADJCHG is the log line that records every change — with the reason written at the end of the line. The cause is almost never OSPF itself: hellos are being lost until the dead timer expires, an MTU mismatch kills the adjacency in ExStart, the two ends disagree on timers, area, or authentication, or the physical link underneath is bouncing. This guide shows how to read the reason phrase, separate the causes from the log sequence, and fix them in a safe order.

Routing · Intermediate · 10 min · November 28, 2026

Editorial illustration on a dark teal background: two routers linked by a glowing cyan connection that breaks with a small spark in the middle and continues as a dashed line, above an amber timeline trace that repeatedly spikes and drops.

The short answer

What is OSPF neighbor flapping? OSPF — Open Shortest Path First — is how routers inside one network share maps and work out best routes. Two routers on a link form an adjacency — a partnership for swapping those maps. Flapping means the partnership keeps forming, reaching Full then dropping to Down and starting over. Every change is logged as %OSPF-5-ADJCHG, with the reason written at the end of the line. One drop can be a real failure or a deliberate restart. The same neighbor cycling FULL to DOWN to FULL is flapping, and the cause is almost never OSPF itself: something underneath keeps tearing it down.

Picture two neighbours who check in over the fence every ten seconds. If four in a row go unanswered, each assumes the other has gone and stops sharing news. When replies resume, they must re-introduce themselves and swap everything from scratch. Nothing is wrong with the conversation — the check-ins keep failing to arrive.

In plain EnglishAdjacency: the working partnership between two OSPF routers on a link; only they exchange routing maps. Hello packet: a small periodic "still here" message carrying the sender's settings. Dead timer: how long a router waits in silence before declaring the neighbor gone. Router ID: a router's name inside OSPF, written like an IP address; it must be unique. Area: a section of the network; both ends of a link must share it. DBD packet: a database description packet — the summary sent while two routers first compare maps. MTU: the largest packet a link can carry. ExStart: the early state where routers set up the first map exchange.

How to read %OSPF-5-ADJCHG in plain English

%OSPF-5-ADJCHG: Process 1, Nbr 10.1.1.2 on GigabitEthernet0/1 from FULL to DOWN, Neighbor Down: Dead timer expired

Process 1 is the OSPF process on this router. Nbr 10.1.1.2 is the neighbor's router ID, on the named interface. From FULL to DOWN is the change: the adjacency was complete, and now it is gone. The most valuable part comes last — the reason phrase. "Dead timer expired" says this router stopped hearing hellos and gave up. A different drop writes a different reason — that phrase is your first clue.

Flapping is a repeating pattern: FULL to DOWN, back up to FULL, then DOWN again. That differs from a neighbor stuck in one state — in Init (seeing hellos but never being seen) or in ExStart (unable to start the map exchange). A stuck neighbor never arrives; a flapping neighbor arrives and keeps being knocked down. The full ladder: OSPF neighbor states explained. For the message itself, see the Error Decoder entry for %OSPF-5-ADJCHG.

One adjacency, going round in circlesFULLmaps in syncDOWNneighbor declared gonedead timer expired — hellos stopped arrivingExStartexchange set up againhellos seen againadjacency restartsdatabase exchangecompletesThe loop repeats until the underlying cause is fixed — OSPF is the messenger, not the fault.

The flap cycle: the adjacency forms completely every time, then something underneath knocks it down.

The causes, in working order

1. Dead timer expired, because hellos are being lost. The classic cause. On Cisco IOS broadcast and point-to-point networks, a router sends a hello every 10 seconds by default and declares the neighbor down after 40 seconds of silence — the dead interval: four missed hellos. Congestion can drop or delay them; a failing link can swallow them; a busy neighbor looks identical. Evidence: the reason phrase says "Dead timer expired," often at busy times or regular intervals.

2. MTU mismatch, cycling through ExStart. If the two ends of a link are set to different MTUs, the adjacency repeatedly climbs to ExStart and dies there. The DBD packets opening the map exchange are built to the larger size and never arrive at the smaller end, so the exchange never starts. Evidence: the neighbor never gets past ExStart, and the cycle repeats from that state. Worked as a troubleshooting case: OSPF neighbor stuck in ExStart.

3. Hello and dead-timer mismatch. OSPF requires the hello and dead intervals carried in the hello packet to match on both ends — an agreement check before routers will partner. If one side was tuned for faster detection and the other was not, the hellos are rejected: the adjacency never forms, or drops when the change lands. Evidence: the flap starts when a timer change lands on one side only.

4. A physically flapping link. A failing optic, damaged copper, or a duplex problem (the two ends disagreeing on how the link runs) bounces the interface, and the adjacency follows. Evidence: interface up/down lines at exactly the drop timestamps, plus rising error counters.

5. Area mismatch, or an area change. Neighbors must be in the same area on a link; a hello from a different area is rejected. A misconfiguration usually prevents the adjacency outright, but an area change made mid-incident — one end renumbered, the other not — makes a healthy adjacency fall and stay down, which reads as flapping in the log. Evidence: drops begin at the moment of the change.

6. Authentication mismatch, or a changed key. With OSPF authentication configured, a hello that fails the check is rejected, so the neighbor is never heard and times out — exactly what a one-sided key rotation produces. A rarer cause: duplicate router IDs, which confuse neighbor tables and can make adjacencies unstable. Evidence: drops starting with a key change, or a second router using an ID that should be unique.

How the log sequence separates the causes

No single line separates these causes — the sequence does. A run of "Dead timer expired" reasons points at hello loss — congestion, drops, or a busy neighbor. Repeated drops out of ExStart point at MTU, where packet size is first tested. Flaps whose timestamps line up exactly with interface up/down messages point at the physical link. Flaps beginning right after a configuration change point at whatever it touched: area, timers, or authentication. Read an hour of log as one story first.

Read the sequence, not the single line09:02 FULL to DOWNDead timer expired09:03 ExStart to DOWNand again at 09:0509:07 Gi0/1 downinterface log line09:07 FULL to DOWNsame minuteEach pattern in the sequence points at a different layer — match the pattern before changing settings.Reason: dead timerHellos are being lost:congestion, a dropping link,or a CPU-busy neighborDrops out of ExStartDBD packets never arrive:compare the MTU seton both ends of the linkMatches interface logsThe link itself flapped:check the optic, cable,and interface error countersFlaps starting right after a config change point at area, timers, or authentication instead.

A log sequence, separated: reason phrase, state it fell from, and what else logged that minute divide the causes.

Checks in order

  1. Start with show ip ospf neighbor Note each neighbor's state, and watch the dead time count down and reset as hellos arrive. A dead time repeatedly running to zero is hello loss in front of you; a neighbor cycling ExStart is a different fault.
  2. Collect the %OSPF-5-ADJCHG lines with show logging. Note the reason phrase on every drop and the state it fell from — that pattern selects the investigation.
  3. Check the interface settings with show ip ospf interface on both ends: hello and dead intervals, network type, area. Both ends must agree on all of them.
  4. Compare MTU on both ends with show interface. They must match; a neighbor cycling ExStart with mismatched values has named its cause.
  5. Read the interface counters in that same show interface output — input errors, drops, resets. Rising counters at flap times mean the link loses the hellos, not OSPF.
  6. Check area and authentication on both ends. Confirm the area matches, and that authentication type and key agree — a one-sided key rotation rejects every hello.
  7. Line the timestamps up. Compare %OSPF-5-ADJCHG times with interface up/down messages. Drops in the same second as a link-down message are the physical link's fault — check cable, optic, or port before any OSPF setting.

Fixes and prevention, in a production-safe order

Fix the physical link and congestion first — the failing optic, the oversubscribed segment, whatever eats the hellos. Every other fix is decoration while packets still drop. Match MTU deliberately on both ends when you find one: set the same value on both interfaces, as a planned change. Treat ip ospf mtu-ignore — the command that tells OSPF to skip the MTU check — as a temporary diagnostic only: it hides the symptom while the size disagreement stays, waiting to bite larger traffic later.

Align hello and dead timers on both ends in a maintenance window: changing a timer drops the adjacency while the sides disagree, so plan the bounce instead of causing an unplanned one. And never just raise the dead timer to mask hello loss: it repairs no lost hello — it only slows detection of real failures, trading a noisy warning for slower recovery when a neighbor genuinely dies. Then verify: the neighbor stays Full past every previous failure interval, dead time resets steadily, and the %OSPF-5-ADJCHG lines stop.

Try it yourselfRun both ends' OSPF configuration through the free Network Config Verifier to compare area, timers, and authentication first. If MTU is in question, run the sizes through the free MTU/MSS Calculator so both ends get the same number on purpose.

Fact-check sources: hello and dead interval defaults, the requirement that intervals, area, and authentication match between neighbors, and adjacency behaviour — RFC 2328 and Cisco IOS OSPF configuration documentation.

Related guides

Key takeaways

Keep reading