Introduction
This document describes how to troubleshoot common problems with Open Shortest Path First (OSPF).
Prerequisites
Requirements
There are no specific requirements for this document.
Components Used
This document is not restricted to specific software and hardware versions.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.
Conventions
Refer to Cisco Technical Tips Conventions for more information on document conventions.
Main Flowchart
If you have the output of a show ip ospf neighbor, show ip ospf neighbor, or show tech-support command from your Cisco device, you can use the Cisco CLI Analyzer to display potential issues and fixes. To use Cisco CLI Analyzer, you must have JavaScript enabled.
Note: Only registered Cisco users have access to internal Cisco tools and information.
![Main Flowchart](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-00.jpeg)
Troubleshoot OSPF Neighbor States
Refer to OSPF Neighbor States for neighbor state descriptions.
![Troubleshoot OSPF Neighbor States](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-01.jpeg)
Troubleshoot the OSPF Routing Table
![Troubleshoot OSPF Routing Table](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-02.jpeg)
Troubleshoot OSPF Init State
Refer to Troubleshoot OSPF Neighbor Problems for more information on the OSPF Init State.
![Troubleshoot OSPF Init State](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-03.jpeg)
Troubleshoot OSPF MTU
![Troubleshoot OSPF MTU](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-04.jpeg)
Note: If the problem is related to Layer 2, check if a proxy ARP is enabled. If it is enabled, disable it, and use the clear ip arp command in order to clear the ARP cache.
Troubleshoot OSPF Corrupt Packets
![Troubleshoot OSPF Corrupt Packets](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-05.jpeg)
Troubleshoot OSPF Two-Way State
![Troubleshoot OSPF Two-way State](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-06.jpeg)
Troubleshoot OSPF Links
![Troubleshoot OSPF Links](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-07.jpeg)
You can use an Embedded Event Manager (EEM) script to troubleshoot the links flapping.
For more information, refer to this Cisco Support Community document that describes how to use an EEM script in order to collect information from a router when there is an OSPF flap: Troubleshoot OSPF Flaps with EEM Script.
.
Troubleshoot Full Adjacency
![Troubleshoot Full Adjacency](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-08.jpeg)
Troubleshoot External Link-State Advertisements
![Troubleshoot External Link-State Advertisements](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-09.jpeg)
Troubleshoot OSPF NBMA Networks
Refer to Troubleshoot Open Shortest Path First Route Database Issues for more information on this topic.
![Troubleshoot OSPF NBMA Networks](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-10.jpeg)
Troubleshoot Access Lists
![Troubleshoot Access Lists](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-11.jpeg)
Troubleshoot Neighbors over PRI
![Troubleshoot Neighbors over PRI](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-12.jpeg)
Troubleshoot Ping
![Troubleshoot Ping](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-13.jpeg)
Troubleshoot the OSPF Interface
![Troubleshoot OSPF Interface](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-14.jpeg)
Troubleshoot Frame Relay Environment
![Troubleshoot Frame Relay Environment](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-15.jpeg)
Troubleshoot External Route Problems
![Troubleshoot External Route Problems](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-16.jpeg)
Troubleshoot Network Type
![Troubleshoot Network Type](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-17.jpeg)
Troubleshoot OSPF Area Type
![Troubleshoot OSPF Area Type](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-18.jpeg)
Troubleshoot the Hello/Dead Interval Mismatch
![Troubleshoot Hello/Dead Interval Mismatch](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-19.jpeg)
The debug output from the debug ip ospf hello command shows the mismatch in hello parameters. Here is an example of the debug output:
*Oct 12 14:03:32.595: OSPF: Send hello to 10.224.0.5 area 0 on FastEthernet1/0
from 192.168.12.2
*Oct 12 14:03:33.227: OSPF: Rcv hello from 10.1.1.1 area 0 from FastEthernet1/0
192.168.12.1
*Oct 12 14:03:33.227: OSPF: Mismatched hello parameters from 192.168.12.1
!--- Indicates that there is mismtached hello parameters from 192.168.12.1
*Oct 12 14:03:33.231: OSPF: Dead R 2 C 3, Hello R 1 C 1 Mask R
255.255.255.0 C 255.255.255.0
*Oct 12 14:03:33.531: OSPF: Send hello to 10.224.0.5 area 0 on
FastEthernet1/0 from 192.168.12.2
Related Information