The peer graceful-restart static-timer command sets the maximum time for the local end to wait for GR recovery of the peer.
The undo peer graceful-restart static-timer command deletes the configured maximum duration.
By default, the maximum time for the local end to wait for GR recovery of the peer is 0, in seconds.
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies the IPv4 address of a peer. |
The value is an IPv4 address, in dotted decimal notation. |
restart-time |
Specifies the maximum time for the local end to wait for GR recovery of the peer. |
The value is an integer ranging from 3600 to 2147483647, in seconds. |
Usage Scenario
Even if you run the graceful-restart timer restart time command in the BGP view, the maximum wait time can be changed to 3600s at most. If some BGP sessions take more than 3600s to re-establish due to poor network conditions, you can run the peer graceful-restart static-timer command to set a proper wait time for a specified peer.
Configuration Impact
If the graceful-restart timer restart command is run in the BGP view and the peer graceful-restart static-timer command is run in any of its views, the latter command takes precedence over the former command.
Precautions
GR has been enabled using the graceful-restart command.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 1.1.1.1 as-number 100 [*HUAWEI-bgp] ipv6-flow vpnv6 [*HUAWEI-bgp-af-flow-vpnv6] peer 1.1.1.1 enable [*HUAWEI-bgp-af-flow-vpnv6] peer 1.1.1.1 graceful-restart static-timer 4000