Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


long-lived (Graceful Restart for BGP Helper)


Hierarchy Level


Configure the long-lived graceful restart mechanism to preserve BGP routing details for a longer period from a failed BGP peer than the duration for which such routing information is maintained using the BGP graceful restart functionality. Long-lived graceful restart receiver or helper mode is enabled by default, unless ordinary graceful restart receiver or helper mode is disabled.

The long-lived receiver enable overrides a disable option inherited from a higher level in the configuration. It does not enable long-lived graceful restart restarter mode for all families—restarter mode must be configured explicitly for each family. When the LLGR receiver or helper mode is enabled or disabled, the session is reset. This behavior enables the new capability value to be sent to the neighbor.


If you configure graceful restart after a BGP session has been established, the BGP session restarts and the peers negotiate graceful restart capabilities.

Configure graceful restart globally at the [edit routing-options] or [edit routing-instances instance-name routing-options] hierarchy level to enable the feature. You cannot enable graceful restart for specific protocols unless graceful restart is also enabled globally. You can, optionally, modify the global settings at the individual protocol level.

We have enhanced the long-lived graceful restart (LLGR) capabilities for BGP Helper and introduced the configuration statement extended-route-retention at [edit protocols bgp group neighbor graceful-restart long-lived] hierarchy level. When you enable this feature, extended-route-retention supports LLGR helper mode regardless of the BGP peer LLGR capabilities.

The remaining statements are explained separately. See CLI Explorer.

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 15.1.