How to Create & Configure Route Table on Amazon Web Service(AWS).

A route table contains a set of rules, called routes, that are used to determine where network traffic from your subnet or gateway is directed.

The route table contains existing routes with targets other than a network interface, Gateway Load Balancer endpoint, or the default local route. The route table contains existing routes to CIDR blocks outside of the ranges in your VPC. Route propagation is enabled for the route table.

 

  • Login to aws portal.
  • Click on Services.

 

Fig 1

 

  • Under Networking & Content Delivery select VPC.

 

Fig 2

 

  • Click on Route Tables.

 

Fig. 3

 

  • Click on Create Route Table.

 

Fig. 4

 

  • Provide Route Table tag name.
  • Select existing VPC.

 

Fig. 5

 

  • Click on Create Route Table.

 

Fig. 6

 

  • After sometime route table is ready.

 

Fig. 6

 

  • Select Routes.
  • Click on Edit Routes.

 

Fig. 7

 

  • Click on Add route.
  • Provide Destination & Target.
  • Then click on save changes.

 

Fig. 7

 

  • Select Subnet associations.
  • Click on Edit Subnet associations.

 

Fig. 8

 

  • Select existing subnets.
  • Click on save associations.

 

Fig 9

 

Create Route Table using Shell

To create a route table

aws ec2 create-route-table –vpc-id vpc-id

To create a route

aws ec2 create-route –route-table-id existing-route-table-id –destination-cidr-block 0.0.0.0/0 –gateway-id igw-id

Associate route table to subnet

aws ec2 associate-route-table –route-table-id route-table-id –subnet-id subnet-id

 

 

Leave a Reply

Your email address will not be published.