Configuring graceful shutdown for all BGP4 neighbors

Configuring graceful shutdown for all BPG4 neighbors minimizes traffic loss during a planned shutdown of all neighbors by rerouting traffic to alternate paths before the shutdown.

About this task

Perform the following steps to configure graceful shutdown for all BGP4 neighbors.

Procedure

  1. From privileged EXEC mode, enter global configuration mode.
    device# configure terminal
  2. Enable BGP routing.
    device(config-rbridge-id-122)# 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
    Repeat this step for all neighbors on the device.
  5. Configure graceful shutdown for all neighbors.
    device(config-bgp-router)# graceful-shutdown 600 community 10 
    This example configures graceful shutdown for all neighbors after 600 seconds and sets the community attribute to 10. The graceful-shutdown command gracefully shuts down all neighbors on the node. When a route map is not specified, default graceful shutdown parameters are applied. When a route map is specified, only route-map parameters are applied.
  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
      graceful-shutdown 600 community 10
    !
    ! example truncated for brevity
    

Example

The following example shows how to configure graceful shutdown of all BGP4 neighbors after 600 seconds. The community attribute is also set to 10.

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)# graceful-shutdown 600 community 10