Pcornel
Networking · Network & Protocols › BGP Protocol Reference

BGP Notification Error Reference

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

Back to the Topic

Answer

When a BGP router ends a session it first sends a NOTIFICATION with an error code and subcode saying why. Both routers log it, and the last one is kept per neighbour.

Remember

"Sent to" means this router found the problem; "received from" means the neighbour did. Code 2 is a mismatch at session start, 3 a bad UPDATE, 4 hold timer expired, 6 a deliberate close. Read it before clearing the session — a clear overwrites the reason.

First checks

  • show ip bgp neighbors <ip> | include Last reset|Notif — reason, time and counters.
  • show logging | include BGP-3-NOTIFICATION|BGP-5-ADJCHANGE — the full lines with code, subcode and data.
  • show ip bgp summary — current state and time in it.

Verify in this order

session drops → NOTIFICATION logged with direction, code and subcode → code names the phase (open, update, hold timer, cease) → cause corrected on the side it points to → session re-established and stable

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=247

Confirmation

Confirm action

Continue?