The peer local-graceful-restart enable command enables local GR for a specified peer on a device. After this command is run, the device will not advertise the GR capability to the specified peer.
The peer local-graceful-restart disable command disables local GR for a specified peer on a device.
By default, local GR is not enabled for a peer specified on a device.
peer ipv4-address local-graceful-restart disable
peer ipv6-address local-graceful-restart disable
peer ipv4-address local-graceful-restart enable
peer ipv6-address local-graceful-restart enable
undo peer ipv4-address local-graceful-restart disable
undo peer ipv6-address local-graceful-restart disable
undo peer ipv4-address local-graceful-restart enable
undo peer ipv6-address local-graceful-restart enable
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 enable command on the device to enable local GR for the peer. This configuration ensures that the device does not delete the routes received from the peer and related forwarding entries before the GR time elapses, thereby preventing traffic interruption.
Precautions
If a peer specified on a device does not support GR, you are advised to enable local GR for the peer.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] route-distinguisher 1:1 [*HUAWEI-vpn-instance-vpn1-af-ipv4] quit [*HUAWEI-vpn-instance-vpn1] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] vpn-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 enable