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 |
---|---|---|
peerIpv4Addr |
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 that ranges from 3 to 3600, in seconds. |
Usage Scenario
To set the maximum duration for a device to wait for the BGP peer relationship with each peer in a group to be reestablished, run the peer local-graceful-restart timer restart command. After this command is run, if the device detects that a peer in the group is down, the involved 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] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv4-family [*HUAWEI-vpn-instance-vpn1-af-ipv4] route-distinguisher 1:1 [*HUAWEI-vpn-instance-vpn1-af-ipv4] quit [*HUAWEI-vpn-instance-vpn1] quit [*HUAWEI] bgp 100 instance a [*HUAWEI-bgp-instance-a] vpn-instance vpn1 [*HUAWEI-bgp-instance-a-instance-vpn1] peer 10.1.1.1 as-number 100 [*HUAWEI-bgp-instance-a-instance-vpn1] peer 10.1.1.1 local-graceful-restart timer restart 250