Configuring Graceful Restart for the BGP L2VPN EVPN Address Family

BGP graceful restart (GR) allows for restarts where BGP neighboring devices participate in the restart, helping to ensure that no route and topology changes occur in the network for the duration of the restart. The following task enables BGP GR and sets the restart time to 60 seconds for the BGP L2VPN EVPN address family.
  1. Enter global configuration mode.
    device# configure terminal
  2. Enable BGP routing.
    device(config)# router bgp
  3. Configure the autonomous system number (ASN).
    device(config-bgp-router)# local-as 656
  4. Specify the ASN for the neighbor device.
    device(config-bgp-router)# neighbor 1.1.1.35 remote-as 656
  5. Enable BGP L2VPN EVPN address family configuration mode.
    device(config-bgp-router)# address-family l2vpn evpn
  6. Activate the neigbor to enable the exchange of information with the neigbor.
    device(config-bgp-l2vpn-evpn)# neighbor 1.1.1.35 activate
    
  7. Enable the sending of both standard and extended attributes in updates to the specified BGP neighbor.
    device(config-bgp-l2vpn-evpn)# neighbor 1.1.1.35 send-community both
  8. Enable GR and set the restart time.
    device(config-bgp-l2vpn-evpn)# graceful restart restart-time 60
    The restart time is set to 60 seconds.

The following example enables GR and sets the restart time to 60 seconds for the BGP L2VPN EVPN address family.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 656
device(config-bgp-router)# neighbor 1.1.1.35 remote-as 656
device(config-bgp-router)# address-family l2vpn evpn
device(config-bgp-l2vpn-evpn)# neighbor 1.1.1.35 activate
device(config-bgp-l2vpn-evpn)# neighbor 1.1.1.35 send-community both
device(config-bgp-l2vpn-evpn)# graceful restart restart-time 60