Configuring graceful shutdown for a BGP4 peer group minimizes traffic loss during a planned shutdown of the peer group by rerouting traffic to an alternate path before the shutdown.
Perform the following steps to configure graceful shutdown for all peers in a BGP4 peer group.
device# configure terminal
device(config-rbridge-id-122)# router bgp
device(config-bgp-router)# local-as 1000
device(config-bgp-router)# neighbor grp-1 peer-group
device(config-bgp-router)# neighbor grp-1 graceful-shutdown 600 community 20
device(config-bgp-router)# end
device# show running-configuration router bgp router bgp local-as 1000 neighbor grp-1 peer-group neighbor grp-1 graceful-shutdown 600 community 20 ! ! example truncated for brevity
The following example shows how to configure graceful shutdown of a peer group named grp-1 after 600 seconds. The community attribute is also set to 20.
device# configure terminal device(config)# router bgp device(config-bgp-router)# local-as 1000 device(config-bgp-router)# neighbor grp-1 peer-group device(config-bgp-router)# neighbor grp-1 graceful-shutdown 600 community 20