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.
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. |
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.