peer graceful-restart timer restart (BGP view)

Function

The peer graceful-restart timer restart command sets the maximum duration on a device for a specified peer to wait for its BGP peer relationship to be reestablished with the device. After the command is run, the device will advertise the maximum duration to the specified peer.

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

By default, a peer specified on a device waits for its BGP peer relationship to be reestablished for a maximum of 150 seconds.

Format

peer ipv4-address graceful-restart timer restart time-value

peer ipv6-address graceful-restart timer restart time-value

undo peer ipv4-address graceful-restart timer restart

undo peer ipv6-address graceful-restart timer restart

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a BGP peer.

The value is in dotted decimal notation.

time-value

Specifies the maximum duration on a device for a peer to wait for its BGP peer relationship to be reestablished with the device.

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

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 a device and a BGP peer specified on the device both support GR, you can run the peer graceful-restart timer restart command to set the maximum duration on the device for the peer to wait for its BGP peer relationship to be reestablished with the device. After this command is run, if the peer detects that the device is down, the BGP session on the peer 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 peer selects the optimal route from current reachable routes.

Configuration Impact

After the peer graceful-restart timer restart command is run, the involved BGP peer relationship will be disconnected and then reestablished.

Example

# Set the maximum duration to 100s on a device for a specified peer to wait for its BGP peer relationship to be reestablished with the device.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.1 as-number 100
[*HUAWEI-bgp] peer 10.1.1.1 graceful-restart timer restart 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >