Configuring a Route Table

Last updated: 2021-07-23 16:37:19

After creating a direct connect gateway and constructing a dedicated tunnel, you can configure the route table of the VPC in the console to forward the traffic passing through Direct Connect to the direct connect gateway.

  1. Log in to the VPC console.
  2. Click Route Tables on the left sidebar to access the Route Table page.
  3. Click the ID/Name of the route table with which you want to associate the direct connect gateway to go to the details page.
  4. Click + New routing policies.
  5. In the pop-up window, enter the destination IP range, select Direct Connect Gateway for Next hop type, and select the specific gateway instance for Next hop.
    Configure a routing policy as instructed below.
    Parameter Configuration
    Destination Specify the destination IP range to which you want to forward traffic. Configure it as follows:
    • Enter an IP range. If you want to enter a single IP, set the mask to 32 (for example, `172.16.1.1/32`).
    • The destination cannot be an IP range of the VPC where the route table resides, because the local route already allows private network interconnection in this VPC.
    Next hop type Select Direct Connect Gateway.
    Next hopSelect the specified direct connect gateway instance to which the traffic is forwarded.
    NotesEnter the route description for resource management. This parameter is optional.
    Add a lineConfigure multiple routing policies if needed. You can click the deletion icon in the Operation column to delete the unnecessary routing policies. A custom route table should contain at least one routing policy.
    6. Click Create. Now, you can direct the traffic from the specific destination to the direct connect gateway to associate it with your local IDC.