peer capability-advertise graceful-restart disable(BGP multi-instance VPN instance 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 peerIpv4Addr capability-advertise graceful-restart

peer peerIpv4Addr capability-advertise graceful-restart disable

undo peer peerIpv4Addr capability-advertise graceful-restart

undo peer peerIpv4Addr capability-advertise graceful-restart disable

Parameters

Parameter Description Value
peerIpv4Addr

Specifies the IPv4 address of a BGP peer.

The value is in dotted decimal notation.

Views

BGP multi-instance VPN instance 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.

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] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv4-family
[*HUAWEI-vpn-instance-vpn1-af-ipv4] bgp 100 instance a
[*HUAWEI-bgp-instance-a] vpn-instance vpn1
[*HUAWEI-bgp-instance-a-instance-vpn1] peer 10.1.1.1 as-number 100
[*HUAWEI-bgp-instance-a-instance-vpn1] peer 10.1.1.1 capability-advertise graceful-restart
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >