Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Building Hub-and-Spoke Network Topology with Transit Gateway

In this hands-on lab, we will build a hub-and-spoke network topology with Transit Gateway and attach 2 VPCs. We will review the propagated routes on the Transit Gateway, create the appropriate routes in our VPCs, and validate the connectivity. We will also do some troubleshooting to see why our environment is not working as we thought it should.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 45m
Published
Clock icon Feb 21, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Configure AWS Transit Gateway

    1. Click Create Transit Gateway.
    2. Add name: "labtransitgw".
    3. Copy and paste the name for the description.
    4. Add "65065" for the Amazon side ASN.
    5. Leave DNS support and ECMP enabled.
    6. Leave the default route table propagation.
    7. Click Create Transit Gateway.
  2. Challenge

    Attach Three VPCs to Transit Gateway and Create the Appropriate VPC Routes

    1. Click Create Transit Gateway Attachment.
    2. Select our Transit Gateway.
    3. Add "VPC1" as the attachment name.
    4. Select VPC1 for the VPC ID.
    5. Select the Public Subnet for Subnet ID.
    6. Click Create Attachment.
    7. Repeat the same steps for VPC2 and VPC3.
  3. Challenge

    Create the Appropriate Routes on the VPCs

    1. Under Route tables, select Public1-RT.
    2. Click Edit routes and add a route to VPC2: Add 10.2.0.0/16, and choose our transit gateway as the target.
    3. Add another route for VPC3: Add 10.3.0.0/16, and choose our transit gateway as the target.
    4. Click Save routes.
    5. Select Public2-RT, click the Routes tab, click Edit routes, and add route to VPC1: Add 10.1.0.0/16, and choose our transit gateway as the target.
    6. Add another route for VPC3: Add 10.3.0.0/16, choose our transit gateway as the target.
    7. Click Save routes.
    8. Select Public3-RT, click the Routes tab, click Edit routes, and add a route to VPC1: Add 10.1.0.0/16, and choose our transit gateway as the target.
    9. Add another route to VPC2: Add 10.2.0.0/16 and choose our transit gateway as the target.
    10. Click Save routes.
  4. Challenge

    Validate Connectivity from Terminal to all VPCs

    1. Open Terminal.

    2. Log in to EC2 INSTANCE1 using the credentials provided on the lab page:

      ssh cloud_user@<INSTANCE1_PUBLIC_IP>
      
    3. Ping the public IP address of INSTANCE2.

    4. Ping the private IP address of INSTANCE2.

    5. Ping the private IP address of INSTANCE3.

    Troubleshooting

    1. In the AWS console, check INSTANCE3's NACLs, SG, subnet association, and update NACLs.
    2. Delete the VPC3 transit gateway attachment.
    3. Create a new VPC3 transit gateway attachment and select the private subnet ID.
    4. Add routes to VPC1 and VPC2 using the transit gateway to your Private3-RT.
    5. Add routes to Private3-RT to VPC1 and VPC2.
    6. Try to ping the private IP address of INSTANCE3 again.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans