Clearing OSPF neighbors
You can use the following command to delete and relearn all OSPF neighbors, all OSPF neighbors for a specied interface or a specied
OSPF neighbor.
device# clear ip ospf neighbor all
Syntax: clear ip ospf [ vrf vrf-name ] neighbor all [ interface ] | interface | ip-address [ interface ]
Selecting the all option without specifying an interface clears all of the OSPF neighbors on the router.
The interface variable
species the interface that you want to clear all of the OSPF neighbors on. The following types of interfaces can be
specied:
• ethernet unit/slot/port
• tunnel tunnel-ID
• veve-ID
The ip-address variable allows you to clear a specic OSPF neighbor.
Disabling and re-enabling the OSPF process
You can use the following command to disable and re-enable the OSPF process on a router.
device# clear ip ospf all
Syntax: clear ip ospf [ vrf vrf-name ] all
This command resets the OSPF process and brings it back up after releasing all memory used while retaining all
congurations.
Clearing OSPF routes
You can use the following command to clear all OSPF routes or to clear a
specic OSPF route.
device# clear ip ospf routes all
Syntax: clear ip ospf [ vrf vrf-name ] routes { all | ip-address/prex-length }
Selecting the all option resets the OSPF routes including external routes, and OSPF internal routes.
The ip-address and prex-length variables specify a particular route to delete and then reschedules the SPF calculation.
Clearing OSPF information
FastIron Ethernet Switch Layer 3 Routing
290 53-1003627-04