graceful-shutdown

Gracefully shuts down all BGP neighbors.

Syntax

graceful-shutdown seconds [ community value [ local-preference value ] | local-preference value [ community value ] | route-map route-map-name ]
no graceful-shutdown seconds [ community value [ local-preference value ] | local-preference value [ community value ] | route-map route-map-name ]

Command Default

Default graceful shutdown parameters are applied.

Parameters

seconds
Specifies the number of seconds in which the BGP graceful shutdown will occur. Valid values range from 30 through 600 seconds.
community value
Sets the community attribute for graceful shutdown. Valid values range from 1 through 4294967295.
local-preference value
Sets the local preference attribute for graceful shutdown. Valid values range from 0 through 4294967295.
route-map route-map-name
Specifies the route map for graceful shutdown attributes.

Modes

BGP configuration mode

Usage Guidelines

The no form of the command de-activates graceful shutdown.

Examples

The following example gracefully shuts down all BGP neighbors and sets the graceful shutdown timer to 180 seconds.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# graceful-shutdown 180

The following example gracefully shuts down all BGP neighbors and sets the graceful shutdown timer to 600 seconds. The route map “myroutemap” is specified for graceful shutdown attributes.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# graceful-shutdown 600 route-map myroutemap

The following example gracefully shuts down all BGP neighbors and sets the graceful shutdown timer to 600 seconds. The community attribute is set to 10.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# graceful-shutdown 600 community 10