< Home

graceful-restart helper-role (OSPF)

Function

The graceful-restart helper-role command configures a device as a GR helper.

The undo graceful-restart helper-role command cancels the configuration.

By default, the device does not function as a GR helper.

Format

graceful-restart [ period period | partial | planned-only ] * helper-role { [ { ip-prefix ip-prefix-name | acl-number acl-number | acl-name acl-name } | ignore-external-lsa | planned-only ] * | never }

undo graceful-restart [ period | partial | planned-only ] * helper-role [ [ { ip-prefix | acl-number | acl-name } | ignore-external-lsa | planned-only ] * | never ]

Parameters

Parameter Description Value

period period

Specifies the duration of GR.

The value is an integer that ranges from 1 to 1800, in seconds. The default value is 120.

planned-only

Configures the device to support only planned GR. By default, the device supports both the planned GR and unplanned GR.

-

partial

Configures the device to support partial GR. By default, the device supports totally GR.

-

ip-prefix ip-prefix-name

Specifies the name of an IP prefix list. The name is a string.

The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

acl-number acl-number

Specifies the basic ACL number.

The value is an integer that ranges from 2000 to 2999.

acl-name acl-name

Specifies the name of a named ACL.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter.

ignore-external-lsa

Indicates that the device does not check Type 5 and Type 7 LSAs.

-

planned-only

Indicates that the device supports only planned GR.

By default, the device supports both planned GR and unplanned GR.

never

Indicates that the device does not support the Helper mode.

-

Views

OSPF view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If an OSPF neighbor supports GR and can be a restarter, the current device needs to be set to helper mode, and the neighbor is assisted to complete the GR process.

After the graceful-restart command is run to enable GR for a switch, the Helper function is also enabled.

Prerequisites

OSPF supports GR using Type 9 LSAs. So before configuring GR, run the opaque-capability enable command to enable opaque LSA capability.

Example

# Configure a device as an OSPF GR helper and configure the helper to support only planned GR.

<HUAWEI> system-view
[HUAWEI] ospf 1
[HUAWEI-ospf-1] graceful-restart helper-role planned-only
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >