You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Route tables are the traffic directors of your VPC. Every packet that leaves a subnet is evaluated against the route table associated with that subnet, and the most specific matching route determines where the packet goes. Without properly configured route tables, your subnets cannot communicate — with each other, with the internet, or with on-premises networks.
A route table is a set of rules (called routes) that determine where network traffic is directed. Each route has two fields:
| Field | Description |
|---|---|
| Destination | The CIDR block the traffic is heading to (e.g. 10.0.0.0/16, 0.0.0.0/0) |
| Target | Where to send it (e.g. local, igw-xxxx, nat-xxxx, pcx-xxxx) |
Every route table automatically contains a local route that enables communication within the VPC:
| Destination | Target |
|---|---|
10.0.0.0/16 | local |
This route cannot be removed. It ensures that instances in any subnet of the VPC can talk to instances in any other subnet (subject to security group and NACL rules).
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.