Skip to main content
⚡ OpenDevDocs
Networking for DevOps
devopsdevops-networkingGuideIntermediate

Cloud VPC Route Tables & Gateway Architecture

Master VPC routing tables, Internet Gateways, NAT Gateways, VPC Peering routes, and packet forwarding paths.

Verified: 2026-09-30
Tested on:cloud AWS / GCP / Azure
Platforms:
linux
#devops#networking#routing#route-tables#nat-gateway#vpc

What is a VPC Route Table?

A Route Table contains a set of rules (called routes) that determine where network traffic from your subnet or gateway is directed.


1. Public Subnet Route Table

Subnets with a route to an Internet Gateway (IGW) are public:

Destination CIDRTargetPurpose
10.0.0.0/16localDirect communication within the VPC
0.0.0.0/0igw-0123456789abcdef0Route all internet-bound traffic through Internet Gateway

2. Private Subnet Route Table

Private subnets route outbound traffic to a managed NAT Gateway located inside the public subnet:

Destination CIDRTargetPurpose
10.0.0.0/16localDirect communication within the VPC
0.0.0.0/0nat-0987654321fedcba0Route outbound internet traffic securely via NAT Gateway

3. VPC Peering & Transit Gateways

To connect two distinct VPCs (e.g. Production 10.0.0.0/16 and Analytics 10.50.0.0/16):

VPC A (10.0.0.0/16) ──[ VPC Peering Connection (pcx-123) ]──> VPC B (10.50.0.0/16)

Add a routing rule in VPC A's route table:

  • Destination: 10.50.0.0/16 $\rightarrow$ Target: pcx-123

On this page