Free Network Tools › Subnetting Practice
Subnetting Practice
Practise IPv4 subnetting with unlimited random questions: network, broadcast, host range, hosts per subnet and masks, each with a worked answer.
How it works
- Block size = 256 − the mask value in the octet where the prefix ends (for /26, 256 − 192 = 64).
- Subnets start at multiples of the block size in that octet; the network address is the multiple at or below the address, with later octets set to 0.
- The broadcast is the next subnet’s start minus 1, with later octets set to 255.
- First usable host = network + 1; last usable host = broadcast − 1.
- Usable hosts = 2^(32 − prefix) − 2, except /31 (2, RFC 3021) and /32 (1).
Related tools
- Subnet Calculator — Network, broadcast, host range, mask, wildcard and binary for any IPv4 address and prefix.
- VLSM Calculator — Allocate subnets of different sizes from one network, largest first, with every step shown.
- Wildcard Mask Calculator — Convert masks and prefixes to wildcard masks, turn an IP range into wildcards, and preview ACL and OSPF lines.