Re-enabling OSPFv2 graceful restart

If you disable OSPFv2 graceful restart (GR), you can re-enable it. You can also change the maximum restart wait time from the default value of 120 seconds.

Before you begin

About this task

Note

Note

GR is mutually exclusive to NSR.

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router ospf command to enter OSPF router configuration mode and enable OSPFv2 globally.
    device(config)# router ospf
  3. Enter the graceful restart command to re-enable GR on the device.
    device(config-router-ospf-vrf-default-vrf)# graceful-restart
  4. Enter the graceful restart command with the restart-time parameter and specify a value to change the maximum restart wait time from the default value of 120 seconds.
    device(config-router-ospf-vrf-default-vrf)# graceful-restart restart-time 240

Example

The following example re-enables GR and changes the maximum restart wait time from the default value of 120 seconds to 240 seconds.

device# configure terminal
device(config)# router ospf 
device(config-router-ospf-vrf-default-vrf)# graceful-restart
device(config-router-ospf-vrf-default-vrf)# graceful-restart restart-time 240