Run the command set protocols ospf graceful-restart enable to enable the OSPF Graceful Restart (GR) capability on the restarting device. Optional parameter vrf can be used to specify a VRF, if no VRF is specified the command takes effect on the default VRF.
Optional parameter instance-id can be included to specify the OSPFv2 multi-instance ID in the default VRF. By default, OSPF GR capability is disabled.
Multiple instances of OSPF are only allowed in the default VRF. A maximum of 8 instance can be configured in the default VRF. In non-default VRFs, only single instance OSPF can be configured.
The command delete protocols ospf graceful-restart enable can be used to remove this configuration.
Command Syntax
set protocols ospf [instance-id <instance-id>] [vrf<vrf-name>] graceful-restart enable <true | false>
delete protocols ospf [instance-id <instance-id>] [vrf <vrf-name>] graceful-restart enable
Parameter
Parameter | Description |
instance-id <instance-id> | Optional, specifies the OSPF instance ID. The value is an integer that ranges from 1 to 8. |
vrf <vrf-name> | Optional. Specifies the name of the VRF for the OSPF instance. |
true | Enables OSPF Graceful Restart (GR) capability. |
false | Disables OSPF Graceful Restart (GR) capability. |
Usage Guidelines
To avoid traffic interruption and route oscillation caused by failover events, you can enable OSPF GR functionality on the restarting device by executing this command.
Example
- Enable OSPF Graceful Restart (GR) capability on the restarting device.
admin@PICOS# set protocols ospf instance-id 1 graceful-restart enable true admin@PICOS# commit