Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

graceful-restart (Long-Lived for BGP Restarter)

date_range 12-Jun-24

Syntax

content_copy zoom_out_map
graceful-restart {
    disable-notification-flag;
    disable-notification-extensions {
        omit-no-export;
    }
    forwarding-state-bit (from-fib | set); /* Configurable to be common for all address families */
    forwarding-state-bit (as-rr-client | from-fib); /* Configurable for each address family */
    long-lived {
        restarter {
            disable;
            stale-time interval;
        }
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems logical-system-name protocols bgp family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit logical-systems logical-system-name protocols bgp group group-name family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit logical-systems logical-system-name protocols bgp group group-name neighbor address family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit logical-systems logical-system-name routing-instances routing-instance-name protocols bgp family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit logical-systems logical-system-name routing-instances routing-instance-name protocols bgp group group-name family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit logical-systems logical-system-name routing-instances routing-instance-name protocols bgp group group-name neighbor address family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit routing-instances routing-instance-name protocols bgp family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit routing-instances routing-instance-name protocols bgp group group-name family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit routing-instances routing-instance-name protocols bgp group group-name neighbor address family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit routing-instances routing-instance-name protocols bgp family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit routing-instances routing-instance-name protocols bgp group group-name family (l2vpn | route-target | inet) (labeled-unicast | flow)],
[edit routing-instances routing-instance-name protocols bgp group group-name neighbor address family (l2vpn | route-target | inet) (labeled-unicast | flow)]
Note:

Each routing table is identified by the protocol family or address family indicator (AFI) and a subsequent address family identifier (SAFI). The AFI parameter can be one of the (l2vpn | inet | route-target) protocols and the SAFI parameter can be either of the (flow | labeled-unicast) protocols for inet family and one of the (auto-discovery-mspw | auto-discovery-only | signaling) protcols for L2VPN family..

Configuring LLGR does not require that BGP graceful restart also be configured. The long-lived-graceful-restart section is visible only for families l2vpn, inet labeled-unicast, inet flow and route-target. It is prohibited for inet-mvpn, inet6-mvpn and inet-mdt. It is hidden for other families.

Description

Configure the graceful restart capability for long-lived BGP sessions on the restarting router to enable BGP routing details to be retained for a longer period. It in important to retain BGP data for a longer period when the BGP control plane fails for some reason for slowly-restarting routers for a longer duration. You can define the time period for which the stale routes need to be maintained.

You can also configure the BGP long-lived graceful restarter mode negotiation mechanism for a particular address family instead of configuring this capability for all address families in a system, logical system, or routing instance.

When LLGR restarter is enabled or disabled for a family or the stale- time is changed, the session is reset so that the new capability can be sent to the neighbor.

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.

footer-navigation