AWS Direct Connect Configuration
The AWS side of the setup: create the gateways, accept the hosted connection, create the virtual interface, and bring up BGP.
Background Information
AWS Direct Connect (DX) is the dedicated connectivity service AWS provides between your on-premises environment and the AWS cloud. Through any Zenlayer DX point of presence, you can build a private link between your own data center — or another cloud — and AWS.
Unlike a VPN over the public internet, DX runs end to end on dedicated physical circuits between the provider and AWS. It is isolated from the internet, which keeps bandwidth predictable and improves security and reliability.
Depending on how you configure it on the AWS console, Direct Connect supports three types of virtual interface (VIF):
Public VIF — reaches AWS public service endpoints such as Amazon S3 and DynamoDB, which do not live inside a VPC.
Private VIF — connects directly to your VPC and reaches resources inside it (EC2 instances, Elastic Load Balancers) over the private IP addresses you planned.
Transit VIF — associates the Direct Connect gateway with an AWS Transit Gateway, so one connection serves your data center, several VPCs, and traffic between those VPCs.
Your on-premises workloads reach AWS over a virtual circuit Zenlayer provides, landing at a Direct Connect location:

Terminology
VPC (Virtual Private Cloud)
A regional virtual network environment in your AWS account
VGW (Virtual Gateway)
The virtual private gateway of a VPC
DXGW (Direct Connect Gateway)
A globally available gateway that can associate VGWs from multiple regions — the core component of the connection and the one that carries the VIF
TGW (Transit Gateway)
A regional network hub that can connect a large number of VPCs in the same region
VIF (Virtual Interface)
The logical port on the AWS side, in Public, Private, or Transit flavor
The definitions follow the AWS Direct Connect FAQs.
Procedures
The AWS-side setup runs as follows:
The example below connects to AWS Direct Connect over the Zenlayer network; once a Private VIF is configured, you reach private resources such as EC2 instances inside the VPC:

BGP between your side and AWS can be set up in two ways:

Create the virtual private gateway (VGW)
On the Direct Connect page, go to Virtual private gateways and click Create virtual private gateway. You can set the VGW's ASN yourself or keep the AWS default, 64512.


Create the Direct Connect gateway (DXGW)
On the Direct Connect page, go to Direct Connect gateways and click Create Direct Connect gateway.


Attach the VPC to the VGW
Attach the virtual private gateway you created to the target VPC, so that VPC traffic has a way onto the connection.


Note
Routes the VGW learns over the connection are not added to the VPC route table automatically. Enable route propagation on that route table, or add a static route whose next hop is the VGW.
Associate the DXGW with the VGW
On the Direct Connect page, go to Virtual private gateways > Direct Connect gateway associations and associate the VGW with the Direct Connect gateway you created.
If you leave Allowed Prefixes empty, the whole VPC CIDR associated with that Direct Connect is advertised. You can also list the prefixes to advertise on-premises, but avoid advertising host routes (/32).


Accept the hosted connection
Once you confirm the Direct Connect location, VLAN ID, and bandwidth, Zenlayer requests an AWS hosted connection for your account. Sign in to the AWS Management Console, review it on the Direct Connect Connections page, and accept it. About 3 minutes later you can create virtual interfaces under that hosted connection.


Note
Accepting the hosted connection starts the AWS port-hour charges for the bandwidth tier you chose. When you change or terminate the service, delete the hosted connection as well so it stops billing. See AWS Direct Connect pricing.
Create the VIF and bring up BGP peering
Once the hosted connection is available, create a Private VIF or a Transit VIF to match your architecture, and configure:
BGP ASN: the ASN of your on-premises router. The Zenlayer-side ASN is
62610.BGP peer IPs: the addresses on both ends of the BGP session.
BGP authentication key (optional): a password that secures the BGP session.
AWS takes about 5 minutes to create it. Once the VIF is available, BGP peering with your device comes up and routes start to be exchanged.


Configure your on-premises router
Configure the same BGP settings on your router as on the VIF. Once the session is up, check both route tables: your router should learn the routes AWS advertises, and AWS should learn the prefixes you advertise.

References
Last updated