There are several ways to verify OSPF configuration and operations, which are:

  • show ip route command
  • show ip ospf command
  • show ip ospf database command
  • show ip ospf interface command
  • show ip protocol command
  • show ip ospf neighbor command
  • debugging ospf

Consider the following topology –We have used the below topology to explain the above commands:

Verifying OSPF Configuration

show ip route command

The “show ip route” command is used to show the routing table. In the routing table, if there is an entry of “O”, then it will indicate that OSPF is configured in the router. Consider the below image:

Verifying OSPF Configuration 1

show ip ospf command

The show ip ospf is used to display the OSPF information like all processes which are running on the router, router ID, area information, Shortest Path First (STF) statistics, and LSA timers information.

Verifying OSPF Configuration 2

show ip ospf database command

The show ip ospf database displays the information about the number of routers in the network and the neighbor router IDs.

Verifying OSPF Configuration 3

show ip ospf interface command

The show ip ospf interface displays the following information:

  • Area assignment
  • Interface IP address
  • Process ID
  • Router ID
  • Network type
  • Cost
  • Priority
  • DR/BDR election information and dead timer intervals
  • Adjacent neighbor information
Verifying OSPF Configuration 4

show ip protocol command

The show ip protocol is used to verify the type of protocols running on the router and the network. It displays the process ID, OSPF router ID, type of OSPF area, networks and area configured for OSPF neighboring router’s ID, etc.

Verifying OSPF Configuration 5

show ip ospf neighbor command

The show ip ospf neighbor displays the summary of ospf information regarding the adjacency state. It is also used for the production network.

Verifying OSPF Configuration 6

debugging ospf

debugging command is divided into the following types –

  1. debug ip ospf packet: This command displays the hello packets being sent and received on the router.
  2. debug ip ospf hello: This command displays hello packets being sent and received on the router. It also displays more pieces of information than the debug ip ospf packet.
  3. The debug ip ospf adj: This command displays information about the OSPF adjacencies and authentication, including Designated Router (DR) and Backup Designated Router (BDR) elections.

Pin It on Pinterest

Share This