Interview Prep/Networking/Cloud networking: VPC, firewalls, NAT, VPN and proxies

A Direct Connect virtual interface shows the BGP session stuck in `Idle`/`Active`, never `Established`.

AdvancedTroubleshootingCloud networking: VPC, firewalls, NAT, VPN and proxies
Answer

Likely causes → Layer 2/3 mismatch on the VIF: wrong VLAN tag, wrong peer IPs (/30 or /31), wrong ASN on either side, MD5 auth key mismatch, or the router not reaching the AWS peer IP at all. Active usually means TCP 179 attempts aren't completing.

Diagnose →

aws directconnect describe-virtual-interfaces --virtual-interface-id <vif> \
  --query 'virtualInterfaces[0].[vlan,asn,amazonSideAsn,amazonAddress,customerAddress,bgpPeers[0].bgpStatus]'
# on the router (Cisco-style)
show ip bgp summary
ping <amazon-peer-ip> source <customer-peer-ip>

If ping fails, it's L2/L3 (VLAN, IP, cross-connect); if ping works, it's BGP config (ASN, MD5).

Fix → Match VLAN, IPs, ASN and MD5 key exactly with the AWS VIF configuration; check the cross-connect light levels with the provider if the link is down.

Prevent → Generate router config from the VIF data, keep a VPN as backup, and alarm on ConnectionState and BGP status.

All Networking questions Roadmap: Networking for DevOps

More on Cloud networking: VPC, firewalls, NAT, VPN and proxies