Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
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
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 22, 2025
Duration
45m

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.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

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.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight