< Home

Maintaining OSPF

Maintaining OSPF involves resetting OSPF and clearing OSPF statistics.

Clearing OSPF

OSPF information cannot be restored after being cleared. Exercise caution when running this command.

After confirming the running information about the OSPF statistics, run the following commands in the user view.

Table 1 Commands used for clearing OSPF

Action

Command

Clear OSPF counters

reset ospf [ process-id ] counters [ neighbor [ interface-type interface-number ] [ router-id ] ]

Clear the routes imported by OSPF

reset ospf [ process-id ] redistribution

Resetting OSPF

Table 2 Commands used for resetting OSPF

Action

Command

Restart the OSPF process

reset ospf process

NOTE:

After the reset ospf process command is used to restart OSPF, the following situations may occur:

  • If the router ID is changed, a new router ID will take affect after the reset ospf process command is run.
  • Re-elect DR and BDR after the reset ospf process command is run.

Clear invalid LSAs within the set time before LSAs time out

reset ospf process flush-waiting-timer time

Restart the OSPF process in GR mode

reset ospf [ process-id ] process [ graceful-restart ]

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >