The graceful restart (GR) feature can be configured on a routing device, providing it with the capability to inform its neighbors when it is performing a restart.
Note
High availability (HA) requires GR to be enabled.device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 1000
device(config-bgp-router)# neighbor 1000::1 remote-as 2
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# neighbor 1000::1 activate
device(config-bgp-ipv6u)# graceful-restart
device(config-bgp-ipv6u)# graceful-restart purge-time 300
device(config-bgp-ipv6u)# graceful-restart restart-time 180
device(config-bgp-ipv6u)# graceful-restart stale-routes-time 100
The following example enables the graceful restart feature.
device# configure terminal device(config)# router bgp device(config-bgp-router)# local-as 1 device(config-bgp-router)# neighbor 1000::1 remote-as 2 device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)# neighbor 1000::1 activate device(config-bgp-ipv6u)# graceful-restart
The following example enables the graceful restart feature and sets the purge time to 300 seconds, overwriting the default value.
device# configure terminal device(config)# router bgp device(config-bgp-router)# local-as 1 device(config-bgp-router)# neighbor 1000::1 remote-as 2 device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)# neighbor 1000::1 activate device(config-bgp-ipv6u)# graceful-restart purge-time 300
The following example enables the graceful restart feature and sets the restart time to 180 seconds, overwriting the default value.
device# configure terminal device(config)# router bgp device(config-bgp-router)# local-as 1 device(config-bgp-router)# neighbor 1000::1 remote-as 2 device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)# neighbor 1000::1 activate device(config-bgp-ipv6u)# graceful-restart restart-time 180
The following example enables the graceful restart feature and sets the stale-routes time to 100 seconds, overwriting the default value.
device# configure terminal device(config)# router bgp device(config-bgp-router)# local-as 1 device(config-bgp-router)# neighbor 1000::1 remote-as 2 device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)# neighbor 1000::1 activate device(config-bgp-ipv6u)# graceful-restart stale-routes-time 100
Use the clear ipv6 bgp neighbor command with the all parameter for the changes to the graceful restart parameters to take effect immediately.