Calculators

Three offline calculators for subnetting. No network traffic required — pure maths on the address you type in.

IPv4 subnet calculator

Give it an address and a prefix (CIDR) and it derives every field you'd want for documentation or a firewall rule.

Output

Splitting a /24

Common task: take 192.168.1.0/24 and break it into four /26s. Enter 192.168.1.0 with mask /26 — the calculator shows the first block. Repeat with 192.168.1.64, 192.168.1.128, 192.168.1.192 to walk the others.

Finding overlap

Two networks overlap if one contains the other. Calculate both with their declared prefixes; if one's first-host ≤ the other's network and one's broadcast ≥ the other's last-host, they collide. Renumber accordingly.

IPv6 calculator

Same idea, scaled up to 128 bits. The address can be entered in any accepted form — compressed (fe80::1), expanded (fe80:0:0:0:0:0:0:1), or with a zone (fe80::1%eth0, parsed but dropped from output).

Common IPv6 blocks

PrefixPurpose
fe80::/10Link-local; auto-configured on every interface.
fc00::/7Unique local (ULA); IPv6 equivalent of RFC1918.
2000::/3Global unicast.
ff00::/8Multicast.
::1/128Loopback.
2001:db8::/32Documentation (safe to use in examples).

IPv6 subnet splitter

Takes a parent prefix and a desired number of subnets, then produces them all with their boundaries. Does the work the single-subnet calculator won't.

Output per subnet

Subnets beyond the requested count are shown greyed out (excess from rounding up to a power of two) — pick a nice round number like 4, 8, 16 to avoid leftovers.

Example: carving a /48 into site blocks

You have 2001:db8:abcd::/48 and want 16 sites, each with its own /52. Enter address 2001:db8:abcd::, prefix /48, subnets 16. The result is sixteen /52 blocks (2001:db8:abcd:0::, ...:1000::, ...:2000::, …). Each of those still has room for 4096 /64 LANs.

Previous
Wi-Fi
Next
Utilities