Octet

A BGP neighbor is stuck in Active. What does that tell you, and what do you check?

Show the answer

Say this first

Active means BGP keeps trying to build the TCP session to port 179 and it keeps failing, so the problem is below BGP policy. I check the route to the neighbor address and back, that each side's neighbor statement matches the address the other side sources from (update-source), the eBGP TTL when peering on loopbacks, ACLs or firewalls dropping TCP 179, that the peer is configured for me at all, and MD5 password mismatches.

Go deeper

Checklist in the order I run it

  1. Reachability with the real addresses. ping 10.255.0.2 source Loopback0 tests exactly the pair BGP will use. A plain ping from the physical interface proves less.
  2. Neighbor address and update-source. If R1 has no update-source Loopback0, its SYN leaves from the physical interface address. R2 has no neighbor with that address and resets the connection.
  3. eBGP on loopbacks. eBGP expects a directly connected peer. Without ebgp-multihop or disable-connected-check, IOS does not even try: show ip bgp neighbors reports that the external neighbor is not directly connected and the state sits in Idle rather than Active. Worth knowing as the neighbouring symptom.
  4. Port 179 filtered. Interface ACLs, CoPP, or a firewall in the path. Check ACL hit counters.
  5. Authentication. A password on one side only or a mismatch logs %TCP-6-BADAUTH with "No MD5 digest" or "Invalid MD5 digest" and the TCP session never completes.
  6. The peer. Is the neighbor configured on the far side, with my address, and not shut down?

What does not cause Active

Route maps, prefix lists and filter lists cannot stop a session from forming. A wrong remote-as gets further: TCP comes up, the OPEN is rejected with NOTIFICATION 2/2, and the log tells you so.

Traps

  • Digging through route maps for a neighbor in Active. Policy never blocks the session itself.
  • Declaring reachability fine after a ping sourced from the wrong interface.
How did you do?Book 4.1 Global Internet