Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


graceful-shutdown (Protocols BGP)


Hierarchy Level


Configure graceful shutdown feature for BGP. Graceful shutdown migrates traffic from one BGP next-hop to another without interrupting the traffic flow. This feature can be enabled for both IBGP and EBGP. The router on which the graceful shutdown is performed is known as the sender or initiator. The receiver is the router that has a BGP session with the sender router. A device acting as a sender is by default a receiver. In other words, with the sender feature enabled, the receiver feature cannot be disabled on the same device.


The BGP neighbor device must support graceful shutdown feature, without any additional configuration.


On completion of the maintenance window, disabling graceful shutdown is recommended.


The graceful shutdown receiver feature is enabled by default.

The graceful shutdown sender feature is disabled by default.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 19.1.