run graceful-restart prepare ospf

The run graceful-restart prepare ospf command is a operational command that the restarting router advertises Graceful Restart (GR) LSAs into the OSPF domain, informing its neighbors about its restarting process and the estimated time for the restart to complete. These LSAs are Type 9 LSAs and are flooded throughout the OSPF domain.

The OSPF protocol should be restarted during the grace period, otherwise the graceful restart will fail.

To perform a graceful shutdown, this operational command needs to be issued before restarting the OSPF protocol.

  • Be cautious: After executing the run graceful-restart prepare ospf or run graceful-restart prepare ospf6 command, the system will be in a waiting state for the OSPF protocol to restart. Users are not allowed to perform any OSPF configuration until the OSPF protocol restart is completed, or unpredictable results can occur.

  • Before restarting the OSPF process, the device needs to use the command run graceful-restart prepare ospf (for OSPFv2) or run graceful-restart prepare ospf6 (for OSPFv3) to send Type 9 LSAs for GR capability negotiation. After the negotiation, the OSPF process must be restarted within the negotiated grace-period; otherwise, it will timeout and exit the GR state.


Command Syntax

run graceful-restart prepare ospf

Parameters

None.


Example

  •  Configure to let the restarting router advertises Graceful Restart (GR) LSAs into the OSPF domain.
admin@Xorplus# run graceful-restart prepare ospf

Copyright © 2024 Pica8 Inc. All Rights Reserved.