peer graceful-restart peer-reset (BGP-VPN instance IPv6 address family view) (group)

Function

The peer graceful-restart peer-reset command enables a device to use the GR mode to reset BGP connections with all peers in a specified group.

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

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

Format

peer group-name graceful-restart peer-reset

undo peer group-name graceful-restart peer-reset

Parameters

Parameter Description Value
group-name

Specifies the name of a BGP peer group.

The value is a string of 1 to 47 case-sensitive characters. If spaces are used, the string must start and end with double quotation marks (").

Views

BGP-VPN instance IPv6 address family 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 sessions with peers in the affected group and renegotiates BGP capabilities with the peers. To enable the BGP speaker to use the GR mode to reset BGP connections with all peers in the group, run the peer graceful-restart peer-reset command. After this command is run, if the BGP speaker establishes a peer relationship with a peer in the BGP IPv6 unicast address family and then attempts to establish a new relationship with the same peer in another address family, the BGP IPv6 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 IPv6 unicast session. However, the BGP speaker retains the routes received from the BGP IPv6 unicast peer. This allows the forwarding module to continue forwarding IPv6 services according to the existing routing entries, thereby ensuring service continuity.

Example

# Enable a device to use the GR mode to reset BGP connections with all peers in a specified group.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv6-family
[*HUAWEI-vpn-instance-vpna-af-ipv6] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv6] bgp 100
[*HUAWEI-bgp] ipv6-family vpn-instance vpna
[*HUAWEI-bgp-6-vpna] group aaa
[*HUAWEI-bgp-6-vpna] peer aaa graceful-restart peer-reset
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >