Configure Route Tables

Configure Route Tables for Transit Gateway and VPC

In this step, we will configure routing between the Transit Gateway and the VPC to allow traffic to flow over the VPN connection.

  1. Access VPC

    • Select Transit gateway route tables

    • Choose the Transit gateway route table that was created by default, and confirm that it has two attachments

    • Switch to the Routes tab

    • Select Create static route

  2. In the Create static route interface

    • CIDR, enter the CIDR block of the ASG VPN VPC: 10.11.0.0/16
    • Type: Active
    • Choose attachment, select the attachment of type VPN
    • Click Create static route

ℹ️ Information: A static route in a Transit Gateway defines how traffic is routed to specific destination networks through different attachments.

  1. Configure the Route Table for the VPC

    • Access Route tables
    • Select Route table-Public
    • Select the Routes tab
    • Select Edit routes
  2. In the Edit routes interface

    • Select Add Route
    • Destination, enter 10.11.0.0/16 (the CIDR block of the ASG VPN VPC)
    • Target, select the Transit Gateway created earlier
  3. Do the same for the Route table - Private

💡 Pro Tip: When configuring route tables, make sure you add a route for every subnet that needs to communicate over the VPN. A missing route can lead to one-way connectivity or no connectivity at all.

🔒 Security Note: Route table configuration is an important part of network access control. Only route the address ranges you actually need, to minimize the potential attack surface.

⚠️ Warning: Make sure there is no overlap between the IP address ranges of the connected networks. Overlapping CIDR blocks can cause routing problems and unstable connectivity.