peer local-graceful-restart timer restart (BGP-VPN instance IPv4 address family view) (group)

Function

The peer local-graceful-restart timer restart command sets the maximum duration for a device to wait for the BGP peer relationship with each peer in a specified group to be reestablished. After this command is run, the device will not advertise the maximum duration to any peer in the specified group.

The undo peer local-graceful-restart timer restart command deletes the configured duration.

By default, a device waits for the BGP peer relationship with each peer in a specified group to be reestablished for a maximum of 150s.

Format

peer group-name local-graceful-restart timer restart restart-time

undo peer group-name local-graceful-restart timer restart

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 (").

restart-time

Specifies the maximum duration for a device to wait for the GR recovery of each peer in a specified group.

The value is an integer ranging from 3 to 3600, in seconds.

Views

BGP-VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

To set the maximum duration for a device to wait for the BGP peer relationship with each peer in a group to be reestablished, run the peer local-graceful-restart timer restart command. After this command is run, if the device detects that a peer in the group is down, the involved BGP session on the device enters the GR process. If the peer relationship fails to be reestablished within the specified duration, the BGP session exits from the GR process and the device selects the optimal route from current reachable routes.

Example

# Set the maximum duration to 250s for a device to wait for the peer relationship with each peer in a specified group to be reestablished.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] route-distinguisher 1:1
[*HUAWEI-vpn-instance-vpn1-af-ipv4] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family vpn-instance vpn1
[*HUAWEI-bgp-vpn1] group aa
[*HUAWEI-bgp-vpn1] peer aa local-graceful-restart timer restart 250
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >