< Home

graceful-restart (OSPF)

Function

The graceful-restart command enables the GR function.

The undo graceful-restart command disables GR function.

By default, OSPF GR is disabled.

Format

graceful-restart [ period period | planned-only | partial ] *

undo graceful-restart [ period | planned-only | partial ] *

Parameters

Parameter Description Value
period period Specifies the duration of GR. It is an integer ranging from 1s to 1800s. The default value is 120s.
planned-only Indicates that the FW supports only the planned-GR. By default, the FW supports both the planned GR and unplanned GR. -
partial Indicates that the FW partially supports the GR. By default, the FW totally supports the GR. -

Planned GR: indicates that a FW manually restarts or performs a master/slave MPU switchover by using the command. Before the FW restarts or performs a master/slave MPU switchover, Restarter will send a grace LSA.

Unplanned GR: indicates that a FW restarts or performs a master/slave MPU switchover because of faults. A router directly performs a master/slave MPU switchover without sending a grace LSA, and then enters GR after the slave MPU goes Up. It is different from the planned GR.

Views

OSPF view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The graceful-restart command enables OSPF GR to avoid the route flapping due to the traffic interruption or master/slave MPU switchover. After the graceful-restart command is run to enable GR for a FW, the Helper function is also enabled.

Prerequisites

Opaque LSAs provide a generic mechanism for OSPF extension:

  • OSPF supports GR using Type 9 LSAs.
  • OSPF supports TE using Type 10 LSAs.

Before configuring OSPF GR, you must enable opaque LSA capability running the opaque-capability enable command.

Configuration Impact

After an OSPF process is restarted using GR, the Restarter router and the Helper router reestablish the neighbor relationship, exchange routing information, synchronize the LSDB, and update the routing table and forwarding table. This implements OSPF fast convergence, prevents traffic interruption, and stabilizes the network topology.

Precautions

If there are special requirements on the GR Helper, run the graceful-restart helper-role command to configure the requirements.

Example

# Enable OSPF GR and the GR period is set to 200s.

<sysname> system-view
[sysname] ospf 1
[sysname-ospf-1] opaque-capability enable
[sysname-ospf-1] graceful-restart period 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >