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

Function

The peer graceful-restart peer-reset command enables a device to use the GR mode to reset the BGP connection with a specified peer.

The undo peer graceful-restart peer-reset command cancels the enabling configuration.

The peer graceful-restart peer-reset disable command disables a device from using the GR mode to reset the BGP connection with a specified peer.

The undo peer graceful-restart peer-reset disable command cancels the disabling configuration.

By default, a device cannot use the GR mode to reset the BGP connection with a specified peer.

Format

peer ipv4-address graceful-restart peer-reset

peer ipv4-address graceful-restart peer-reset disable

undo peer ipv4-address graceful-restart peer-reset

undo peer ipv4-address graceful-restart peer-reset disable

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

Currently, BGP does not support dynamic capability negotiation. Therefore, each time a BGP capability is changed or a new BGP capability is enabled, a BGP speaker tears down the existing session with the affected peer and renegotiates BGP capabilities with the peer.

To enable the BGP speaker to use the GR mode to reset the BGP connection with the peer, run the peer graceful-restart peer-reset command. After this command is run, if the BGP speaker establishes a peer relationship with the peer in the BGP IPv4 unicast address family and then attempts to establish a new relationship with the same peer in another address family, the BGP IPv4 unicast session enters the GR process and the BGP speaker renegotiates BGP capabilities with the peer. During this process, the BGP speaker reestablishes the BGP IPv4 unicast session. However, the BGP speaker retains the routes received from the BGP IPv4 unicast peer. This allows the forwarding module to continue forwarding IPv4 services according to the existing routing entries, thereby ensuring service continuity.

Example

# Enable a device to use the GR mode to reset the BGP connection with a specified peer.
<HUAWEI> system-view
[~HUAWEI] bgp 100 instance dd
[~HUAWEI-bgp-instance-dd] peer 10.1.1.1 as-number 100
[~HUAWEI-bgp-instance-dd] peer 10.1.1.1 graceful-restart peer-reset
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >