4.5 Verifying OSPF Operation
4.5.2 Clear and debug commands
The following commands and their associated options can be used when troubleshooting OSPF:
  • To reset the IP routing table use the following options:

p2r2#clear ip route ?
*
Delete all routes
A.B.C.D
Destination network route to delete

  • To debug a variety of OSPF operations use the following debug options:

p2r2#debug ip ospf ?
adj
OSPF adjacency events
events
OSPF events
flood
OSPF flooding
lsa-generation
OSPF lsa generation
packet
OSPF packets
retransmission
OSPF retransmission events
spf
OSPF spf
tree
OSPF database tree