Skip to content

Subnetting practice game

Free visual subnetting practice game on a live /24 IPv4 block. Split and merge CIDR subnets to fit real department host counts, check usable hosts, subnet masks and broadcast addresses, and master VLSM math.

Carve the /24 block

Round 1 · Base network 10.52.18.0/24 · Clean first try 0/0

Split 10.52.18.0/24 into non-overlapping CIDR subnets that fit each department's devices plus 1 router gateway in the smallest valid VLSM block, then enter each subnet's network ID, broadcast address, and usable gateway IP.

Base pool: 10.52.18.0/24 · Reserve 1 usable host IP per floor for the router gateway.

East Wing
Needs 14 devices + 1 gateway
Unassigned
Cameras
Needs 30 devices + 1 gateway
Unassigned
Slot #1 · /24Full pool 10.52.18.0/24

Play a full NOC shift

A learning simulation with invented company networks and documentation IP blocks (RFC 5737). Always follow your organization's change control and vendor manuals on production hardware.

Use it on a real shift

Network Engineer simulator: Carve CIDR subnets, configure gateways, static routes, firewall ACLs and NAT, and trace live packets across a company network.

Clock in

CIDR and VLSM quick reference

How usable host math works

An IPv4 address has 32 bits. A CIDR prefix like /26 fixes the first 26 bits for the network and leaves 32 − 26 = 6 host bits, or 2^6 = 64 addresses total (RFC 4632 covers CIDR notation and aggregation; RFC 1878 covers VLSM sizing).

Two addresses in every standard LAN subnet are reserved by RFC 950 and RFC 1122 §3.2.1.3: the first address is the network ID and the last address is the broadcast address, leaving 2^(32 − prefix) − 2 usable host IPs. Remember that the floor's router gateway consumes 1 usable IP (so 62 devices + 1 gateway = 63 hosts → /25). On router-to-router point-to-point links, RFC 3021 also allows /31 with 2 usable addresses.

Common subnet masks (/24 to /30)

PrefixSubnet maskUsable hosts
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522

Questions people ask

How do you calculate usable hosts in a CIDR subnet?

Subtract the prefix length from 32 to get the host bits, raise 2 to that power, and subtract 2 for the reserved network ID and broadcast address (RFC 950 and RFC 1122 §3.2.1.3). For example, a /26 has 6 host bits: 2^6 − 2 = 62 usable hosts — and if a floor needs 62 devices plus 1 router gateway (63 hosts), you need a /25.

What is VLSM in subnetting?

Variable Length Subnet Masking (VLSM, RFC 1878) divides one CIDR address block (RFC 4632) into different subnet sizes — such as a /26 for 55 hosts, a /27 for 24 hosts, and a /28 for 10 hosts — instead of forcing every department into the same fixed size.

Why can a host not use the network or broadcast address?

Per RFC 950 and RFC 1122 §3.2.1.3, the all-zeros host address identifies the subnet itself and the all-ones host address broadcasts to every host on that subnet. Assigning either to a workstation breaks IPv4 communication (only point-to-point /31 links under RFC 3021 omit them).

More network engineer practice