The peer local-graceful-restart timer restart command sets the maximum duration for a device to wait for the BGP peer relationship with a specified peer to be reestablished. After this command is run, the device will not advertise the maximum duration to the specified peer.
The undo peer local-graceful-restart timer restart command deletes the configured duration.
By default, a device waits for the peer relationship with a peer 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. |
restart-time |
Specifies the maximum duration for a device to wait for the GR recovery of a specified peer. |
The value is an integer ranging from 3 to 3600, in seconds. |
Usage Scenario
If a device supports GR but a BGP peer specified on the device does not support GR, you can run the peer local-graceful-restart timer restart command to set the maximum duration for the device to wait for the BGP peer relationship with the peer to be reestablished. After this command is run, if the device detects that the peer is down, the 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.
<HUAWEI> system-view [~HUAWEI] bgp 100 instance vpn1 [*HUAWEI-bgp-instance-vpn1] peer 10.1.1.2 as-number 100 [*HUAWEI-bgp-instance-vpn1] peer 10.1.1.2 local-graceful-restart timer restart 250