Ping worked, the config looked perfect on both sides, but the neighbor sat in Active for hours. Here's the step-by-step method that found it.
"Active" is the most misleading word in BGP. It sounds good, but it means the router is actively trying, and failing, to build a TCP session to its neighbor. Here's how I worked through a peering between our edge router and a partner organization's router across a dedicated inter-org link.

Step 1: Know what Active really means
BGP runs over TCP port 179. The state machine goes Idle → Connect → Active → OpenSent → OpenConfirm → Established. If you're stuck in Active, the TCP three-way handshake isn't completing. That tells you to stop looking at BGP policy and start looking at reachability on port 179.
Step 2: Layer 3 reachability
Ping from the correct source. A common mistake is pinging from the default source while BGP uses update-source or a different interface.

Ping worked, but a telnet to port 179 timed out. So ICMP is allowed and TCP/179 isn't. That's a strong hint that a filter is in the path.
Step 3: Checklist for TCP/179 failures
- Neighbor IP and remote-AS correct on both sides? (A wrong AS usually gives a NOTIFICATION, not Active, but check anyway.)
- update-source / ebgp-multihop: needed if peering on loopbacks.
- MD5 password mismatch: the router silently drops segments; look for
%TCP-6-BADAUTHin the logs. - Interface ACLs / CoPP on either router.
- Firewall in the path that allows ICMP but not 179, or allows only one direction.
Step 4: Find the filter
Both routers were clean. A packet capture on our side showed our SYNs leaving and nothing coming back. The partner's capture showed no SYN arriving. The link was supposed to be direct, but it actually passed through a partner-side firewall that had a rule for ICMP monitoring and nothing for BGP.
Step 5: Fix and verify
The partner added a bidirectional rule for TCP/179 between the two peer IPs. Within one connect-retry interval the session went to Established and prefixes started flowing.
Takeaways
- Active = TCP problem. Idle = config/route problem. Know which one you're looking at.
- Always test
telnet x.x.x.x 179from the right source interface. - Ask for a capture on both ends before spending hours on configs.
- Document the path, including the firewalls nobody remembers.
Note: device names, IP addresses, AS numbers and user names in this post are pseudonyms or lab values. The problem and the fix are real.
0 Comments
Post a Comment