peer capability-advertise graceful-restart (BGP view)

Function

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

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

The undo peer capability-advertise graceful-restart command cancels GR enabling for a specified peer on a device.

The undo peer capability-advertise graceful-restart disable command cancels GR disabling for a specified peer on a device.

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

Format

peer ipv4-address capability-advertise graceful-restart

peer ipv4-address capability-advertise graceful-restart disable

peer ipv6-address capability-advertise graceful-restart

peer ipv6-address capability-advertise graceful-restart disable

undo peer ipv4-address capability-advertise graceful-restart

undo peer ipv4-address capability-advertise graceful-restart disable

undo peer ipv6-address capability-advertise graceful-restart

undo peer ipv6-address capability-advertise graceful-restart disable

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a BGP peer.

The value is in dotted decimal notation.

ipv6-address

Specifies the IPv6 address of a BGP peer.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

If the graceful-restart command is run in the BGP view to enable GR globally on a device, all the device's peer relationships are disconnected, and the device has to renegotiate the GR capability with its peers. You are therefore advised to run the peer capability-advertise graceful-restart command instead to enable GR for a specified peer. After the command is run, the device advertises the GR capability to the specified peer. This ensures that the device does not delete the routes received from the specified peer and related forwarding entries before the GR time elapses, thereby preventing traffic interruption.

Configuration Impact

Enabling or disabling GR for a specified peer on a device causes the BGP peer relationship to be disconnected and then reestablished.

Example

# Enable GR for a specified peer on a device. The device will then advertise the GR capability to the specified peer.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.1 as-number 100
[*HUAWEI-bgp] peer 10.1.1.1 capability-advertise graceful-restart
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >