DevOpsLesson
DevOpsLesson

Free, comprehensive DevOps tutorials and learning roadmaps. Master Docker, Kubernetes, CI/CD, and more.

Stay Updated

Get notified about new tutorials and features.

Tutorials

  • What is DevOps?
  • Docker Tutorial
  • Terraform Tutorial
  • CI/CD Pipeline
  • All Tutorials

Roadmaps

  • DevOps Engineer
  • Cloud Engineer
  • SRE Path
  • All Roadmaps

Company

  • About Us
  • Blog
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 DevOpsLesson. All rights reserved.

DOCKERKUBERNETESTERRAFORMAWSCI/CDLINUXGITDEVOPS ROADMAPCLOUD ROADMAPSRE ROADMAPGIT CHEATSHEETDOCKER CHEATSHEETK8S CHEATSHEETTF CHEATSHEETLINUX CHEATSHEETDOCKERFILE LINTERYAML VALIDATORCRON PARSERREGEX TESTER

Aws Tutorial

Introduction to AWS
AWS Global Infrastructure
Setting Up AWS
AWS IAM
AWS EC2
AWS VPC
AWS S3
AWS RDS
AWS Lambda
AWS ECS and EKS
AWS CloudWatch
AWS CodePipeline
AWS Cost Optimization
AWS Elastic Load Balancing
AWS Auto Scaling
AWS CloudFront
AWS Route 53
AWS DynamoDB
AWS ElastiCache
AWS SQS
AWS SNS
AWS EventBridge
AWS Step Functions
AWS API Gateway
AWS ECR
AWS EKS
AWS CloudFormation
AWS Elastic Beanstalk
AWS KMS
AWS Secrets Manager
AWS WAF and Shield
AWS CloudTrail
AWS Config
AWS Systems Manager
AWS Organizations
AWS EFS
AWS EBS Deep Dive
AWS Kinesis
AWS Athena
AWS CodeDeploy
AWS CodeCommit
AWS CDK
AWS SAM

AWS VPC Route Tables

PreviousPrev
Next

Understand how VPC route tables direct traffic, when to add an internet gateway route, and how subnet associations control connectivity.

Route tables tell AWS where traffic should go after it leaves an interface in your subnet. Every VPC route table contains a local route that allows communication within the VPC’s own CIDR range. Beyond that default, you add routes for internet access, NAT, peering, VPN connections, transit gateways, or other destinations depending on the architecture.

The most common beginner example is the public subnet route table. In addition to the local route, it contains 0.0.0.0/0 pointing to an Internet Gateway. That single rule is what lets internet-bound traffic leave the VPC directly. Private subnets omit that route and usually point 0.0.0.0/0 to a NAT Gateway instead when outbound internet access is needed.

RouteMeaning
localTraffic for the VPC CIDR stays inside the VPC
0.0.0.0/0 -> igwDefault route to the internet for public subnets
0.0.0.0/0 -> natOutbound internet via NAT for private subnets

Route tables only affect the subnets associated with them. That is why public and private tiers often use separate tables even inside the same VPC. If you associate the wrong table with a subnet, resources may lose internet access or accidentally become reachable in ways you did not intend.

Troubleshooting route tables usually means checking three things together: the route table itself, the subnet association, and the presence of the referenced target such as an Internet Gateway or NAT Gateway. A route can look correct on paper but still fail if the gateway is missing or the resource sits in a different subnet than expected.

Pair this lesson with AWS VPC Subnets and AWS VPC NAT Gateway for the full traffic picture.

aws ec2 describe-route-tables --output table
aws ec2 create-route --route-table-id rtb-1234567890abcdef0 --destination-cidr-block 0.0.0.0/0 --gateway-id igw-1234567890abcdef0
aws ec2 associate-route-table --route-table-id rtb-1234567890abcdef0 --subnet-id subnet-1234567890abcdef0

Operational note

When network troubleshooting gets confusing, reduce the problem to layers: subnet placement, route table association, security group rules, and the presence of the correct gateway or endpoint. AWS networking becomes much easier to reason about when you verify those four items in order instead of changing everything at once. Shared standards like this make future environments easier to launch, review, and support.

Exercise

Local route

What does the default local route in a VPC route table do?

Exercise

Public subnets

Which route is typically added to make a subnet public?

PreviousPrev
Next

Continue Learning

AWS EC2 Key Pairs

Understand EC2 key pairs, how to create and use them with SSH, and what recovery options exist if a private key is lost.

8 min·Easy

AWS VPC

Learn how Amazon VPC creates isolated networking in AWS and how subnets, route tables, internet gateways, and NAT gateways shape connectivity.

18 min·Intermediate

AWS VPC Subnets

Learn CIDR basics, understand public and private subnets, and see how AWS subnets map to Availability Zones inside a VPC.

12 min·Intermediate

Explore Related Topics

Te

Terraform Tutorials

Manage AWS infrastructure as code

Li

Linux Tutorials

Essential Linux skills for working with EC2

On This Page

Operational note