Verifying OSPF Configuration
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:
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:
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.
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.
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
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.
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.
debugging ospf
debugging command is divided into the following types –
- debug ip ospf packet: This command displays the hello packets being sent and received on the router.
- 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.
- 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.