The peer graceful-restart static-timer command sets the maximum duration from the time the local device finds that the peer device is restarted to the time a BGP EVPN session is re-established.
The undo peer graceful-restart static-timer command deletes the configuration.
By default, the maximum duration from the time the local device finds that the peer device is restarted to the time a BGP EVPN session is re-established is 150s.
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies the IPv4 address of a peer. |
It is in dotted decimal notation. |
restart-time |
Specifies the maximum duration from the time the local device finds that the peer device is restarted to the time a BGP EVPN session is re-established. |
The value is an integer ranging from 3600 to 2147483647, in seconds. |
Usage Scenario
By default, the maximum duration from the time the local device finds that the peer device is restarted to the time a BGP EVPN session is re-established is 150s. 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 EVPN 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] graceful-restart [*HUAWEI-bgp] peer 1.1.1.1 as-number 100 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer 1.1.1.1 enable [*HUAWEI-bgp-af-evpn] peer 1.1.1.1 graceful-restart static-timer 5000