Skip to content

Subnet splitter

Free, no sign-up Runs in your browser

Split an IPv4 network into a number of equal subnets or into subnets of a chosen prefix length. Lists every subnet with its host range and broadcast address.

In CIDR notation, or as an address and a mask.

Split by

Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.

How to use the subnet splitter

  1. Enter the network to split, such as 10.0.0.0/22.
  2. Choose to split by number of subnets or by a new prefix length.
  3. Enter the number or the prefix.
  4. Read the table: each subnet with its first host, last host and broadcast address.

About this tool

Subnetting divides one block of addresses into smaller ones. Each extra bit of prefix cuts a block in half: a /24 becomes two /25s, four /26s, eight /27s. Because the split is by bits, equal subnets always come in powers of two. Ask for five and you get eight, with three to spare.

The reason to split is separation. Hosts in different subnets reach each other only through a router or a firewall, which is where rules are enforced. Putting the database servers, the application servers and the office laptops in separate subnets is what makes it possible to say that only the application tier may talk to the database.

Plan for what each subnet loses. Every ordinary subnet gives up its first address to the network and its last to broadcast, so four /26s hold 248 hosts where the /24 held 254. Cloud providers reserve more: AWS takes five addresses in every subnet. Size subnets for growth, since changing them later means readdressing.

Sources

Questions

How do I split a /24 into four subnets?

Add two bits to the prefix, since two bits give four combinations. The result is four /26 subnets of 64 addresses each: .0/26, .64/26, .128/26 and .192/26, with 62 usable hosts in each.

Why can I not split a network into three equal subnets?

A subnet boundary is a bit boundary, and each bit doubles the count: 2, 4, 8, 16. Three equal parts do not exist. Split into four and keep one in reserve, or use subnets of different sizes.

How many hosts do I lose by subnetting?

Two per subnet, for the network and broadcast addresses. Splitting one /24 into eight /27s turns 254 usable addresses into 8 times 30, or 240. Subnets of /31 and /32 are exceptions with no such loss.

Related tools