peer local-graceful-restart (BGP multi-instance view)

Function

The peer local-graceful-restart enable command enables local GR for a specified peer on a device. After this command is run, the device will not advertise the GR capability to the specified peer.

The peer local-graceful-restart disable command disables local GR for a specified peer on a device.

By default, local GR is not enabled for a peer specified on a device.

Format

peer ipv4-address local-graceful-restart disable

peer ipv4-address local-graceful-restart enable

undo peer ipv4-address local-graceful-restart disable

undo peer ipv4-address local-graceful-restart enable

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a BGP peer.

The value is in dotted decimal notation.

Views

BGP multi-instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

If a device supports GR but a BGP peer specified on the device does not support GR, you can run the peer local-graceful-restart enable command on the device to enable local GR for the peer. This configuration ensures that the device does not delete the routes received from the peer and related forwarding entries before the GR time elapses, thereby preventing traffic interruption.

Precautions

If a peer specified on a device does not support GR, you are advised to enable local GR for the peer.

Example

# Enable local GR for a specified peer on a device.
<HUAWEI> system-view
[~HUAWEI] bgp 100 instance vpn1
[*HUAWEI-bgp-instance-vpn1] peer 10.1.1.2 as-number 100
[*HUAWEI-bgp-instance-vpn1] peer 10.1.1.2 local-graceful-restart enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >