OSPF Graceful Restart Commands
Use these commands to configure OSPF graceful restart.
The OSPF protocol can be configured to participate in the checkpointing service, so that these protocols can execute a “graceful restart” when the management unit fails. In a graceful restart, the hardware continues forwarding IPv4 packets using OSPF routes while a backup switch takes over management unit responsibility.
Graceful restart uses the concept of helpful neighbors. A fully adjacent router enters helper mode when it receives a link state announcement (LSA) from the restarting management unit indicating its intention of performing a graceful restart. In helper mode, a switch continues to advertise to the rest of the network that they have full adjacencies with the restarting router, thereby avoiding announcement of a topology change and the potential for flooding of LSAs and shortest-path-first (SPF) runs (which determine OSPF routes). Helpful neighbors continue to forward packets through the restarting router. The restarting router relearns the network topology from its helpful neighbors.
Graceful restart can be enabled for either planned or unplanned restarts, or both. A planned restart is initiated by the operator through the initiate failover command. The operator may initiate a failover in order to take the management unit out of service (for example, to address a partial hardware failure), to correct faulty system behavior which cannot be corrected through less severe management actions, or other reasons. An unplanned restart is an unexpected failover caused by a fatal hardware failure of the management unit or a software hang or crash on the management unit.
nsf (Router OSPF Config)
M4350
Use this command to enable the OSPF graceful restart functionality on an interface.
| Default | Disabled |
| Format | nsf [ietf] [planned-only] |
| Modes | Router OSPF Config |
| Parameter | Description |
|---|---|
| ietf | This keyword is accepted but not required. |
| planned-only | This optional keyword indicates that OSPF should only perform a graceful restart when the restart is planned (that is, when the restart is a result of the initiate failover command). |
no nsf (Router OSPF Config)
Use this command to disable graceful restart.
| Format | no [ietf] nsf |
| Modes | Router OSPF Config |
nsf restart-interval (Router OSPF Config)
M4350
Use this command to configure the number of seconds that the restarting router asks its neighbors to wait before exiting helper mode. This is referred to as the grace period. The restarting router includes the grace period in its grace LSAs. For planned restarts (using the initiate failover command), the grace LSAs are sent prior to restarting the management unit, whereas for unplanned restarts, they are sent after reboot begins.
The grace period must be set long enough to allow the restarting router to reestablish all of its adjacencies and complete a full database exchange with each of those neighbors. The value for the seconds argument can be from 1–1800 seconds.
| Default | 120 seconds |
| Format | nsf [ietf] restart-interval seconds |
| Modes | Router OSPF Config |
| Parameter | Description |
|---|---|
| ietf | This keyword is accepted but not required. |
| seconds | The number of seconds that the restarting router asks its neighbors to wait before exiting helper mode. The range is from 1 to 1800 seconds. |
no nsf restart-interval (Router OSPF Config)
Use this command to revert the grace period to its default value.
| Format | no [ietf] nsf restart-interval |
| Modes | Router OSPF Config |
nsf helper (Router OSPF Config)
M4350
Use this command to enable helpful neighbor functionality for the OSPF protocol. You can enable this functionality for planned or unplanned restarts, or both.
| Default | OSPF may act as a helpful neighbor for both planned and unplanned restarts |
| Format | nsf helper [planned-only] |
| Modes | Router OSPF Config |
| Parameter | Description |
|---|---|
| planned-only | This optional keyword indicates that OSPF should only help a restarting router performing a planned restart. |
no nsf helper (Router OSPF Config)
Use this command to disable helpful neighbor functionality for OSPF.
| Format | no nsf helper |
| Modes | Router OSPF Config |
nsf ietf helper disable (Router OSPF Config)
M4350
Use this command to disable helpful neighbor functionality for OSPF.
| Format | nsf ietf helper disable |
| Modes | Router OSPF Config |
nsf helper strict-lsa-checking (Router OSPF Config)
M4350
The restarting router is unable to react to topology changes. In particular, the restarting router does not immediately update its forwarding table; therefore, a topology change may introduce forwarding loops or black holes that persist until the graceful restart completes. By exiting the graceful restart on a topology change, a router tries to eliminate the loops or black holes as quickly as possible by routing around the restarting router. A helpful neighbor considers a link down with the restarting router to be a topology change, regardless of the strict LSA checking configuration.
Use this command to require that an OSPF helpful neighbor exit helper mode whenever a topology change occurs.
| Default | Enabled. |
| Format | nsf [ietf] helper strict-lsa-checking |
| Modes | Router OSPF Config |
| Parameter | Description |
|---|---|
| ietf | This keyword is accepted but not required. |
no nsf helper strict-lsa-checking (Router OSPF Config)
Use this command to allow OSPF to continue as a helpful neighbor in spite of topology changes.
| Default | Enabled. |
| Format | no nsf [ietf] helper strict-lsa-checking |
| Modes | Router OSPF Config |