Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

OSPF Timers & Authentication Deep Reference

Direct answer

OSPF hello and dead timers set how often a router announces itself and how long silence is tolerated. Authentication makes a router accept OSPF packets only from neighbours that know the key. Both must agree between neighbours.

When to use this

Use it when neighbours do not form although the routers reach each other, when neighbours flap under load, or when introducing or changing authentication.

First 30 seconds

1. show ip ospf interface <interface> on both routers — same hello and dead?

2. Same authentication type and key ID?

3. Still nothing → debug ip ospf adj and read the mismatch message.

4. Changing keys → add the new key on both sides before removing the old.

Operational verification

Hellos arrive → area and timers match → authentication type, key ID and key match → neighbour accepted → dead timer refreshed by every Hello

Context & applicabilityCommon mistakes · platform/version boundaries
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
Key commandshow ip ospf interface GigabitEthernet0/0
Scope / prerequisiteUse it when neighbours do not form although the routers reach each other, when neighbours flap under load, or when intr…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

2 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 interface GigabitEthernet0/0
show ip ospf neighbor
debug ip ospf adj

The interface view shows the hello and dead intervals, and near the end whether authentication is enabled and which key ID is in use. Compare with the neighbour. The debug prints a line for each rejected packet — "Mismatch Authentication type" or "Mismatch Authentication Key" — and for timer mismatches debug ip ospf hello does the same; use either briefly.

Known-good: timers and authentication type and key ID are identical on both routers, and the neighbour's dead time keeps counting down from the full interval.

Step 2 Failure boundaries & interpretation Narrow the fault
  • No neighbour; the debug reports mismatched hello parameters. The timers differ — sometimes because the network types differ.
  • No neighbour; the debug reports an authentication mismatch. One side has authentication enabled, the type differs, or key ID or key differ. A trailing space in a key counts.
  • Authentication enabled for the area, one interface forgotten. That interface has no key and loses its neighbours.
  • A virtual link goes down after area 0 authentication is enabled. It needs the same authentication.
  • Neighbours flap under load. The timers are too short for the path or the CPU.
  • Key change breaks the neighbours. Add the new key on both sides before removing the old one.
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Timers must be equal on both ends: 10/40 seconds on Ethernet and point-to-point, 30/120 on non-broadcast. Authentication type, key ID and key must all match. Very short timers cause flapping; BFD is the better tool for fast detection.

Key checks
  • show ip ospf interface <interface> — timers, and whether authentication is enabled with which key ID.
  • show ip ospf neighbor — the dead time counting down.
  • debug ip ospf hello / debug ip ospf adj — names the mismatch; use briefly.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

Two OSPF settings that must agree between neighbours. The hello and dead timers decide how often a router announces itself and how long silence is tolerated. Authentication makes a router accept OSPF packets only from neighbours that know the key.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

Both are checked on every Hello, and a mismatch means no neighbour — without any error on the interface itself. Timers are also what determine how quickly OSPF notices a failed neighbour when the link stays up.

ReferenceHow it works1 section · depth on demand

How it works

Timers. A router sends a Hello every hello interval. If none arrives from a neighbour for the dead interval, the neighbour is declared down.

Network typeHelloDead
Broadcast, point-to-point10 s40 s
Non-broadcast, point-to-multipoint30 s120 s

ip ospf hello-interval <s> changes the hello interval, and the dead interval follows at four times that value unless set with ip ospf dead-interval <s>. Both values must be equal on the two neighbours. Shorter timers detect failures faster but make the neighbour sensitive to brief packet loss or a busy CPU; BFD is the better tool for fast detection.

Authentication. Three kinds exist in OSPFv2: none, a clear-text password, and a cryptographic digest. With a digest the key itself is never sent; each packet carries a key ID and a hash calculated over the packet and the key.

MD5, on the interface:

interface GigabitEthernet0/0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 <key>

Authentication can also be switched on for a whole area with area <id> authentication message-digest; the key is still set per interface. Newer releases support HMAC-SHA through a key chain: ip ospf authentication key-chain <name>.

Type, key ID and key must all match. A virtual link is part of area 0 and needs area 0's authentication.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Timers and authentication must match, or neighbours never reach FULL

OSPF neighbours compare hello parameters and authentication before anything else. These are the first things to check when an adjacency doesn't form.

Timers

The Catalyst 9300 OSPF guide gives a default hello interval of 10 seconds and a dead interval of 4 × hello (40 seconds), and states these must match across the network. Hello and dead intervals are carried in hello packets; a mismatch stops the neighbour relationship before it starts.

C9300(config)# interface Te1/1/1
C9300(config-if)# ip ospf network point-to-point
C9300(config-if)# ip ospf hello-interval 1
C9300(config-if)# ip ospf dead-interval 3
C9300(config-if)# ip ospf bfd
C9300# show ip ospf interface Te1/1/1 | include Timer|Hello due
  Timer intervals configured, Hello 1, Dead 3, Wait 3, Retransmit 5
C9300# debug ip ospf hello      ! briefly, with logging buffered
OSPF-1 HELLO Te1/1/1: Mismatched hello parameters from 10.255.0.2
Approach to faster failure detectionComment
Shorter hello/dead timersSimple, but more CPU and false failovers under load
BFD (ip ospf bfd)Sub-second detection in a separate lightweight protocol; preferred
Point-to-point network typeRemoves the DR/BDR wait time on links

Authentication

The guide lists plain-text and MD5 authentication. MD5 is configured per interface with ip ospf message-digest-key, or per area with area <id> authentication message-digest.

C9300(config)# router ospf 1
C9300(config-router)# area 0 authentication message-digest
C9300(config)# interface Te1/1/1
C9300(config-if)# ip ospf message-digest-key 1 md5 7 <key>
C9300# show ip ospf interface Te1/1/1 | include authentication|key
  Cryptographic authentication enabled
    Youngest key id is 1

Newer IOS XE releases also support HMAC-SHA authentication with key chains (ip ospf authentication key-chain). Prefer it where every router in the area supports it.

Mismatch symptoms

MismatchSymptom
Hello or dead intervalNo neighbour; "Mismatched hello parameters" in debug
Authentication type or keyNo neighbour; authentication error messages
Area ID or stub flagNo neighbour
MTUNeighbour stuck in EXSTART/EXCHANGE

Use show ip ospf neighbor first; an empty list on a working link almost always means a hello-parameter, area or authentication mismatch.

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 Network & Protocols → OSPF Timers & Authentication Deep Reference. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc2328.html · confidence 94%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
ospf timersospf hello deadospf authenticationospf md5ospf key chain
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

OSPF Timers & Auth — Fast Check

Fast adjacency prerequisite checklist

1. Hello timer equal/compatible.

2. Dead timer equal/compatible.

3. Area/network type consistent.

4. Authentication mode/key context matches.

5. Check logs during controlled retry.

6. Avoid blind timer tuning.

Confirmation

Confirm action

Continue?