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

Configuring Transit Gateway

In this lab, we will be creating an AWS Transit Gateway and connecting three VPCs together so communication can flow between each VPC. The solution video will show you how to connect two of the three VPCs together, leaving the remaining VPC for you to do as an end-of-lab assignment. To complete this lab, you will need an understanding of what an AWS Transit Gateway is, and what it is used for, as well as a familiarization of the AWS console.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 1h 0m
Published
Clock icon May 19, 2023

Contact sales

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

Table of Contents

  1. Challenge

    Create Transit Gateway Subnet in Each VPC Using a /28 Address Space

    In this objective, you will be creating a new subnet in FirstVPC and SecondVPC to house the transit gateway attachment.

    FirstVPC

    VPC ID = FirstVPC
    Subnet name = FirstVPC-TransitGateway
    Availability Zone = us-east-1a
    IPv4CIDR block = 10.0.2.0/28
    

    SecondVPC

    VPC ID = SecondVPC
    Subnet name = SecondVPC-TransitGateway
    Availability Zone = us-east-1a
    IPv4CIDR block = 10.1.2.0/28
    
  2. Challenge

    Create and Attach Transit Gateway to the New Subnet in Each VPC

    In this objective, you will be creating a transit gateway. Once this has been created, you will then create transit gateway attachments and configure these for the newly created subnets in the FirstVPC and SecondVPC.

    Use the following information for this objective:

    • Creating a transit gateway:
    Name = Transit-Gateway-01
    Description = Connectivity-VPC
    
    • FirstVPC transit gateway attachment:
    Name = FirstVPC-TGW-Att
    Transit gateway ID = Transit-Gateway01
    Attachment type = VPC
    VPC ID = FirstVPC
    Subnet ID = FirstVPC-TransitGateway
    
    
    • SecondVPC transit gateway attachment:
    Name = SecondVPC-TGW-Att
    Transit gateway ID = Transit-Gateway01
    Attachment type = VPC
    VPC ID = SecondVPC
    Subnet ID = SecondVPC-TransitGateway
    
    
  3. Challenge

    Modify Routing Tables in Each VPC

    Now that the transit gateway is created and the attachments have been configured with the newly created subnets in FirstVPC and SecondVPC; the private route tables need modifying to include a catch all route for the transit gateway.

    FirstVPCRTPrivate

    Destination = 0.0.0.0/0
    Target = Transit Gateway - FirstVPC-TWG-Att
    

    SecondVPCRTPrivate

    Destination = 0.0.0.0/0
    Target = Transit Gateway - SecondVPC-TWG-Att
    
  4. Challenge

    Confirm Connectivity with Ping Test from EC2 Instances

    Retrieve the private IP address for EC2Instance2 from either the EC2 console or the credentials section of the lab.

    Using AWS System Manager - Fleet Manager open a session to EC2Instance1.

    Ping between EC2Instance1 and EC2Instance2.

  5. Challenge

    ThirdVPC - Optional Challenge

    As previously mentioned, the ThirdVPC has been left for you to practice the configuration on your own.

    Below is an outline of the steps you will need to take, please remember you can watch the solution video again if you are stuck on any of the steps. Good luck Cloud Gurus!

    Create transit gateway subnet in ThirdVPC:

    ThirdVPC

    VPC ID = ThirdVPC
    Subnet name = ThirdVPC-TransitGateway
    Availability Zone = us-east-1a
    IPv4CIDR block = 10.2.2.0/28
    

    Create transit gateway attachment:

    ThirdVPC

    Name = ThirdVPC-TGW-Att
    Transit gateway ID = Transit-Gateway01
    Attachment type = VPC
    VPC ID = ThirdVPC
    Subnet ID = ThirdVPC-TransitGateway
    
    

    Modify route table:

    ThirdVPCRTPrivate

    Destination = 0.0.0.0/0
    Target = Transit Gateway - ThirdVPC-TWG-Att
    

    Confirm connectivity

    • Confirm ping connectivity.

    • Retrieve the private IP address for EC2Instance2 from either the EC2 console or the credentials section of the lab.

    • Using AWS System Manager - Fleet Manager open a session to EC2Instance3.

    • Ping between EC2Instance3 and EC2Instance2.

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