Tools / cidr / common

How many usable hosts in a /26?

A /26 subnet has 64 IP addresses and 62 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.192 and its wildcard mask is 0.0.0.63.

/26 at a glance

Prefix
/26
Netmask
255.255.255.192
Wildcard
0.0.0.63
Addresses
64
Usable hosts
62

Example: 192.168.10.0/26

Network
192.168.10.0
Broadcast
192.168.10.63
Hosts
192.168.10.1 – 192.168.10.62

Usable IPs in a /26 cloud subnet

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

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

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 /26?

255.255.255.192. In binary it is 26 ones followed by 6 zeros. The wildcard mask, which Cisco ACLs and OSPF use, is 0.0.0.63.

How many /26 subnets fit in a /24?

4. Each extra prefix bit halves the block, so a /24 (256 addresses) splits into 4 /26 subnets of 64 addresses each.