Route tables
https://youtu.be/GrfOsWUVCfg
Route Tables in AWS
Route Tables (RTs) are a crucial component of Amazon Web Services (AWS) that help in the routing of network traffic between different subnets within a Virtual Private Cloud (VPC). In this article, we will discuss the basic concepts of Route Tables, how they work, and some examples of their usage.
What are Route Tables?
A Route Table is a set of rules, known as routes, that are used to determine where network traffic is directed. Each route in a Route Table specifies a destination CIDR block and a target. The target is typically an Internet Gateway (IGW), a Virtual Private Gateway (VGW), a Network Interface (ENI), or a NAT instance.
Each subnet must be associated with one route table, which specifies the allowed routes for outbound traffic leaving the subnet. Every subnet that you create is automatically associated with the main route table for the VPC. So, the route table is not located within the subnet but is associated with it.
How do Route Tables work?
When a packet arrives at a subnet, the Route Table associated with that subnet is consulted to determine where to send the packet. The Route Table is searched in order, from the first route to the last route, until a route is found that matches the destination CIDR block of the packet. If no route is found, the packet is dropped.
Example Internet Gateway (IGW)
One of the most common uses of Route Tables is to route traffic to an Internet Gateway (IGW). An IGW is used to provide internet connectivity to instances within a VPC. To route traffic to an IGW, a Route Table is created with a route that points to the IGW.
Conclusion
Route Tables are a crucial component of Amazon Web Services that help in the routing of network traffic between different subnets within a Virtual Private Cloud. By understanding the basic concepts of Route Tables, how they work, and some examples of their usage, you can better manage your VPC network traffic and ensure that it is routed correctly.