Copyright (c) 2025 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

2.3.3.1. DX Connections & Virtual Interfaces (VIFs)

Direct Connect (DX) connections provide the dedicated physical link, while Virtual Interfaces (VIFs) segment this link to enable logical access to different AWS services or VPCs.

Scenario: You have a 10 Gbps AWS Direct Connect connection from your on-premises data center to AWS. You need to access a production VPC (private IP addresses) and also use Amazon S3 (public IP addresses) for backups, both over this dedicated connection.

To utilize AWS Direct Connect (DX), you establish a physical connection at a DX location, and then create virtual interfaces over this connection to access different AWS services.

Key Concepts of DX Connections & VIFs:
Practical Implementation: Creating a Private and Public VIF (Conceptual)
# This is conceptual, as VIF creation requires an existing DX connection ID.

# 1. Create a Private VIF (to connect to a VPC via VPG or DX Gateway)
aws directconnect create-private-virtual-interface \
  --connection-id dxcon-abcdefgh \
  --new-private-virtual-interface '{"virtualInterfaceName":"MyProdVPCVIF","vlan":10,"asn":65000,"authKey":"mysecretkey","amazonAddress":"169.254.1.1/30","customerAddress":"169.254.1.2/30","virtualGatewayId":"vgw-0abcdef1234567890"}'

# 2. Create a Public VIF (to connect to public AWS services)
aws directconnect create-public-virtual-interface \
  --connection-id dxcon-abcdefgh \
  --new-public-virtual-interface '{"virtualInterfaceName":"MyPublicServicesVIF","vlan":20,"asn":65000,"amazonAddress":"169.254.2.1/30","customerAddress":"169.254.2.2/30","routeFilterPrefixes":[{"cidr":"205.251.192.0/23"}]}'

⚠️ Common Pitfall: Not understanding the routing implications of Public VIFs. A Public VIF advertises all public AWS IP prefixes, which can lead to asymmetric routing if not carefully managed on the on-premises side.

Key Trade-Offs:
  • Private vs. Public Access: Private VIFs are for your VPCs and private IPs. Public VIFs are for public AWS services. You need to choose the correct VIF type based on the destination.

Reflection Question: How do Direct Connect (DX) connections provide the dedicated physical link, while Virtual Interfaces (VIFs) (Private and Public) fundamentally segment this link to enable logical access to different AWS services or VPCs over a single physical connection?