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.
Neighbor
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.
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.
hello sent → parameters match → neighbour listed → adjacency
Check both interfaces with show ip ospf interface; then capture OSPF Hellos (ip.proto == 89) to see whether traffic is one-way or absent.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip ospf hello-interval <seconds>Primary Commands
Configuration and operational commands for this Topic.
ip ospf hello-interval <seconds>ReferenceChanges the OSPF Hello timer on an interface. Peers must be compatible.
Cisco IOS XE · mixed · configuresip ospf dead-interval <seconds>ReferenceChanges the OSPF Dead timer on an interface.
Cisco IOS XE · mixed · configuresShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
The intended interface has no expected OSPF neighbor entry.
packet · Documented exampleHello received but neighbor stuck InitOSPF Hellos from the peer are observed, but bidirectional discovery does not complete and the local Router ID is not reflected as expected in the peer Hello state.
Do not infer service health from one command. For Neighbor, distinguish configured intent, protocol/security state, installed forwarding state and the original workload result.
show ip ospf neighbor— neighbour list and stateshow 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)
| State | Meaning |
|---|---|
| Down | No recent information from the neighbour |
| Attempt | NBMA only: Hellos sent to a configured neighbour that hasn't answered |
| Init | A Hello was received, but it doesn't list this router yet |
| 2-Way | Two-way communication; DR and BDR are elected from neighbours at this state or higher |
| ExStart → Full | The 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
| Symptom | Cause |
|---|---|
| No neighbour at all | Interface passive, ACL blocking 224.0.0.5, different subnet, area mismatch |
| Stuck in INIT | One-way communication: the other side doesn't receive our Hellos |
| Flapping | Dead interval too short, packet loss, or CPU starvation |
| 2WAY with some neighbours | Normal 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.
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 match | Example |
|---|---|
| Area ID | 0 |
| Subnet and mask (except P2P) | 10.0.0.0/30 |
| Hello/Dead intervals | 10/40 |
| Authentication | Same type and key |
| Area type flags | Stub/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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%Commands commonly referenced together
Compact reference collections only; they are not a guided troubleshooting workflow.
Compact commands for neighbor state and installed-route context.
Use as quick reference context, not as a guided troubleshooting flow.Quick lookup tables
Neighbor · technical reference
Compact OSPF/FHRP mechanics, design and evidence boundaries for fast lookup.
| Item | Meaning |
|---|---|
| Init | One-way Hello awareness |
| 2-Way | Bidirectional neighbor awareness |
| Full | Database adjacency completed where required |
| Dead timer | Liveness timer, not route-health proof |
Neighbor operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| Boundary | Known-good for Neighbor | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches OSPF neighbor discovery through Hello exchange and parameter compatibility before full database synchronization design | Configuration differs from design/peer | Compare effective configuration |
| Control/security state | Stable expected neighbor/database/binding/election state | no 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 instability | Inspect protocol/security detail and adjacent state |
| Forwarding | Expected Layer-2 or RIB/FIB/gateway path | Control state exists but traffic path disagrees | MAC/ARP/RIB/FIB/CEF proof |
| Closure | Original test passes for explained reason | Symptom moved, was bypassed or protection disabled | Regression test |