Note
High availability (HA) requires GR to be enabled.SLX # configure terminal
SLX (config)# router bgp
SLX (config-bgp-router)# local-as 1000
SLX (config-bgp-router)# neighbor 10.11.12.13 remote-as 2
SLX (config-bgp-router)# neighbor 10.11.12.13 graceful-restart
SLX (config-bgp-router)# address-family ipv4 unicast
SLX (config-bgp-ipv4u)# graceful-restart purge-time 300
device(config-bgp-ipv4u)# graceful-restart restart-time 180
device(config-bgp-ipv4u)# graceful-restart stale-routes-time 100
The following example enables the GR feature. Once enabled, the neighbor with IP address 10.11.12.13 is configured to gracefully restart.
SLX # configure terminal SLX (config)# router bgp SLX (config-bgp-router)# local-as 1 SLX (config-bgp-router)# neighbor 10.11.12.13 remote-as 2 SLX (config-bgp-router)# neighbor 10.11.12.13 graceful-restart
The following example disables the Graceful Restart feature. Once disabled, the neighbor with IP address 10.11.12.13 is no longer configured to gracefully restart.
SLX # configure terminal SLX (config)# router bgp SLX (config-bgp-router)# local-as 1 SLX (config-bgp-router)# neighbor 10.11.12.13 remote-as 2 SLX (config-bgp-router)# neighbor 10.11.12.13 graceful-restart disable
The following example shows the configuration of graceful restart on the BGP peer-group.
SLX # configure terminal SLX (config)# router bgp SLX (config-bgp-router)# local-as 1 SLX (config-bgp-router)# neighbor mypeer1 peer-group SLX (config-bgp-router)# neighbor mypeer1 remote-as 2 SLX (config-bgp-router)# neighbor mypeer1 graceful-restart
Use the clear ip bgp neighbor command with the all parameter for the changes to the GR parameters to take effect immediately.