What Is AWS Direct Connect? Designing Virtual Interfaces and Gateways
AWS Direct Connect links a corporate network to a router at an AWS Direct Connect location, providing a private network path into AWS. Creating the physical circuit alone does not complete connectivity: you must create the right virtual interface (VIF), exchange BGP routes, and align VPC route tables and security rules. A private path also does not by itself provide end-to-end application encryption or high availability, so those need separate designs.
AWS Direct Connect links a corporate network to a router at an AWS Direct Connect location, providing a private network path into AWS. Creating the physical circuit alone does not complete connectivity: you must create the right virtual interface (VIF), exchange BGP routes, and align VPC route tables and security rules. A private path also does not by itself provide end-to-end application encryption or high availability, so those need separate designs.
How is a Direct Connect link built?
A typical path is on-premises router → customer-dedicated or partner-provided circuit → AWS Direct Connect location → virtual interface on an 802.1Q VLAN → AWS destination. In AWS’s model, a connection is the network link from a Direct Connect location to an AWS Region; a VIF is the logical interface on that connection that determines which AWS network you can reach. A VIF uses a VLAN tag, BGP peer addresses, and an ASN. BGP routers exchange prefixes to learn reachable networks, while VPC route tables and security groups/network ACLs govern packet forwarding and permission.
Suppose a headquarters network 10.20.0.0/16 needs to reach an application in VPC 10.80.0.0/16. The on-premises router advertises approved corporate prefixes over BGP, and AWS advertises the VPC route to the peer. The VPC subnet route table needs a route back to the corporate range, and security groups and network ACLs must allow the required traffic in both directions. A BGP session can be up while a missing route or security rule still causes one-way connectivity or application failure.
Which of the three virtual interface types should you use?
A VIF is a logical connection to a destination, not the transport circuit itself. AWS provides a private VIF for private resources, a public VIF for public AWS services, and a transit VIF for VPCs reached through a Transit Gateway.
| VIF type | Main destination | Design question |
|---|---|---|
| Private VIF | VPCs over private IP addresses | Connect directly to one VPC, or use a Direct Connect gateway and virtual private gateways for multiple VPCs? |
| Public VIF | Public AWS services such as S3 | This is not general-purpose Internet access. You must own the public prefixes advertised to the public VIF and review filters for AWS public routes. |
| Transit VIF | VPCs/VPNs attached to a Transit Gateway associated with a Direct Connect gateway | Useful for centralizing access to multiple VPCs or accounts; check supported topology and allowed prefixes. |
For a simple connection to one VPC, a private VIF attached directly to a virtual private gateway may fit. To connect on-premises networks to VPCs across accounts or Regions, consider a Direct Connect gateway; a transit VIF is used when a Transit Gateway aggregates multiple VPCs. These similarly named components have different jobs. A Direct Connect gateway is a globally available virtual component for associating Direct Connect paths with gateways. A Transit Gateway centrally routes regional network attachments such as VPCs and VPNs. VPCs associated through a Direct Connect gateway do not automatically communicate with one another, so verify traffic flows and isolation separately.
How do dedicated and hosted connections differ?
A dedicated connection is a physical port for one customer. A hosted connection uses capacity provisioned by an AWS Direct Connect Partner. The main choice is whether the company can reach the access facility and operate its own equipment and circuit, or wants the partner’s locations, ports, and provisioning model. A partner may manage some connection details, such as supplying VLAN information, but the contract and runbooks should make responsibility for BGP advertisements, cloud routing, and security policies explicit. Bandwidth, locations, price, and provisioning time vary by offer and Region; avoid assuming universal figures.
Does a private connection provide encryption and security?
No. Direct Connect provides a path that does not traverse the public Internet, but it does not automatically set end-to-end application encryption or access permissions. Some supported AWS Direct Connect configurations can use MACsec to protect the Ethernet segment between the customer router and the Direct Connect location at Layer 2. MACsec protects that point-to-point link; it is not end-to-end encryption across multiple segments to the application. Depending on requirements, consider separate encryption such as application TLS or VPN, and verify MACsec support for the specific service, port, and location.
Advertise only necessary on-premises prefixes over BGP and limit received routes to the required scope. Public VIFs handle customer-owned public-prefix advertisements and AWS public routes, so do not blindly apply the same filters as for a private VIF. Check VPC route tables, security groups, and network ACLs, and ensure that overlapping CIDRs or overly broad summaries do not create unintended connectivity between networks.
How should you assess redundancy and cost?
A single connection can be vulnerable to a cable, router, access location, or partner-segment failure. The AWS Direct Connect Resiliency Toolkit offers models for choosing connection counts and locations against resilience goals. Separate devices at one location can address device failures for development or test, but not a whole-location outage. Critical workloads should distribute connections across separate devices and locations to account for link, device, and facility failures. Different carrier names do not guarantee physically independent routes; check carrier and AWS failure domains, and consider VPN as a backup path. Test that the surviving route can carry the required load and that BGP preferences switch as designed.
Compare port hours and data transfer charges. AWS documents that port-hour pricing varies by capacity and dedicated versus hosted connection type; data transfer charges may also apply depending on direction and VIF type. Optional features such as SiteLink may have separate charges. Check current AWS pricing and availability for the specific Region and configuration, then estimate using expected traffic.
What should you verify after provisioning?
**Physical connection and VIF:** Confirm connection state, VLAN tag, and the agreed BGP peer IPs and ASNs at both ends.
**BGP routes:** Verify that only required on-premises prefixes are advertised and that AWS sends the expected VPC routes. Prefix-limit or ASN errors can bring a session down.
**AWS routing:** For a private VIF, confirm that VPC subnet route tables point to the intended virtual private gateway or Transit Gateway route. Enable route propagation where supported and appropriate.
**Security and return path:** Check security groups, network ACLs, and the on-premises firewall for required ports and bidirectional flows, including the return route.
**MTU and failover:** Match MTUs end to end and confirm the interface type and full path support jumbo frames before enabling them. In a planned maintenance window, disable one connection to verify the alternate path and service recovery.
If the VIF and BGP session are healthy but traffic fails, follow AWS’s diagnostic order: verify the on-premises prefix advertisement, then the VPC route table, then security groups and network ACLs. Narrow down the layer where packets stop instead of changing many settings at once; apply a targeted fix and recheck application traffic in both directions.
References
[AWS Direct Connect overview, components, and pricing elements](https://docs.aws.amazon.com/directconnect/latest/UserGuide/Welcome.html)
[AWS Direct Connect virtual interface types and requirements](https://docs.aws.amazon.com/directconnect/latest/UserGuide/WorkingWithVirtualInterfaces.html)
[Direct Connect gateway models and caveats](https://docs.aws.amazon.com/directconnect/latest/UserGuide/direct-connect-gateways-intro.html)
[Direct Connect resilience models](https://docs.aws.amazon.com/directconnect/latest/UserGuide/disaster-recovery-resiliency.html)
[Troubleshooting Direct Connect routing](https://docs.aws.amazon.com/directconnect/latest/UserGuide/ts-routing.html)
[Direct Connect MACsec scope and concepts](https://docs.aws.amazon.com/directconnect/latest/UserGuide/MACsec.html)