Tools / cidr / common

How many usable hosts in a /25?

A /25 subnet has 128 IP addresses and 126 usable hosts. The first address is the network address and the last is the broadcast address, so neither can go on a host. Its netmask is 255.255.255.128 and its wildcard mask is 0.0.0.127.

/25 at a glance

Prefix
/25
Netmask
255.255.255.128
Wildcard
0.0.0.127
Addresses
128
Usable hosts
126

Example: 192.168.10.0/25

Network
192.168.10.0
Broadcast
192.168.10.127
Hosts
192.168.10.1 – 192.168.10.126

Usable IPs in a /25 cloud subnet

As a cloud subnet it leaves 123 usable on AWS and Azure, which reserve 5 addresses, and 124 on Google Cloud, which reserves 4.

ProviderUsable
AWS VPCReserves 5: network, VPC router, DNS, one held for future use, broadcast123
Azure VNetReserves 5: network, default gateway, two for Azure DNS, broadcast123
Google Cloud VPCReserves 4: network, default gateway, second-to-last, broadcast124

Questions

Quick answers.

Worked out with the same code as the CIDR calculator, which takes any IPv4 block and also splits it and checks overlaps.

What is the subnet mask for a /25?

255.255.255.128. In binary it is 25 ones followed by 7 zeros. The wildcard mask, which Cisco ACLs and OSPF use, is 0.0.0.127.

How many /25 subnets fit in a /24?

2. Each extra prefix bit halves the block, so a /24 (256 addresses) splits into 2 /25 subnets of 128 addresses each.