Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The run graceful-restart prepare ospf command initiates a graceful restart for all OSPF instances configured with the “set protocols ospf [instance-id <instance-id>] [vrf<vrf-name>graceful-restart enable true” command. The ospfd daemon should be restarted during the instance-specific The run graceful-restart prepare ospf6 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 ospfd daemonthe OSPF protocol.

Info
  • 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 ospfospf6

Parameters

None.


Example

  •  Initiate a graceful restart for all OSPF instances Configure to let the restarting router advertises Graceful Restart (GR) LSAs into the OSPF domain.
Code Block
admin@Xorplus# run graceful-restart prepare ospf ospf6
OSPFv3 Routing Process (0) with Router-ID 2.2.2.2
 Graceful restart helper support disabled.
 Strict LSA check is enabled.
 Helper supported for Planned and Unplanned Restarts.
 Supported Graceful restart interval: 1800(in seconds).