Splitting a Network Into Subnets
Follow a simple method to divide a network cleanly.
Splitting a Network Into Subnets is a free Network+ Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Network+ Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Why Split a Network
A single large network often needs dividing. Subnetting splits one address block into several smaller subnets to separate departments, improve security, and shrink broadcast domains.
You do this by borrowing host bits and turning them into network bits, increasing the prefix length.
Borrowing Host Bits
To create subnets, you borrow bits from the host portion. Each borrowed bit doubles the number of subnets: borrow 1 bit for 2 subnets, 2 bits for 4, 3 bits for 8.
The formula is 2^(borrowed bits) = number of subnets. Borrowing bits also reduces the hosts available in each subnet.
subnets = 2 ^ (borrowed bits)
borrow 3 -> 8 subnetsA Worked Split
Take 192.168.1.0/24 and borrow 2 bits, making it /26. That yields 2^2 = 4 subnets, each with 2^6 - 2 = 62 usable hosts.
The new mask is 255.255.255.192. You have turned one 254-host network into four 62-host networks.
Finding the Block Size
The block size (also called the increment) is how far apart the subnets are. It equals 256 minus the interesting octet of the mask.
For /26, the fourth octet of the mask is 192, so the block size is 256 - 192 = 64. Subnets begin every 64 addresses.
Listing the Subnets
Using a block size of 64 on 192.168.1.0/26, the four subnets are:
- 192.168.1.0
- 192.168.1.64
- 192.168.1.128
- 192.168.1.192
Each network address is a multiple of the block size, making them easy to list.
Network, Hosts, Broadcast
For each subnet, the network address is the multiple of the block size, the broadcast is one below the next subnet, and usable hosts lie between.
For 192.168.1.64/26: network 192.168.1.64, broadcast 192.168.1.127, usable 192.168.1.65 through 192.168.1.126.
The Interesting Octet
The interesting octet is the octet where the mask is neither 255 nor 0 — where the subnetting actually happens. For /26 it is the fourth octet.
For a /18 it would be the third octet (mask 255.255.192.0). Identify the interesting octet first; that is where you apply the block-size math.
Subnetting in the Third Octet
Subnetting is not limited to the last octet. Splitting 172.16.0.0/16 into /18 borrows 2 bits in the third octet, giving block size 256 - 192 = 64.
The subnets are 172.16.0.0, 172.16.64.0, 172.16.128.0, and 172.16.192.0 — the same method, just one octet to the left.
Matching Subnets to Needs
Plan by the largest requirement. If one department needs 100 hosts, a /25 (126 usable) fits; a /26 (62) does not.
Choose a prefix that satisfies the biggest subnet, then allocate the resulting blocks. Variable-length subnet masks let different subnets use different sizes for efficiency.
A Repeatable Method
Follow these steps every time:
- Decide how many subnets or hosts you need.
- Borrow enough bits and set the new prefix.
- Compute block size = 256 minus the interesting octet.
- List network, broadcast, and host ranges per subnet.
Practice this until it feels routine.
From Fear to Confidence
Subnetting is just bit borrowing plus block-size counting. Once you can find the prefix, block size, and ranges, any question becomes mechanical.
You now hold the complete IPv4 subnetting toolkit: masks, CIDR, host counts, and dividing networks. The next course turns to IPv6.
Quick Check
Split a network.
Recap
You learned to split networks into subnets.
- Borrow host bits: subnets = 2^(borrowed bits).
- New prefix lengthens; each subnet holds fewer hosts.
- Block size = 256 - the interesting octet of the mask.
- Subnets fall on multiples of the block size.
- Per subnet: network = the multiple, broadcast = one below the next, hosts between.
Frequently asked questions
Is the “Splitting a Network Into Subnets” lesson free?
Yes — the full text of “Splitting a Network Into Subnets” is free to read here on the web, and the Network+ Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Network+ Academy course, upgrade to CoddyKit PRO.
What will I learn in “Splitting a Network Into Subnets”?
Follow a simple method to divide a network cleanly. You practise Network+ Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Network+ Academy?
No prior experience is required. Network+ Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Splitting a Network Into Subnets” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Network+ Academy lesson?
Yes. Every Network+ Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- What a Subnet Mask Does
- Reading CIDR Slash Notation
- Counting Hosts in a Subnet
- Splitting a Network Into Subnets