Configuring graceful shutdown for a specific BGP4 neighbor

Configuring graceful shutdown for a specific BGP4 neighbor minimizes traffic loss during a planned shutdown of a single neighbor by rerouting traffic to an alternate path before the shutdown.

About this task

Perform the following steps to configure graceful shutdown of a link to a specific BGP4 neighbor.

Procedure

  1. From privileged EXEC mode, enter global configuration mode.
    device# configure terminal
  2. Enable BGP routing.
    device(config)# router bgp
  3. Configure the autonomous system number (ASN) in which your device resides.
    device(config-bgp-router)# local-as 1000
  4. Add a neighbor.
    device(config-bgp-router)# neighbor 10.11.12.13 remote-as 2
  5. Configure graceful shutdown of the neighbor.
    device(config-bgp-router)# neighbor 10.11.22.13 graceful-shutdown 600 community 30
    This example configures graceful shutdown of the neighbor (10.11.22.13) after 600 seconds and sets the community attribute to 30.
  6. Return to privileged EXEC mode.
    device(config-bgp-router)# end
  7. Verify the configuration.
    device# show running-configuration router bgp
    
     router bgp
      local-as 1000
      neighbor 10.11.12.13 remote-as 2
      neighbor 10.11.12.13 graceful-shutdown 600 community 30
    !
    ! example truncated for brevity
    

Example

The following example shows how to configure graceful shutdown of a specific BGP4 neighbor (10.11.22.13) after 600 seconds. The community attribute is also set to 30.

device# configure terminal	
device(config)# router bgp
device(config-bgp-router)# local-as 1000
device(config-bgp-router)# neighbor 10.11.12.13 remote-as 2
device(config-bgp-router)# neighbor 10.11.22.13 graceful-shutdown 600 commuity 30