CIDR, masks, host ranges and public vs private — in binary.
Subnet calculatoraddress / prefix length (CIDR)
prefix/26
Presets:
The 32 bitsnetwork (26)host (6)
Address
11000000
10101000
00001010
00100101
Mask
11111111
11111111
11111111
11000000
Network
11000000
10101000
00001010
00000000
The mask is 26 ones followed by 6 zeros. Address AND mask keeps the network bits and zeroes the host bits — that's the network address. Set every host bit to 1 and you get the broadcast address.
Network address
192.168.10.0/26
identifies the subnet itself
Broadcast
192.168.10.63
reaches every host in the subnet
Subnet mask
255.255.255.192
11111111.11111111.11111111.11000000
Wildcard mask
0.0.0.63
inverse of the mask (used in Cisco ACLs, OSPF)
First usable host
192.168.10.1
Last usable host
192.168.10.62
Usable hosts
62
2^6 = 64 addresses − network − broadcast
Class (historical)
Class C
first octet 192–223 · default mask /24
Private (RFC 1918)Reserved for internal networks (10/8, 172.16/12, 192.168/16). Not routable on the internet — a NAT router translates it to a public IP on the way out.
Tip: each step right on the slider halves the subnet. /24 → 254 hosts, /25 → 126, /26 → 62, /27 → 30. Smaller subnets limit how far an attacker can move or scan once inside — that's network segmentation.