Troubleshooting BGP Neighbor Adjacencies – Complete CCNP Guide

Troubleshooting BGP Neighbor Adjacencies – Complete CCNP Guide
Networking ATN Campus November 19, 2026 19 views

Troubleshooting BGP Neighbor Adjacencies – Complete CCNP Guide

Border Gateway Protocol (BGP) is one of the most important routing protocols used in enterprise networks, Internet Service Providers (ISPs), and large-scale network environments. However, BGP neighbor sessions can fail due to configuration errors, connectivity problems, TCP issues, incorrect AS numbers, authentication failures, and routing problems.

Troubleshooting BGP neighbor adjacencies requires understanding the BGP state machine, TCP connectivity, neighbor configuration, AS numbers, timers, authentication, and routing reachability.

In this tutorial, you will learn how to troubleshoot BGP neighbor adjacencies step by step, understand BGP states, identify common session failures, use Cisco verification and debug commands, and perform practical CCNP troubleshooting labs.

1. What Is a BGP Neighbor Adjacency?

A BGP neighbor adjacency is a relationship between two BGP routers that allows them to exchange routing information.

BGP neighbors are also called BGP peers. Unlike some Interior Gateway Protocols (IGPs), BGP neighbors are normally configured manually.

BGP uses TCP port 179 to establish a reliable connection between neighboring routers.

Common BGP neighbor relationships include:

  • External BGP (eBGP) between routers in different autonomous systems.
  • Internal BGP (iBGP) between routers in the same autonomous system.

2. How BGP Neighbor Sessions Are Established

When two BGP routers establish a neighbor relationship, they follow a process involving TCP connection establishment, BGP OPEN messages, KEEPALIVE messages, and route exchange.

Router 1                         Router 2
   |                                 |
   |-------- TCP Connection ----------|
   |                                 |
   |---------- OPEN Message ---------|
   |                                 |
   |-------- KEEPALIVE --------------|
   |                                 |
   |-------- ESTABLISHED ------------|
   |                                 |
   |------ UPDATE Messages ----------|

Once the BGP session reaches the Established state, the routers can exchange routing information.

3. Understanding BGP Neighbor States

BGP uses a Finite State Machine (FSM) to manage the establishment and operation of neighbor sessions.

Idle

Idle is the initial state of the BGP process. The router is waiting for a start event or preparing to establish a BGP connection.

Possible reasons for remaining in Idle include:

  • Incorrect BGP configuration.
  • Neighbor configuration is missing.
  • BGP process has been reset.
  • Administrative or resource-related issues.

Connect

In the Connect state, BGP is attempting to establish a TCP connection with the neighbor.

The router is waiting for the TCP connection to complete.

Possible problems include:

  • IP connectivity issues.
  • TCP connection failures.
  • Incorrect neighbor IP address.
  • ACL blocking TCP port 179.

Active

In the Active state, BGP is attempting to establish a TCP connection after a connection attempt failed or timed out.

The Active state does not mean that the BGP session is successfully established. It often indicates that the router is trying to establish a connection but cannot complete the process.

OpenSent

In the OpenSent state, the router has established a TCP connection and sent a BGP OPEN message to its neighbor.

The router is waiting for an OPEN message from the remote peer.

Possible issues include:

  • AS number mismatch.
  • Incorrect BGP parameters.
  • Unsupported or incompatible capabilities.
  • OPEN message errors.

OpenConfirm

In the OpenConfirm state, the router has received an acceptable OPEN message and is waiting for a KEEPALIVE message to confirm the session.

If the session fails during this stage, check BGP timers, protocol messages, and neighbor compatibility.

Established

Established is the successful BGP neighbor state. The routers can exchange routing updates.

If a BGP session reaches Established but routes are not exchanged, the problem may involve route advertisement, filtering, policies, address-family activation, or prefix availability rather than session establishment.

4. BGP Neighbor States Summary

State Description Common Troubleshooting Focus
Idle BGP is waiting to start or restart the connection Configuration, process, neighbor setup
Connect Attempting to establish TCP Connectivity, TCP, ACLs
Active Retrying TCP connection establishment Connectivity, TCP 179, neighbor address
OpenSent OPEN message sent AS number, BGP parameters
OpenConfirm Waiting for KEEPALIVE confirmation Protocol compatibility, timers, messages
Established Session is successfully established Route exchange, policies, prefixes

5. Practical BGP Troubleshooting Lab

Network Topology

           AS 65001                  AS 65002

       +-----------+              +-----------+
       |    R1     |--------------|    R2     |
       +-----------+              +-----------+

       10.0.12.1                   10.0.12.2

IP Addressing Plan

Router Interface IP Address AS Number
R1 G0/0 10.0.12.1/30 65001
R1 Loopback0 192.168.1.1/24 65001
R2 G0/0 10.0.12.2/30 65002
R2 Loopback0 192.168.2.1/24 65002

6. Configure the Lab Routers

Step 1: Configure R1 Interfaces

enable
configure terminal

interface gigabitEthernet 0/0
 ip address 10.0.12.1 255.255.255.252
 no shutdown
exit

interface loopback 0
 ip address 192.168.1.1 255.255.255.0
exit

Step 2: Configure R2 Interfaces

enable
configure terminal

interface gigabitEthernet 0/0
 ip address 10.0.12.2 255.255.255.252
 no shutdown
exit

interface loopback 0
 ip address 192.168.2.1 255.255.255.0
exit

Step 3: Configure BGP on R1

router bgp 65001
 neighbor 10.0.12.2 remote-as 65002
 network 192.168.1.0 mask 255.255.255.0

Step 4: Configure BGP on R2

router bgp 65002
 neighbor 10.0.12.1 remote-as 65001
 network 192.168.2.0 mask 255.255.255.0

7. Troubleshooting BGP Neighbor Adjacencies Step by Step

Step 1: Check Interface Status

Before troubleshooting BGP, verify that the physical and logical interfaces connecting the routers are operational.

show ip interface brief

Check the following:

  • Interface status is up.
  • Protocol status is up.
  • IP addresses are correctly configured.
  • Subnet masks are correct.

Step 2: Verify IP Connectivity

BGP requires IP connectivity between the neighbor addresses used for the peering session.

From R1:

ping 10.0.12.2

From R2:

ping 10.0.12.1

If the ping fails, troubleshoot the IP connectivity before focusing on BGP.

Check:

  • IP addressing.
  • Subnet masks.
  • Interface status.
  • Routing table.
  • ACLs.
  • Firewall rules.

Step 3: Verify BGP Neighbor Configuration

Check the BGP configuration on both routers.

show running-config | section router bgp

On R1:

router bgp 65001
 neighbor 10.0.12.2 remote-as 65002

On R2:

router bgp 65002
 neighbor 10.0.12.1 remote-as 65001

The neighbor IP address and remote AS configuration must match the intended peering relationship.

Step 4: Check BGP Neighbor Status

show ip bgp summary

This command provides information about BGP neighbors, session status, received prefixes, and message counters.

If the neighbor is not Established, identify the state and continue troubleshooting based on the state.

Step 5: Verify TCP Port 179

BGP uses TCP port 179 for neighbor session establishment.

Check whether ACLs, firewalls, or security policies are blocking the TCP connection.

Possible causes include:

  • Access Control Lists blocking TCP port 179.
  • Firewall rules blocking BGP traffic.
  • Incorrect neighbor IP addresses.
  • TCP connectivity problems.
  • Incorrect source interface for the peering connection.

Step 6: Check the Routing Table

show ip route

Verify that the router can reach the neighbor IP address through the correct route.

For directly connected eBGP peers, the connecting network normally provides reachability. For loopback-based or multihop BGP sessions, additional routing and configuration requirements may apply.

Step 7: Check BGP Logs

show logging

BGP logs can provide information about neighbor changes, session failures, notifications, and connection resets.

Step 8: Use BGP Debug Commands Carefully

debug ip bgp

Debugging can help identify BGP protocol events, but it may generate significant CPU and console output.

Use debug commands carefully, especially on production routers. If supported, use more targeted debugging options and disable debugging immediately after troubleshooting.

undebug all

8. Common BGP Neighbor Adjacency Problems

Problem 1: BGP Neighbor Remains in Idle

Possible causes:

  • BGP neighbor configuration is missing or incorrect.
  • BGP process is not properly configured.
  • Router resources or process conditions prevent establishment.
  • Neighbor session has been reset or is not starting.

Solution:

show running-config | section router bgp
show ip bgp summary
show logging

Verify the neighbor configuration, AS number, and router operational status.

Problem 2: BGP Neighbor Remains in Active

Possible causes:

  • TCP connection cannot be established.
  • IP connectivity is unavailable.
  • ACL is blocking TCP port 179.
  • Incorrect neighbor IP address.
  • TCP connection is rejected or fails repeatedly.

Solution:

ping 10.0.12.2
show ip interface brief
show ip route
show ip bgp summary

Check IP connectivity, TCP connectivity, ACLs, and routing reachability.

Problem 3: Incorrect AS Number

A BGP neighbor configuration may specify the wrong remote AS number.

Example of an incorrect configuration on R1:

router bgp 65001
 neighbor 10.0.12.2 remote-as 65003

R2 actually belongs to AS 65002.

Correct configuration:

router bgp 65001
 neighbor 10.0.12.2 remote-as 65002

Verify the local AS and remote AS configuration on both routers.

Problem 4: ACL Blocking BGP

An ACL may block TCP traffic required for BGP session establishment.

Check the ACL configuration:

show access-lists

Verify whether the ACL permits the required TCP traffic between the BGP neighbor addresses.

Problem 5: Incorrect Neighbor IP Address

BGP neighbors must be configured with the correct remote IP address.

Verify the neighbor address on both routers:

show running-config | section router bgp

If the session uses loopback addresses, verify the reachability of those loopbacks and whether the required update-source and ebgp-multihop configurations are present.

Problem 6: BGP Authentication Mismatch

BGP neighbor authentication may be configured to protect the peering session.

If authentication is enabled, both routers must use compatible authentication settings and credentials.

Example:

router bgp 65001
 neighbor 10.0.12.2 password BGP123

On R2:

router bgp 65002
 neighbor 10.0.12.1 password BGP123

If the authentication configuration is inconsistent, the TCP connection may fail or be reset depending on the implementation.

Use appropriate secret management and avoid exposing passwords in production configuration sharing or screenshots.

Problem 7: BGP Session Established but No Routes

A BGP neighbor can reach the Established state while no prefixes are being exchanged.

Possible causes:

  • Missing network statements.
  • Advertised prefix does not exist in the local routing table.
  • Route filtering.
  • Prefix-list or route-map restrictions.
  • Address family is not activated.
  • Routes are not being advertised to the neighbor.

Verification commands:

show ip bgp
show ip bgp neighbors 10.0.12.2
show ip bgp neighbors 10.0.12.2 advertised-routes
show ip bgp neighbors 10.0.12.2 received-routes

Some commands depend on the Cisco IOS version, configuration, and platform capabilities. The received-routes command may require inbound soft reconfiguration or other supported mechanisms.

9. BGP Troubleshooting Commands

Command Purpose
show ip bgp summary Check neighbor status and session information
show ip bgp Display the BGP routing table
show ip bgp neighbors Display detailed neighbor information
show ip route Check the IP routing table
show ip interface brief Check interface status and IP addresses
show running-config | section router bgp Review BGP configuration
show access-lists Check ACL rules
show logging Review system and BGP-related logs
debug ip bgp Debug BGP protocol events where supported
undebug all Disable active debugging

10. BGP Troubleshooting Checklist

When a BGP neighbor is not Established, follow this troubleshooting checklist.

  1. Check physical interface status.
  2. Verify IP addressing and subnet masks.
  3. Test connectivity using ping.
  4. Check routing reachability to the neighbor address.
  5. Verify the local BGP AS number.
  6. Verify the remote AS number.
  7. Check the neighbor IP address.
  8. Verify TCP port 179 connectivity.
  9. Check ACLs and firewall rules.
  10. Check authentication configuration.
  11. Verify source interfaces and update-source settings if applicable.
  12. Check ebgp-multihop requirements if applicable.
  13. Review BGP neighbor states.
  14. Review system logs.
  15. Use debug commands carefully if required.
  16. Verify route advertisement after the session becomes Established.

11. Frequently Asked Questions

Q1. What is the BGP Established state?

Established is the state in which a BGP neighbor relationship is successfully formed and routing information can be exchanged.

Q2. Why does BGP remain in Active?

BGP may remain in Active because it cannot establish the TCP connection. IP connectivity issues, TCP port 179 restrictions, incorrect neighbor addresses, and other connection problems are common causes.

Q3. What port does BGP use?

BGP uses TCP port 179.

Q4. How do I check BGP neighbor status?

Use show ip bgp summary to check BGP neighbor status, session information, and prefix-related details.

Q5. Does BGP automatically discover neighbors?

BGP neighbors are normally configured manually using neighbor configuration commands.

Q6. Can BGP be Established without exchanging routes?

Yes. A BGP session can be Established without receiving prefixes. Route advertisement, filtering, address-family configuration, and prefix availability must also be checked.

12. Practical CCNP Lab Challenge

Build the two-router eBGP topology and complete the following troubleshooting tasks.

  1. Configure eBGP between R1 and R2.
  2. Verify that the session reaches Established.
  3. Change the remote AS number on R1 to an incorrect value.
  4. Observe the BGP neighbor state and logs.
  5. Restore the correct AS number.
  6. Disable the interface connecting R1 and R2.
  7. Observe the neighbor session failure.
  8. Restore the interface.
  9. Block TCP port 179 using an ACL in a controlled lab environment.
  10. Investigate the TCP connection failure.
  11. Remove the ACL restriction.
  12. Configure BGP authentication on both routers.
  13. Introduce an authentication mismatch and troubleshoot it.
  14. Restore the correct authentication configuration.
  15. Verify the Established state.
  16. Advertise loopback prefixes from both routers.
  17. Verify advertised and received routes.

Conclusion

Troubleshooting BGP neighbor adjacencies is an essential skill for network engineers working with enterprise routing, ISP networks, and advanced Cisco networking environments.

Understanding BGP states, TCP port 179, IP connectivity, AS numbers, authentication, ACLs, and route advertisement allows you to identify and resolve BGP session problems efficiently.

Practice these troubleshooting steps in Cisco Packet Tracer, GNS3, EVE-NG, or a compatible lab environment to improve your practical CCNP networking skills.

???? Advance Your Networking Career with ATN Campus

Want to master advanced routing and switching? Visit ATN Campus to explore CCNA, CCNP Enterprise, BGP, OSPF, EIGRP, network security, and practical Cisco networking labs.

???? Learn Networking. ???? Master Advanced Routing & Switching. ???? Practice with Real Labs. ???? Prepare for CCNP Certifications. ???? Build Your IT Career with ATN Campus.
Document ATN CAMPUS