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.
More on Cloud networking: VPC, firewalls, NAT, VPN and proxies
An EC2 instance in a private subnet hangs on `apt-get update` at `Connecting to archive.ubuntu.com`.BeginnerA new EC2 instance in a "public" subnet can't be reached over SSH from the internet; the SG allows port 22 from your IP.BeginnerThe SG allows inbound 443 and the app works from inside the VPC, but internet clients time out. The subnet NACL allows inbound 443.IntermediateA VPC peering connection is `Active`, but instances in the two VPCs can't ping each other.BeginnerALB targets are `unhealthy` with reason `Target.Timeout`, and VPC Flow Logs show `REJECT` from the ALB's IPs to the instances.BeginnerTwo VPCs are attached to a Transit Gateway, but traffic between them fails.Intermediate