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.
- Select “Route Tables” from the left navigation pane.
- Select “Create route table” at the top left corner.
- 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”.
- Go to the “Routes” page and click “Edit Routes”.
- Local traffic is already defined. Now click “Add route”.
- Enter 0.0.0.0/0 (meaning any IPv4 address, i.e., the internet) as the destination, and select “Internet Gateway” as Target.
- 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.
- Now the routes are defined.
- 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.
- 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.
Thanks for your feedback.
Post your comment on this topic.