Network BGP Diagnostics
Use this skill when a BGP session is down, flapping, established with missing
routes, or advertising unexpected prefixes. The default workflow is read-only
evidence collection; policy and reset actions belong in a reviewed change
window.
When to Use
- BGP neighbors are stuck in Idle, Connect, Active, OpenSent, or OpenConfirm.
- A session is Established but expected prefixes are missing.
- A route-map, prefix-list, max-prefix limit, or AS path policy may be filtering
routes.
- You need before/after evidence for a BGP change.
- You are reviewing automation that parses BGP summary output.
Read-Only Triage Flow
- Identify the exact neighbor, address family, VRF, and local/remote ASNs.
- Capture summary state and last reset reason.
- Prove reachability to the peer source address.
- Check route policy references before assuming transport failure.
- Compare advertised, received, and installed routes where the platform
supports those commands.
show bgp summary
show bgp neighbors <peer>
show ip route <peer>
show tcp brief | include <peer>|:179
show logging | include BGP|<peer>
show running-config | section router bgp
show ip prefix-list
show route-map
Use platform-specific address-family commands when the device uses VRFs, IPv6,
VPNv4, or EVPN. Do not assume global IPv4 unicast.
State Interpretation
| State |
First checks |
| Established with prefix count |
Route exchange is up; inspect policy and table selection |
| Established with zero prefixes |
Check inbound policy, max-prefix, advertised routes, and AFI/SAFI |
| Active |
TCP session is not completing; check routing, source, ACLs, and peer reachability |
| Connect |
TCP connection is in progress; check path and remote listener |
| OpenSent/OpenConfirm |
TCP works; check ASN, authentication, timers, capabilities, and logs |
| Idle |
Neighbor may be disabled, missing config, blocked by policy, or backoff timer |
Transport Checks
ping <peer> source <local-source>
traceroute <peer> source <local-source>
show ip route <peer>
show bgp neighbors <peer> | include BGP state|Last reset|Local host|Foreign host
1---2name: network-bgp-diagnostics3description: "Use when diagnostics-only BGP troubleshooting patterns for neighbor state, route exchange, prefix policy, AS path inspection, and safe evidence collection. Triggers on \"network-bgp-diagnostics\", \"network bgp diagnostics\", \"diagnostics\"."4metadata:5 source: https://skillmd.com/skills/majinmagros/network-bgp-diagnostics6 origin: community7---89# Network BGP Diagnostics1011Use this skill when a BGP session is down, flapping, established with missing12routes, or advertising unexpected prefixes. The default workflow is read-only13evidence collection; policy and reset actions belong in a reviewed change14window.1516## When to Use1718- BGP neighbors are stuck in Idle, Connect, Active, OpenSent, or OpenConfirm.19- A session is Established but expected prefixes are missing.20- A route-map, prefix-list, max-prefix limit, or AS path policy may be filtering21 routes.22- You need before/after evidence for a BGP change.23- You are reviewing automation that parses BGP summary output.2425## Read-Only Triage Flow26271. Identify the exact neighbor, address family, VRF, and local/remote ASNs.282. Capture summary state and last reset reason.293. Prove reachability to the peer source address.304. Check route policy references before assuming transport failure.315. Compare advertised, received, and installed routes where the platform32 supports those commands.3334```text35show bgp summary36show bgp neighbors <peer>37show ip route <peer>38show tcp brief | include <peer>|:17939show logging | include BGP|<peer>40show running-config | section router bgp41show ip prefix-list42show route-map43```4445Use platform-specific address-family commands when the device uses VRFs, IPv6,46VPNv4, or EVPN. Do not assume global IPv4 unicast.4748## State Interpretation4950| State | First checks |51| --- | --- |52| Established with prefix count | Route exchange is up; inspect policy and table selection |53| Established with zero prefixes | Check inbound policy, max-prefix, advertised routes, and AFI/SAFI |54| Active | TCP session is not completing; check routing, source, ACLs, and peer reachability |55| Connect | TCP connection is in progress; check path and remote listener |56| OpenSent/OpenConfirm | TCP works; check ASN, authentication, timers, capabilities, and logs |57| Idle | Neighbor may be disabled, missing config, blocked by policy, or backoff timer |5859## Transport Checks6061```text62ping <peer> source <local-source>63traceroute <peer> source <local-source>64show ip route <peer>65show bgp neighbors <peer> | include BGP state|Last reset|Local host|Foreign host66```