Pcornel
Networking · Network & Protocols › BGP Protocol Reference

BGP Graceful Restart Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=250

Back to the Topic

Answer

Graceful restart lets a router's BGP process restart without its neighbours withdrawing its routes. For a limited time the neighbours keep forwarding to it, on the assumption that it still passes traffic.

Remember

It only helps if the restarting router really keeps forwarding. If it has failed outright, neighbours send traffic to it until the restart time (120 seconds by default) runs out. It is negotiated in the OPEN, so enabling it needs a session reset. It pulls against BFD's fast failover.

First checks

  • show ip bgp neighbors <ip> | include Graceful|restart|stale — enabled, restart and stale-path times.
  • show ip bgp neighbors <ip> | section capabilities — advertised and received, per address family.
  • show ip bgp <prefix> — routes flagged S (stale) during a restart.

Verify in this order

capability advertised by both → session drops for a restart → helper marks routes stale and keeps forwarding → session returns within the restart time → routes resent, End-of-RIB → stale entries replaced or removed

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=250

Confirmation

Confirm action

Continue?