Subnetting in AWS: VPC Guide

When you create a VPC in AWS, you choose a CIDR block — and then divide it into subnets. Let's walk through AWS VPC subnetting.

Choosing Your VPC CIDR Block

Common VPC CIDR blocks:

10.0.0.0/16     - Most common, plenty of room
172.16.0.0/12    - Classic, from Cisco world
192.168.0.0/16   - Home network style

Recommendation: Use 10.0.0.0/16. It's large enough (/16 = 65,534 hosts) and standard for AWS.

Subnet Types in AWS

Public Subnets

☀️ Public Subnets have a route to the internet via Internet Gateway (IGW). Instances here can have public IPs and be reached from the internet.

Private Subnets

🔒 Private Subnets have NO direct route to the internet. They reach the internet via NAT Gateway or Virtual Private Gateway. More secure.

Standard VPC Architecture

VPC: 10.0.0.0/16

Public Subnets (one per AZ):
- 10.0.1.0/24    (us-east-1a)
- 10.0.2.0/24    (us-east-1b)
- 10.0.3.0/24    (us-east-1c)

Private Subnets (one per AZ):
- 10.0.10.0/24   (us-east-1a)
- 10.0.20.0/24   (us-east-1b)
- 10.0.30.0/24   (us-east-1c)

Database Subnets:
- 10.0.100.0/24  (us-east-1a)
- 10.0.110.0/24  (us-east-1b)
- 10.0.120.0/24  (us-east-1c)

Each Availability Zone gets one of each subnet type for high availability.

Subnet Sizing for AWS

Avoid the temptation of using /16 for every subnet. Better to allocate smaller subnets:

Subnet TypeRecommended CIDRHosts
Public/24251
Private/24251
Database/24251
Reserved/24251

You won't hit these limits, but you leave room to grow.

Key AWS Subnet Rules

For 10.0.1.0/24:
10.0.1.0      - Network
10.0.1.1      - Router (reserved)
10.0.1.2      - DNS (reserved)
10.0.1.3       - Future use
...
10.0.1.255     - Broadcast

What About /28? Some People Recommend It

A /28 gives you 16 IPs, but only 11 are usable after AWS reserves 5. That's tight for anything but tiny workloads.

Our recommendation: Use /24 for most subnets. It's simple, consistent, and gives you 251 usable hosts.

👉 Plan Your AWS Subnets


← Back to Blog | Privacy Policy | Contact Us