
There are some command to help troubleshoot of OSPF and configuration.
1- show ip protocols (this command confirm on router , how many protocol is running include OSPF)

2 - show ip route ( dynamic routes are learned by OSPF)

3- show ip ospf (display OSPF info for all OSPF processes)

4- show ip ospf database (internetwork along with the neighboring routers ID)

5 - show ip ospf neighbor (neighbors and adjacency state) -
image error
6 - show ip ospf interface (all interface-related OSPF information including “Hello” and “Dead” timer intervals)

7 - ip ospf cost (interface mode command – change the default OSPF cost on an interface)
8 - debug ip ospf packet (shows hello packets being sent and received on the router)

9 - debug ip ospf hello