Troubleshoot BGP sessions, routing policy issues, and collect safe diagnostic evidence.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "network-bgp-diagnostics" skill from askskill: 1. Download https://raw.githubusercontent.com/affaan-m/ECC/main/skills/network-bgp-diagnostics/SKILL.md 2. Save it as ~/.claude/skills/network-bgp-diagnostics/SKILL.md 3. Reload skills and tell me it's ready
Provide diagnostics-only BGP troubleshooting steps for a neighbor stuck in Idle, Active, or Connect state. Structure the answer as: which commands to check first, which fields matter in each command, and how to tell whether the issue is peer configuration, link, ASN, authentication, or timer related. Do not include any change commands.
A read-only troubleshooting checklist covering states, timers, message counters, error clues, and likely root causes.
I need a diagnostics-only workflow to determine why a prefix is not being received from a BGP neighbor or why it is not being advertised. Cover checks for prefix-lists, route-maps, communities, next-hop, max-prefix, and address-family settings, and explain what each step helps rule out.
A diagnostic workflow organized by policy and route propagation path to pinpoint filtering, attribute, or address-family issues.
Generate a BGP evidence-collection and analysis template for reviewing a route's AS path, local preference, MED, origin, next hop, and best-path selection reasons. Include only safe evidence-gathering commands, guidance for interpreting outputs, and a record template suitable for handing off to a network team.
A standardized evidence template with read-only commands, key field explanations, and an escalation-friendly record format.
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.
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 | 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 |
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
If the peer is sourced from a loopback, confirm both directions route to the loopback addresses and that the neighbor config uses the expected update source.
Avoid disabling ACLs or firewall policy as a diagnostic shortcut. Read hit counters, logs, and path state first.
show bgp neighbors <peer> advertised-routes
show bgp neighbors <peer> routes
show ip prefix-list <name>
show route-map <name>
show bgp <prefix>
Some platforms require additional configuration before received-routes is
available. Do not add that configuration during incident triage unless the
operator approves the change.
show bgp regexp _65001_
show bgp regexp ^65001$
show bgp <prefix>
show bgp neighbors <peer> advertised-routes | include Network|Path|<prefix>
Use AS-path regex carefully. _65001_ matches AS 65001 as a token. Plain
65001 can match longer ASNs or unrelated text.
import re
from typing import Any
BGP_SUMMARY_RE = re.compile(
r"^(?P<neighbor>\d{1,3}(?:\.\d{1,3}){3})\s+"
r"(?P<version>\d+)\s+"
r"(?P<remote_as>\d+)\s+"
r"(?P<msg_rcvd>\d+)\s+"
r"(?P<msg_sent>\d+)\s+"
r"(?P<table_version>\d+)\s+"
r"(?P<input_queue>\d+)\s+"
r"(?P<output_queue>\d+)\s+"
r"(?P<uptime>\S+)\s+"
r"(?P<state_or_prefixes>\S+)$",
re.M,
)
def parse_bgp_summary(raw: str) -> list[dict[str, Any]]:
rows = []
for match in BGP_SUMMARY_RE.finditer(raw):
state_or_prefixes = match.group("state_or_prefixes")
if state_or_prefixes.isdigit():
state = "Established"
prefixes_received = int(state_or_prefixes)
else:
state = state_or_prefixes
prefixes_received = None
rows.append({
…
Design adaptive agent workflows with eval gates and reusable skill extraction.
Unify multi-channel notifications for routing, deduplication, escalation, and inbox consolidation.
Record polished web app UI demo videos for walkthroughs, tutorials, and showcases.
Refine retrieved context iteratively to improve subagent understanding and output quality.
Conduct multi-source web research and produce cited, source-attributed reports.
Speed up complex tasks with parallel execution while preserving correctness.
Diagnose network and service issues using cURL timings and targeted recommendations.
Diagnose common issues, compatibility problems, and session or stream debugging cases.
Run local network diagnostics, DNS checks, and TLS troubleshooting tasks.
Diagnose local connectivity issues and inspect tunnel status from your AI assistant.
Identify common bugs, version conflicts, and state machine failures faster.
Safely diagnose Azure production issues across apps, containers, and messaging services.