< Home

reset ospf process

Function

The reset ospf process command restarts an OSPF process.

Format

reset ospf [ process-id ] process [ flush-waiting-timer time | graceful-restart ]

Parameters

Parameter Description Value
process-id Indicates an OSPF process ID.

If the parameter is not specified, all OSPF processes are restarted.

The value is an integer ranging from 1 to 65535.
flush-waiting-timer time Specified the time when the LSA is generated. The parameter takes effect only when it is set. The value is an integer that ranges from 1 to 40, in seconds.
graceful-restart Indicates that graceful restart is enabled. -

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The reset ospf process command can be used to clear OSPF information to reset the board.

If OSPF connections are reset, OSPF neighbor relationships will be interrupted and the original information cannot be restored. Exercise caution before running the reset ospf process command.

Configuration Impact

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

  • If a router ID is changed, a new router ID will take effect after the command is run.

  • Re-elect a DR and BDR.

  • OSPF configuration will not be lost after OSPF restarts.

Precautions

Configuring the flush-waiting-timer parameter when OSPF starts allows you to clear invalid LSAs within the set time before LSAs time out.

Whether all invalid LSAs on other switches can be deleted depends on the set time.

When the switch restarts an OSPF process, the neighboring switch always reserves invalid LSAs. This occupies the memory of the system. These LSAs are deleted only when they expire, which happens when the LS age field in the LSA reaches 3600 seconds. After the reset ospf is used to restart an OSPF process and only when the router ID is changed, the switch generates an LSA in the set time and sets the LS age field to 3600 seconds. After receiving the LSA, other switches delete the LSA immediately from their LSDBs. If a device does not send all the LSAs within the set time, other neighboring switches still store some invalid LSAs.

Example

# Restart all OSPF processes.

<HUAWEI> reset ospf process
Warning: The OSPF process will be reset. Continue? [Y/N]: y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >