Subnet splitter
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.
Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the subnet splitter
- Enter the network to split, such as 10.0.0.0/22.
- Choose to split by number of subnets or by a new prefix length.
- Enter the number or the prefix.
- 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
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.
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.
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.