Interview Prep/Networking/Addressing, CIDR & Routing

How many usable IPs does an AWS subnet of /28 have?

BeginnerScenarioAddressing, CIDR & Routing
Answer

Situation read → AWS reserves five addresses in every subnet, which surprises people who only know the textbook formula.

What I'd do →

  1. A /28 has 16 addresses
  2. AWS reserves the first four (network, VPC router, DNS, future use) and the last one (broadcast, unused)
  3. Usable is 16 - 5 = 11
  4. Confirm with aws ec2 describe-subnets --subnet-ids subnet-0abc --query 'Subnets[0].AvailableIpAddressCount'

Why → The smallest subnet AWS allows is /28, and small subnets get eaten fast by ENIs from load balancers, Lambda in VPC and EKS nodes.

Interview tip → Add that EKS with the VPC CNI can consume dozens of IPs per node, so /28 for anything but a tiny appliance is a trap.

All Networking questions Roadmap: Networking for DevOps

More on Addressing, CIDR & Routing