- AWS reserves 5 addresses per subnet; subnets range from /16 to /28.
- Azure reserves 5 addresses per subnet; the smallest subnet is /29.
- Google Cloud reserves 4 addresses in each primary IPv4 range.
- Oracle Cloud reserves 3 addresses per subnet.
Size subnets by host count, with AWS, Azure, GCP and OCI rules
Side by side
| Platform | Reserved | Which addresses | Subnet sizes |
|---|---|---|---|
| AWS VPC | 5 | First four and the last | /16 to /28 |
| Azure VNet | 5 | First four and the last | Smallest /29 |
| Google Cloud VPC | 4 | First two, second-to-last and last | Smallest /29 |
| Oracle Cloud VCN | 3 | First two and the last | Smallest /30 |
The VLSM calculator applies these rules when you select a platform, so host counts are sized against the addresses you can actually use.
AWS
In a subnet such as 10.0.0.0/24, AWS reserves:
10.0.0.0: the network address.10.0.0.1: the VPC router.10.0.0.2: the DNS server (the VPC base plus two).10.0.0.3: reserved for future use.10.0.0.255: the broadcast address, which AWS does not support but still reserves.
A /24 therefore has 251 usable addresses and the smallest subnet, a /28, has 11.
Azure
Azure also reserves five addresses in every subnet: the network address, the default gateway at .1, two addresses at .2 and .3 that map Azure DNS into the virtual network, and the last address for broadcast. The smallest IPv4 subnet Azure supports is a /29, which leaves 3 usable addresses. Some services need far more: gateway subnets and many managed services require a /27 or larger, so check each service's own requirement.
Google Cloud
In each primary IPv4 subnet range Google Cloud reserves four addresses: the network address (first), the default gateway (second), the second-to-last address for future use, and the broadcast (last). A /29 gives 4 usable addresses and a /24 gives 252. Google Cloud subnets are regional, so one subnet can span every zone in a region.
Oracle Cloud
Oracle Cloud Infrastructure reserves the first two addresses and the last address in each subnet's CIDR, three in total. VCN and subnet blocks range from /16 down to /30, so the smallest subnet has one usable address.
How this changes sizing
The difference matters most for small subnets. Here is the smallest prefix that fits a given host count on each platform:
| Hosts needed | On premises | AWS | Azure | Google Cloud | Oracle |
|---|---|---|---|---|---|
| 3 | /29 | /28 | /29 | /29 | /29 |
| 11 | /28 | /28 | /28 | /28 | /28 |
| 12 | /28 | /27 | /28 | /28 | /28 |
| 14 | /28 | /27 | /27 | /27 | /28 |
| 60 | /26 | /26 | /26 | /26 | /26 |
| 62 | /26 | /25 | /25 | /25 | /26 |
| 250 | /24 | /24 | /24 | /24 | /24 |
| 252 | /24 | /23 | /23 | /24 | /24 |
Sources
- AWS: Subnet CIDR blocks
- Microsoft Azure: Virtual network FAQ
- Google Cloud: Subnets
- Oracle Cloud Infrastructure: Networking overview