中文网站
  Advanced Search
Read the latest Blogs from IT professionals in the field. Read and write community created documents. Need IT help? Ask our staff. Connect with your peers. Check our Tech Shop for posters, books and software tools. Home

6.6.3.5 Clearing the Database and/or Forcing an SPF Calculation

Occasionally, when something was changed or for debugging purposes one might want to clear the present routing table and/or force the OSPFv3 process to build it a new. This is done using the following command, which is issued at the global configuration level:

Router # clear ipv6 ospf [process-id] {process | force-spf | \\
                       redistribution | counters [neighbor [neighbor-interface]]}

The command clears the OSPF state based on the OSPF routing process ID.

When the process keyword is used with the clear ipv6 ospf command, the OSPF database is cleared and repopulated, and then the shortest path first (SPF) algorithm is performed. When the force-spf keyword is used with the clear ipv6 ospf command, the OSPF database is not cleared before the SPF algorithm is performed.

Example

The easiest way to do this is issuing the command without any more options:

Router# clear ipv6 ospf force-spf