Skip to content

Lesson 9 of 9 · 21m

Operating BGP Safely: Change, Monitoring, and Rollback

Production BGP discipline means staged changes, maintenance windows that match blast radius, continuous monitoring, configuration review, and rollback plans tested before you need them.

Most BGP disasters are procedure failures wearing technical clothes. The router did what it was told. The missing pieces were peer review, staged deployment, pre-change verification, or a rollback plan beyond we'll remember what we changed. Safe BGP operations are mundane, repeatable, and slightly boring — exactly what you want.

Before the change

Write down four things:

intended control-plane result
expected forwarding/traffic result
verification commands and acceptance criteria
exact rollback steps

For example: adding a customer prefix should specify expected prefix count, route-policy names, communities, looking-glass checks, and maximum traffic impact. If you cannot define what correct looks like, you are not ready to type the change.

Stage by blast radius

Do not roll a policy change to every edge at once if one edge can prove it. A practical order is:

lab or test VRF
one non-critical peering edge
one production edge during a low-risk window
remaining edges in batches

Between stages, compare route counts and inspect a sample of prefixes. A successful SSH command is not validation. Control-plane state plus traffic behavior is validation.

Monitoring that catches real failures

Minimum useful coverage includes:

BGP session state and uptime
prefixes received/advertised per neighbor
RPKI invalid trends
route withdrawals and flaps
interface utilization and discards
latency/loss probes from multiple external vantage points

Alert on symmetry-breaking events: one peer drops while others stay up, advertised count changes unexpectedly, or inbound traffic collapses while outbound remains normal. Threshold-only alerts on utilization miss many routing failures because routing failures often reduce traffic to zero — quiet systems can be very broken.

Configuration hygiene

Use configuration management or at least version-controlled generated config. Review diffs, not intentions. Keep secrets out of tickets and chat. Lock down who can change edge routing and require a second pair of eyes for global policy. Automation is valuable only when it encodes guardrails; automation that pastes unreviewed snippets faster is an incident multiplier.

Rollback means tested reversal

A rollback plan that says remove the route-map is incomplete if sessions need resets, prefix lists are generated elsewhere, or upstreams cache policy. Know whether soft reconfiguration is enabled and whether a hard reset will interrupt traffic. Practice rollback in maintenance windows. The middle of an outage is not the time to learn command syntax differences between platforms.

Field notes

  • Copy run start is not a backup strategy; export configurations automatically and retain history.
  • After changes, compare before/after show bgp summary, prefix counts, and representative routes.
  • Maintenance windows should consider time zones of customers and upstream NOC staffing, not just local convenience.
  • Small networks benefit from written runbooks more than large ones because incidents are rarer and memory fades.
  • If a change cannot be safely rolled back, say so explicitly and treat approval as a risk decision.

Was this lesson helpful?

Sign in to rate