The peer capability-advertise graceful-restart command enables GR for all peers in a specified group on a device. After this command is run, the device will advertise the GR capability to all the peers in the group.
The undo peer capability-advertise graceful-restart command cancels GR enabling for each peer in a specified group on a device.
By default, GR is not enabled for any peer in a specified group on a device.
Usage Scenario
If the graceful-restart command is run in the BGP view to enable GR globally on a device, all the device's peer relationships are disconnected, and the device has to renegotiate the GR capability with its peers. You are therefore advised to run the peer capability-advertise graceful-restart command instead to enable GR for peers in a specified group. After the command is run, the device advertises the GR capability to all the peers in the group. This ensures that the device does not delete the routes received from these peers and forwarding entries before the GR time elapses, thereby preventing traffic interruption.
Configuration Impact
Enabling or disabling GR for each peer in a specified group on a device causes the BGP peer relationships to be disconnected and then reestablished.
Precautions
If a specified group on a device has peers that do not support GR, you are advised to enable both GR and local GR for all the peers in the group.