PTL-0031 Routing

OSPFv2 Neighbor Adjacency Troubleshooting

Diagnose, isolate, and repair common OSPFv2 neighbor adjacency failures including Hello and Dead timer mismatches, Area ID errors, and missing network advertisements.

Level
Intermediate
Time
60 min
Packet Tracer
8.2+
Simulator
Tested in Packet Tracer
You configure
Branch-R2, HQ-R1, Remote-R3, S1, S2
Last reviewed

Packet Tracer files for OSPFv2 Neighbor Adjacency Troubleshooting

FILES Packet Tracer topology

Download starter file

starter.pkt, 76 KB. Open it in Cisco Packet Tracer 8.2+. Install Packet Tracer.

Solution / reference file

The completed topology with every task configured. Try the lab first and use this to check your work or when you are stuck.

Download solution file

completed.pkt, 76 KB.

File checksums (SHA-256)
starter.pkt
32f8559e8dee82a454ecf6fb97cae909c14da7a7921d2f99370e0e600209c9e4
completed.pkt
50bd1c7bd805f8ea98cc90a3cc4f68ea428b004771ce71577da55515dd2c0c30

Part of BSIT Networking Curriculum Learning Path (step 30 of 56) and CCNA-Aligned Topical Study Path (step 30 of 56).

Learning Objectives#

  • Identify the mandatory operational parameters that must match for two OSPFv2 routers to achieve FULL adjacency.
  • Diagnose Hello and Dead interval timer mismatches using show ip ospf interface and verification commands.
  • Troubleshoot OSPF Area ID mismatches between transit router interfaces across a point-to-point link.
  • Identify missing network statements that prevent LAN prefixes from being injected into the OSPF Link-State Database (LSDB).
  • Configure appropriate passive interfaces to protect access subnets while maintaining WAN neighbor adjacencies.
  • Verify complete SPF route convergence and end-to-end data plane reachability across a multi-router topology.

Prerequisites#

  • Thorough understanding of RFC 2328 OSPFv2 adjacency mechanics, neighbor states (DOWN, INIT, 2-WAY, EXSTART, EXCHANGE, LOADING, FULL), and Link-State Advertisements.
  • Proficiency with Cisco IOS CLI diagnostic commands (show ip ospf neighbor, show ip ospf interface, show ip route ospf).
  • Understanding of IPv4 point-to-point transit circuits and CIDR subnetting (/30 and /24).

Topology#

PTL-0031 Topology Diagram
PTL-0031 Topology Diagram

The topology models an enterprise hub-and-spoke WAN architecture connecting a corporate headquarters router (HQ-R1) to two remote facilities: Branch-R2 and Remote-R3. Both remote sites support local access LANs connected through Catalyst 2960 switches (S1 and S2) servicing end stations (PC-Branch and Server-Remote).

                    +--------------------+
                    |       HQ-R1        |
                    | Loopback:          |
                    | 192.168.1.1/24     |
                    +---------+----------+
            Gi0/0/0           |          Gi0/0/1
          10.1.12.1/30        |          10.1.13.1/30
                              |
               Link 1         |         Link 2
           (Timer Fault)      |       (Area Fault)
                              |
          10.1.12.2/30        |          10.1.13.2/30
            Gi0/0/0           |          Gi0/0/0
     +--------------------+   |   +--------------------+
     |     Branch-R2      |   |   |     Remote-R3      |
     +---------+----------+   |   +---------+----------+
        Gi0/0/1| 192.168.2.1  |      Gi0/0/1| 192.168.3.1
               |              |             |
          Fa0/1|              |        Fa0/1|
            +--+---+          |          +--+---+
            |  S1  |          |          |  S2  |
            +--+---+          |          +--+---+
          Fa0/2|              |        Fa0/2|
               |              |             |
           Fa0|               |          Fa0|
       [ PC-Branch ]          |     [ Server-Remote ]
       192.168.2.10           |       192.168.3.10

Addressing Table#

Device Interface IP Address Subnet Mask Default Gateway OSPF Area Problem State (Starter)
HQ-R1 Gi0/0/0 10.1.12.1 255.255.255.252 N/A Area 0 Normal (Hello 10, Dead 40)
HQ-R1 Gi0/0/1 10.1.13.1 255.255.255.252 N/A Area 0 Normal (Hello 10, Dead 40)
HQ-R1 Loopback0 192.168.1.1 255.255.255.0 N/A Area 0 HQ Core Services Subnet
Branch-R2 Gi0/0/0 10.1.12.2 255.255.255.252 N/A Area 0 Fault 1: Timers set to Hello 5 / Dead 20
Branch-R2 Gi0/0/1 192.168.2.1 255.255.255.0 N/A Area 0 Normal Branch LAN Gateway
Remote-R3 Gi0/0/0 10.1.13.2 255.255.255.252 N/A Area 1 Fault 2: Assigned to Area 1 instead of Area 0
Remote-R3 Gi0/0/1 192.168.3.1 255.255.255.0 N/A Missing Fault 3: Missing network statement for LAN
S1 VLAN 1 192.168.2.254 255.255.255.0 192.168.2.1 N/A Branch Access Switch Management
S2 VLAN 1 192.168.3.254 255.255.255.0 192.168.3.1 N/A Remote Access Switch Management
PC-Branch Fa0 192.168.2.10 255.255.255.0 192.168.2.1 N/A Branch Test Host
Server-Remote Fa0 192.168.3.10 255.255.255.0 192.168.3.1 N/A Remote Application Server

Lab Tasks#

  1. Verify Baseline Layer 3 Point-to-Point Connectivity:
    • Confirm ICMP echo reachability across transit circuits 10.1.12.0/30 and 10.1.13.0/30.
    • Confirm local gateway reachability from PC-Branch (192.168.2.1) and Server-Remote (192.168.3.1).
  2. Diagnose OSPF Neighbor Failure on Link 1 (HQ-R1 to Branch-R2):
    • Run show ip ospf neighbor on HQ-R1 and observe that no neighbor is formed on GigabitEthernet0/0/0.
    • Compare show ip ospf interface GigabitEthernet0/0/0 across HQ-R1 and Branch-R2.
    • Identify that Branch-R2 has modified timers (Hello 5, Dead 20) differing from HQ-R1 (Hello 10, Dead 40).
  3. Remediate Fault 1 on Branch-R2:
    • Restore default timers (ip ospf hello-interval 10, ip ospf dead-interval 40) on Branch-R2 GigabitEthernet0/0/0.
    • Verify that the neighbor adjacency transitions immediately to FULL.
  4. Diagnose OSPF Neighbor Failure on Link 2 (HQ-R1 to Remote-R3):
    • Observe that HQ-R1 has no neighbor on GigabitEthernet0/0/1.
    • Inspect show ip ospf interface GigabitEthernet0/0/0 on Remote-R3 and discover it is running in Area 1 while HQ-R1 is in Area 0.
  5. Remediate Fault 2 & Fault 3 on Remote-R3:
    • Remove network 10.1.13.0 0.0.0.3 area 1 and add network 10.1.13.0 0.0.0.3 area 0 under router ospf 1.
    • Add the missing LAN statement: network 192.168.3.0 0.0.0.255 area 0.
    • Configure passive-interface GigabitEthernet0/0/1 to protect the remote LAN.
  6. Verify Complete Topology Convergence:
    • Confirm HQ-R1 neighbor table shows both 2.2.2.2 and 3.3.3.3 in the FULL state.
    • Confirm all routers have learned the remote subnets in show ip route ospf.
    • Verify end-to-end communication from PC-Branch (192.168.2.10) to Server-Remote (192.168.3.10) and HQ-R1 (192.168.1.1).

Configuration Walkthrough#

Step 1: Repair Timer Mismatch on Branch-R2#

Synchronize OSPF Hello and Dead timers on Branch-R2 GigabitEthernet0/0/0:

Branch-R2(config)# interface GigabitEthernet0/0/0
Branch-R2(config-if)# ip ospf hello-interval 10
Branch-R2(config-if)# ip ospf dead-interval 40
Branch-R2(config-if)# exit
Branch-R2(config)# router ospf 1
Branch-R2(config-router)# passive-interface GigabitEthernet0/0/1
Branch-R2(config-router)# exit

Step 2: Repair Area Mismatch and Missing Network on Remote-R3#

Move transit circuit to Area 0 and advertise local LAN:

Remote-R3(config)# router ospf 1
Remote-R3(config-router)# no network 10.1.13.0 0.0.0.3 area 1
Remote-R3(config-router)# network 10.1.13.0 0.0.0.3 area 0
Remote-R3(config-router)# network 192.168.3.0 0.0.0.255 area 0
Remote-R3(config-router)# passive-interface GigabitEthernet0/0/1
Remote-R3(config-router)# exit

Step 3: Harden HQ-R1 Management Loopback#

HQ-R1(config)# router ospf 1
HQ-R1(config-router)# passive-interface Loopback0
HQ-R1(config-router)# exit

Verification#

1. Neighbor Adjacencies on HQ-R1#

Verify that HQ-R1 establishes full adjacencies with both spoke routers:

HQ-R1# show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           1   FULL/DR         00:00:38    10.1.13.2       GigabitEthernet0/0/1
2.2.2.2           1   FULL/DR         00:00:39    10.1.12.2       GigabitEthernet0/0/0

2. Synchronized Timer Verification#

Verify that interface timer intervals match across links:

Branch-R2# show ip ospf interface GigabitEthernet0/0/0
GigabitEthernet0/0/0 is up, line protocol is up
  Internet address is 10.1.12.2/30, Area 0
  Process ID 1, Router ID 2.2.2.2, Network Type BROADCAST, Cost: 1
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Remote-R3# show ip ospf interface GigabitEthernet0/0/0
GigabitEthernet0/0/0 is up, line protocol is up
  Internet address is 10.1.13.2/30, Area 0
  Process ID 1, Router ID 3.3.3.3, Network Type BROADCAST, Cost: 1
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

3. Complete Routing Table Convergence#

Verify that HQ-R1 learns both remote branch and remote server subnets:

HQ-R1# show ip route ospf
O    192.168.2.0 [110/2] via 10.1.12.2, 00:05:56, GigabitEthernet0/0/0
O    192.168.3.0 [110/2] via 10.1.13.2, 00:05:33, GigabitEthernet0/0/1

Verify that Branch-R2 has routes to HQ loopback and the remote server LAN:

Branch-R2# show ip route ospf
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O       10.1.13.0 [110/2] via 10.1.12.1, 00:05:30, GigabitEthernet0/0/0
     192.168.1.0/32 is subnetted, 1 subnets
O       192.168.1.1 [110/2] via 10.1.12.1, 00:05:59, GigabitEthernet0/0/0
O    192.168.3.0 [110/3] via 10.1.12.1, 00:05:30, GigabitEthernet0/0/0

4. End-to-End Inter-Spoke Host Reachability#

From PC-Branch, verify connectivity across the hub to Server-Remote:

C:\> ping 192.168.3.10

Pinging 192.168.3.10 with 32 bytes of data:

Reply from 192.168.3.10: bytes=32 time<1ms TTL=125
Reply from 192.168.3.10: bytes=32 time<1ms TTL=125
Reply from 192.168.3.10: bytes=32 time<1ms TTL=125
Reply from 192.168.3.10: bytes=32 time<1ms TTL=125

Ping statistics for 192.168.3.10:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
C:\> tracert 192.168.3.10

Tracing route to 192.168.3.10 over a maximum of 30 hops: 

  1   0 ms      0 ms      0 ms      192.168.2.1
  2   0 ms      0 ms      0 ms      10.1.12.1
  3   0 ms      0 ms      0 ms      10.1.13.2
  4   0 ms      0 ms      0 ms      192.168.3.10

Trace complete.

Troubleshooting#

  • Symptom: OSPF neighbor stuck in INIT state.
    • Cause: The local router received a Hello packet from the remote router, but the remote router did not see the local router's Router ID in its own received Hello. This commonly indicates an asymmetric layer 1/2 issue, an access list filtering inbound multicast, or a unicast issue.
  • Symptom: OSPF neighbor stuck in 2-WAY state.
    • Cause: On broadcast multi-access networks, two DROTHER routers normally stay in 2-WAY state with each other. If this occurs on a point-to-point link, verify network type and priority settings.
  • Symptom: OSPF neighbor stuck in EXSTART or EXCHANGE state.
    • Cause: Usually caused by an MTU mismatch between connected interfaces. In Cisco IOS, OSPF includes the interface MTU in Database Description (DBD) packets; mismatched MTUs prevent completion of the exchange.
  • Symptom: Neighbors form FULL adjacency but remote routes are missing.
    • Cause: The interface is participating in OSPF, but the remote router's LAN interfaces have not been advertised under the OSPF process using a network statement or ip ospf <proc> area <area> interface command.

Key Takeaways#

  • Mandatory Adjacency Criteria: For two OSPF routers to form a neighbor relationship, the following must match:
    1. Area ID and Area Type (e.g., standard, stub, NSSA).
    2. Hello and Dead intervals.
    3. Primary subnet IP and subnet mask on broadcast interfaces.
    4. Authentication type and key (if configured).
    5. Unique Router IDs (routers cannot have duplicate RIDs).
  • Hello/Dead Ratio: Cisco IOS defaults to Dead interval = 4 $\times$ Hello interval (e.g., 10s Hello / 40s Dead). Manually changing one interval requires adjusting the corresponding peer interface.
  • Systematic Isolation: When troubleshooting OSPF:
    1. Verify Layer 1/2 line protocols and Layer 3 ping.
    2. Inspect neighbor table (show ip ospf neighbor).
    3. Compare interface settings (show ip ospf interface).
    4. Verify routing table (show ip route ospf).

References#

  • Cisco Systems: Troubleshooting Common OSPF Neighbor Issues (cisco.com)
  • Cisco IOS IP Routing: OSPF Configuration Guide, Cisco IOS Release 15M&T (cisco.com)
  • Cisco CCNA 200-301 Official Cert Guide: OSPF Neighbor Troubleshooting

Files and Validation Status#

File Purpose Verification Status
assets/starter.pkt Starter lab topology with deliberate timer and area faults Validated (Packet Tracer 9.0+)
assets/completed.pkt Completed topology with resolved adjacencies and full routing Validated (Packet Tracer 9.0+)
assets/topology.png Network topology canvas capture Generated and verified
configs/HQ-R1.txt Clean Cisco IOS running configuration for HQ-R1 Verified against live device
configs/Branch-R2.txt Clean Cisco IOS running configuration for Branch-R2 Verified against live device
configs/Remote-R3.txt Clean Cisco IOS running configuration for Remote-R3 Verified against live device
configs/S1.txt Clean Cisco IOS running configuration for S1 Verified against live device
configs/S2.txt Clean Cisco IOS running configuration for S2 Verified against live device
metadata.json Catalog metadata and learning outcomes Compliant with schema
verification.md Detailed test matrix and execution evidence Verified against simulator output

Reference configurations

Final device configurations from the solution. Like the solution file, these give the answers away.

Branch-R2 Branch-R2.txt, 907 B
Current configuration : 872 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Branch-R2
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0/0
 description Transit Link to HQ-R1
 ip address 10.1.12.2 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/0/1
 description Branch LAN Segment to S1
 ip address 192.168.2.1 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 router-id 2.2.2.2
 log-adjacency-changes
 passive-interface GigabitEthernet0/0/1
 network 10.1.12.0 0.0.0.3 area 0
 network 192.168.2.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
banner motd ^C Authorized Access Only - Branch-R2 Router ^C
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

Download Branch-R2.txt

HQ-R1 HQ-R1.txt, 1.0 KB
Current configuration : 992 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname HQ-R1
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 description HQ Management Loopback
 ip address 192.168.1.1 255.255.255.0
!
interface GigabitEthernet0/0/0
 description Transit Link to Branch-R2
 ip address 10.1.12.1 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/0/1
 description Transit Link to Remote-R3
 ip address 10.1.13.1 255.255.255.252
 duplex auto
 speed auto
!
router ospf 1
 router-id 1.1.1.1
 log-adjacency-changes
 passive-interface Loopback0
 network 10.1.12.0 0.0.0.3 area 0
 network 10.1.13.0 0.0.0.3 area 0
 network 192.168.1.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
banner motd ^C Authorized Access Only - HQ-R1 Hub Router ^C
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

Download HQ-R1.txt

Remote-R3 Remote-R3.txt, 907 B
Current configuration : 872 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Remote-R3
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0/0
 description Transit Link to HQ-R1
 ip address 10.1.13.2 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/0/1
 description Remote LAN Segment to S2
 ip address 192.168.3.1 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 router-id 3.3.3.3
 log-adjacency-changes
 passive-interface GigabitEthernet0/0/1
 network 10.1.13.0 0.0.0.3 area 0
 network 192.168.3.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
banner motd ^C Authorized Access Only - Remote-R3 Router ^C
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

Download Remote-R3.txt

S1 S1.txt, 1.2 KB
Current configuration : 1176 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname S1
!
!
!
no ip domain-lookup
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 ip address 192.168.2.254 255.255.255.0
!
banner motd ^C Authorized Access Only - S1 Branch Access Switch ^C
!
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
!
!
end

Download S1.txt

S2 S2.txt, 1.2 KB
Current configuration : 1176 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname S2
!
!
!
no ip domain-lookup
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 ip address 192.168.3.254 255.255.255.0
!
banner motd ^C Authorized Access Only - S2 Remote Access Switch ^C
!
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
!
!
end

Download S2.txt

  • Routing
  • OSPF
  • OSPFv2
  • Troubleshooting
  • Neighbor Adjacency
  • Hello Dead Timers
  • Cisco IOS

This page is generated from labs/routing/ospfv2-neighbor-adjacency-troubleshooting/README.md in the repository. Corrections go there.

Search

Type at least two letters, for example OSPF, DHCP relay or VLAN.