A Direct Connect gateway (DCG) groups private virtual interfaces and virtual private gateways (VPGs) within one AWS account. Use a DCG to connect your AWS Direct Connect connection to an Amazon Virtual Private Cloud (VPC) in the same or a different region.
Prerequisites
Have an AWS account with a VPC (the VPC contains your Amazon EC2 instances) and log in to the AWS Direct Connect console.
Direct Connect Gateway Limitations
Direct Connect gateways have the following limitations:
- Multiple VPCs associated with a single DCG cannot communicate directly. The exception is if you advertise a supernet across two or more VPCs associated with the same DCG and the same virtual interface (VIF), they can route traffic through your on-premises network.
- Multiple VIF associated with a single DCG cannot communicate directly.
- A VIF and a VPG associated with the same DCG cannot communicate directly.
- A VPG can associate with only one DCG.
- A VPG associated with a DCG must be attached to a VPC.
- You cannot use a DCG to connect to a VPC in the China region.
Find out more
Step 1: Create a Direct Connect Gateway
1. Click Direct Connect Gateways > Create Direct Connect Gateway.
2. Enter the following values:
| Field | Description | Example |
|---|---|---|
| Name | A descriptive name that helps identify the AWS gateway. | Gateway for PhoenixNAP AWS |
| Amazon Side ASN | Provide the autonomous system number (ASN) for the AWS side of the Border Gateway Protocol (BGP) session. For a 16-bit ASN, enter a value between 64,512 to 65,534. For a 32-bit ASN, enter a value from 4,200,000,000 to 4,294,967,294. | 65000 |
Step 2: Create a Virtual Private Gateway
Create a VPG and attach it to the VPC that contains your Amazon EC2 instances.
1. Click Virtual Private Gateways > Create Virtual Private Gateway.
2. Enter a name for the VPG. AWS creates a tag with the key Name and the value you enter.
3. (Optional) To use a custom ASN, select Custom ASN. Enter a value from 64,512 to 65,534 or from 4,200,000,000 to 4,294,967,294. Otherwise, keep the default AWS ASN.
4. Click Create Virtual Private Gateway.
5. Select the new VPG.
6. Click Actions > Attach to VPC.
7. Select the VPC, then click Yes, Attach.
Step 3: Associate the VPG with the DCG
Associate the VPG with the DCG from Step 1. The VPG must be attached to a VPC.
Note
You must work in the region where the VPG is located. The same applies when you disassociate a VPG.
1. Select the region where the VPG is located.
2. Open the Direct Connect Gateway dropdown, and then select the gateway.
3. Click Actions > Associate Virtual Private Gateway.
4. Select the VPG, then click Associate.
To list the VPGs associate with a DCG in all regions, select Virtual Gateway Association.