The route table defines how the traffic from instances within a subnet should be transferred.

Refer to the AWS documentation for more information.

In this section we will create a route table and add a route to the internet via an Internet Gateway.

  1. Select “Route Tables” from the left navigation pane.
  1. Select “Create route table” at the top left corner.

  1. Set the name of this route table as LK-RouteTable. Also, define the “Name” Tag. Please ensure that LK-VPC is selected as the associated VPC.

Once these fields are defined, select “Create”.

  1. Go to the “Routes” page and click “Edit Routes”.

  1. Local traffic is already defined. Now click “Add route”.

  1. Enter 0.0.0.0/0 (meaning any IPv4 address, i.e., the internet) as the destination, and select “Internet Gateway” as Target.

  1. Select “LK-IGW” as the Internet Gateway.

Once a route is defined for 0.0.0.0/0, click “Save Routes” to close the wizard.

  1. Now the routes are defined.

  1. The next step is to associate the route table with newly created subnets (LK-subnet-1, LK-subnet-2 and LK-subnet-3). Select the “Subnet Associations” tab.

  1. Click “Edit subnet associations” and select “LK-subnet-1”, “LK-subnet-2”, and “LK-subnet-3”.

Now the new Route Table (“LK-RouteTable”) is defined and associated with the LK-subnet-1/2/3 subnets.

Feedback

Thanks for your feedback.

Post your comment on this topic.

Post Comment