How many usable hosts are in a /24, and why minus two?
BeginnerConceptIP Addressing, CIDR, Subnetting & Routing
Answer
A /24 has 256 addresses; traditionally the network address (.0) and broadcast (.255) are not assignable, leaving 254. In AWS the VPC reserves five per subnet: network, VPC router, DNS, future use, and broadcast, so a /24 gives 251 usable IPs.
Azure also reserves five and GCP reserves four, so check the cloud's rule before you size small subnets.
More on IP Addressing, CIDR, Subnetting & Routing
What is an IPv4 address and how is it structured?BeginnerWhat are the private IPv4 ranges (RFC 1918)?BeginnerWhat is CIDR notation?BeginnerSubnet 10.0.0.0/16 into /24 subnets. How many do you get and what are the first three?IntermediateGiven 172.16.37.200/21, what is the network address, broadcast and range?IntermediateWhat is a subnet mask and what is the default gateway?Beginner