Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Neighbor

Direct answer

An OSPF neighbor is a router on the same link whose Hello packets have been received and accepted, which requires matching area, subnet, timers, authentication and stub flags. Neighbors then become Full or, on multiaccess links between DROTHERs, stay in 2-Way.

When to use this

Use it when the design or fault is specifically about OSPF neighbor discovery through Hello exchange and parameter compatibility before full database synchronization. Stay on that boundary until configuration intent, live control/security state and the adjacent dependency agree.

First 30 seconds

1. Neighbours are discovered with hellos to 224.0.0.5.

2. Hello/dead timers, area, subnet, auth and stub flags must match.

3. Passive interfaces form no neighbours.

4. Different network types can break adjacency.

5. Use debug ip ospf hello in labs to see mismatches.

Operational verification

hello sent → parameters match → neighbour listed → adjacency

Evidence · next step

Check both interfaces with show ip ospf interface; then capture OSPF Hellos (ip.proto == 89) to see whether traffic is one-way or absent.

Continue only after interpreting the current observation.
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 · IOS/IOS XE · Cisco IOS XE
Key commandip ospf hello-interval <seconds>
Scope / prerequisiteUse it when the design or fault is specifically about OSPF neighbor discovery through Hello exchange and parameter comp…
Show · 1Reference · 2
What next?3 suggested next steps
Catalog command links3
Evidence2
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

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

Operational workflow

Verification & Troubleshooting

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

6 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 First 30 seconds Verify boundary

Immediate answer: For the exact peer, show bidirectional Hello visibility and compatible interface parameters before moving beyond neighbor discovery.

Verification chain: L2/IP reachability → Hello send/receive → Router ID visibility → parameter compatibility → neighbor state → adjacency

Stop condition: Seeing a neighbor Router ID shows local Hello discovery, not a FULL adjacency, complete LSDB or installed route.

Step 2 Operational verification and known-good state Verify boundary
show ip ospf neighbor
show ip ospf interface GigabitEthernet0/0
show ip ospf interface brief

The neighbour table shows state, remaining dead time, the neighbour's interface address and the local interface. The interface view shows everything a Hello carries from this side: area, network type, cost, timers, and No Hellos (Passive interface) when the interface is passive. The brief view gives one line per OSPF interface with area, cost, state and neighbour count.

Known-good: the neighbour is listed on both routers, the dead timer keeps being refreshed, and the interface settings on the two ends are identical where they have to be.

Step 3 Verification and output interpretation Verify boundary

Verify the neighbor table for Router ID, state, dead timer, local interface and DR/BDR role. Correlate the peer to the expected IP/interface rather than relying only on Router ID. If state is below 2-Way, inspect Hello compatibility and bidirectional visibility; if state is beyond 2-Way but not Full, inspect adjacency/database exchange conditions. Confirm the network type before interpreting 2-Way. After Full, verify LSDB and routes separately. Neighbor uptime/dead timer behavior can provide churn evidence, but it does not by itself identify the cause of resets.

Step 4 Verification & troubleshooting Narrow the fault

1. show ip ospf neighbor → is the neighbour listed, and in which state?

2. Not listed: show ip ospf interface <interface> → OSPF enabled, area, timers, network type, and whether the interface is passive.

3. Run the same command on the other router and compare line by line.

4. Ping the neighbour's interface address, and check for ACLs that block protocol 89 or the multicast address.

5. In a lab, debug ip ospf hello names the mismatched parameter.

Step 5 Failure signatures and troubleshooting branches Narrow the fault
  • No neighbour at all. Passive interface, different area, different timers, different mask, authentication mismatch, stub setting mismatch, or an ACL.
  • Stuck in Init. This router hears the neighbour but the neighbour does not hear it — a one-way problem, often an ACL or multicast filtering in one direction.
  • The neighbour drops and returns with "dead timer expired". Hellos are being lost.
  • The neighbour is Full but its routes are missing. Network type mismatch.
  • The neighbour is rejected although all values match. Duplicate router ID.
Step 6 When the problem is really fixed Narrow the fault
  • The neighbour is listed on both routers.
  • Area, mask, timers, authentication and network type agree.
  • The dead timer is refreshed continuously and the neighbour does not flap.
  • The state goes on to Full where an adjacency is expected.
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.

command output · 1packet · 1
Command lookup Jump straight to Cisco syntax
Key points

Do not infer service health from one command. For Neighbor, distinguish configured intent, protocol/security state, installed forwarding state and the original workload result.

Key checks
  • show ip ospf neighbor — neighbour list and state
  • show ip ospf interface <interface> — hello/dead timers
ReferenceWhat it is1 section · depth on demand

What it is

An OSPF neighbour is another OSPF router on the same link from which this router receives Hello packets, and whose Hellos list this router in return. Neighbours are discovered automatically through Hellos sent to a multicast address; on ordinary links nothing is configured per neighbour.

ReferenceWhy it matters1 section · depth on demand

Why it matters

No neighbour, no OSPF over that link. Hellos carry a set of values that must agree, and if a single one differs the neighbour simply never appears — there is no error on the screen. Troubleshooting "no neighbour" is therefore a matter of going through those values on both ends.

ReferenceImportant terms & boundaries6 sections · depth on demand

Key points

  • Hellos go to 224.0.0.5 as IP protocol 89, every 10 seconds on broadcast and point-to-point links (dead interval 40).
  • Must match: area ID, subnet and mask, hello and dead intervals, authentication, and the area's stub setting.
  • Must differ: router ID.
  • The interface must be enabled for OSPF and must not be passive.
  • The network types should match; broadcast against point-to-point gives an adjacency that reaches Full while routes are missing.
  • A neighbour is identified by its router ID, not its interface address.
  • Being neighbours (2-Way) is not yet an adjacency.

In depth

OSPF neighbours: discovered and kept alive by Hellos

OSPF routers send Hello packets on every OSPF interface. On broadcast and point-to-point networks, RFC 2328 says Hellos go to AllSPFRouters (224.0.0.5). A router becomes a neighbour when it sees a Hello whose parameters match, and the relationship becomes two-way when it sees its own router ID listed in the neighbour's Hello.

Neighbour states (RFC 2328, Section 10.1)

StateMeaning
DownNo recent information from the neighbour
AttemptNBMA only: Hellos sent to a configured neighbour that hasn't answered
InitA Hello was received, but it doesn't list this router yet
2-WayTwo-way communication; DR and BDR are elected from neighbours at this state or higher
ExStart → FullThe adjacency process (see the adjacency topic)

Hello checks (Section 10.5)

The network mask (except on point-to-point and virtual links), hello interval and dead interval must match the receiving interface, and the stub flag (E-bit) must match the area type. A mismatch causes the Hello to be dropped.

R1# show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
10.0.0.5         10   FULL/DR         00:00:39    10.10.0.5       Vlan10
10.0.0.2          1   FULL/BDR        00:00:36    10.10.0.2       Vlan10
10.0.0.3          1   2WAY/DROTHER    00:00:33    10.10.0.3       Vlan10
10.0.0.4          0   FULL/  -        00:00:38    10.255.0.2      TenGigabitEthernet1/1/1
R1# show ip ospf neighbor 10.0.0.3 detail
 Neighbor 10.0.0.3, interface address 10.10.0.3
    In the area 0 via interface Vlan10
    Neighbor priority is 1, State is 2WAY, 3 state changes
    DR is 10.10.0.5 BDR is 10.10.0.2
    Options is 0x12 in Hello (E-bit, L-bit)
    Dead timer due in 00:00:33

Troubleshooting neighbours

SymptomCause
No neighbour at allInterface passive, ACL blocking 224.0.0.5, different subnet, area mismatch
Stuck in INITOne-way communication: the other side doesn't receive our Hellos
FlappingDead interval too short, packet loss, or CPU starvation
2WAY with some neighboursNormal between DROTHERs on a broadcast segment

The Catalyst 9300 OSPF guide has adjacency change logging enabled by default (ospf log-adj-changes), so neighbour state changes appear in the log.

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.

Quick reference

An OSPF neighbor is a router on a shared link from which Hellos are received with matching parameters. Neighbors are discovered with Hellos to 224.0.0.5 (or unicast on non-broadcast networks) and tracked with the dead timer.

Must matchExample
Area ID0
Subnet and mask (except P2P)10.0.0.0/30
Hello/Dead intervals10/40
AuthenticationSame type and key
Area type flagsStub/NSSA
MTU (for Full)1500

show ip ospf neighbor lists neighbors with state, priority and dead-time countdown.

Mechanics and state ownership

A Hello contains the sender's router ID, the area, the subnet mask, the hello and dead intervals, option bits including the stub flag, the router priority, the DR and BDR it knows of, and the list of neighbours it has heard.

When a router receives a Hello whose values agree with its own, it records the sender; the neighbour is now in Init. When it then finds its own router ID in the neighbour list of that router's Hello, it knows the link works in both directions and the state becomes 2-Way. From there the pair either stays at 2-Way or goes on to form an adjacency.

Each Hello received resets the dead timer for that neighbour. If the timer runs out, the neighbour is declared down, the router updates its LSA, and the area recalculates. The intervals may be changed, but they must be the same on both ends of a link.

State model and technical mechanics

OSPF Hellos discover peers and verify enough shared parameters to establish a neighbor relationship. The local router tracks the peer Router ID, source/interface context, dead timer and state progression. Init means Hellos are being received but the local Router ID has not yet been seen in the peer’s Hello; 2-Way shows bidirectional Hello awareness. Whether the relationship proceeds to a Full adjacency depends on network type and roles. On broadcast networks, two DROTHERs can remain 2-Way by design while each forms Full adjacency with DR/BDR. Neighbor discovery therefore belongs before database synchronization in the OSPF state model.

Limits and common misconceptions

A neighbor is not synonymous with an adjacency. Seeing a Router ID in the neighbor table shows some OSPF control traffic and state, not correct routing, RIB installation or packet forwarding. Missing neighbor state is also not automatically “OSPF is broken” if the interface is intentionally passive or no peer should exist. On multiaccess networks, 2-Way can be correct. Keep the exact interface, area, network type and role attached to every interpretation.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Configure OSPF on the intended interfaces with matching area, timers, authentication and compatible network-type assumptions. Keep Router IDs unique and stable. On Ethernet, avoid forcing adjacency expectations that contradict DR/BDR behavior. Passive interfaces intentionally suppress Hellos and therefore neighbors while still allowing connected prefixes to be advertised in designs that use that mechanism. Document expected peer Router IDs and interfaces so an unexpected but technically compatible neighbor is visible rather than accepted merely because state is Full.

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 Routing → OSPF → OSPF Fundamentals → Neighbor. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc2328.html · confidence 94%
Useful command sets

Commands commonly referenced together

Compact reference collections only; they are not a guided troubleshooting workflow.

Cisco OSPF neighbor reference commands

Compact commands for neighbor state and installed-route context.

Use as quick reference context, not as a guided troubleshooting flow.
Embedded reference data

Quick lookup tables

Neighbor · technical reference

Compact OSPF/FHRP mechanics, design and evidence boundaries for fast lookup.

ItemMeaning
InitOne-way Hello awareness
2-WayBidirectional neighbor awareness
FullDatabase adjacency completed where required
Dead timerLiveness timer, not route-health proof

Neighbor operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

BoundaryKnown-good for NeighborSuspicious signatureNext proof
IntentMatches OSPF neighbor discovery through Hello exchange and parameter compatibility before full database synchronization designConfiguration differs from design/peerCompare effective configuration
Control/security stateStable expected neighbor/database/binding/election stateno neighbor on an enabled link, persistent INIT from one-way Hello reception, unexpected 2-Way where a full adjacency is required, or neighbor churn caused by timers/authentication/link instabilityInspect protocol/security detail and adjacent state
ForwardingExpected Layer-2 or RIB/FIB/gateway pathControl state exists but traffic path disagreesMAC/ARP/RIB/FIB/CEF proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or protection disabledRegression test
Confirmation

Confirm action

Continue?