ℹ️ What is a Subnet?
A subnet is a segmented portion of your VPC’s IP address range that provides network connectivity to AWS resources. Subnets are defined using CIDR notation (e.g., 10.0.1.0/24 for IPv4, 2001:db8::/64 for IPv6) and must be contained within your VPC’s CIDR block. They serve as the fundamental building blocks for organizing your network topology within AWS.
⚠️ Reserved IP Addresses
AWS reserves 5 IP addresses in each subnet for internal networking purposes:
For example, in a /28 subnet with 16 total IP addresses, only 11 are available for your resources.
Subnets are categorized based on their routing configuration:
🔒 Security Note
Regardless of subnet type, all subnet IP address ranges are private by default. External internet traffic cannot directly reach these addresses without proper configuration of network components like Internet Gateways, NAT Gateways, or VPN connections.
An Availability Zone (AZ) is a distinct location within an AWS Region that is engineered to be isolated from failures in other AZs. When designing your VPC architecture:
🏗️ Multi-AZ Best Practices
For production workloads, follow these subnet distribution strategies:
💡 Pro Tip
When designing your VPC, plan your subnet CIDR blocks carefully to allow for future growth. Consider allocating larger CIDR blocks than immediately needed to accommodate expansion of your workloads.
