Example
console(config-router)#capability opaque
clear ip ospf
Use the clear ip ospf command to reset specific OSPF states. If no
parameters are specified, OSPF is disabled and then reenabled.
Syntax
clear ip ospf [{configuration | redistribution | counters | neighbor
[interface vlan
•
configuration — Reset the OSPF configuration to factory defaults.
•
redistribution — Flush all self-originated external LSAs. Reapply the
redistribution configuration and re originate prefixes as necessary.
•
counters — Reset global and interface statistics.
•
neighbor — Drop the adjacency with all OSPF neighbors. On each
neighbor's interface, send a one-way hello. Adjacencies may then be
reestablished.
•
interface vlan
interface.
neighbor-id — Drop adjacency with a specific router ID on a specific
•
interface.
Default Configuration
There is no default configuration for this command.
Command Mode
Privileged EXEC mode.
User Guidelines
There are no user guidelines for this command.
Example
The following example shows the options for the clear ip ospf command.
console#clear ip ospf ?
1216
OSPF Commands
vlan id
neighbor id
[
vlan-id — Drop adjacency with all neighbors on a specific
]]}]