Hello! Welcome back to our course on network design.
In the last lesson, we focused on the foundational skill of VLSM: looking at a list of host requirements and determining the most efficient CIDR prefix for each one. You learned how to use the formula and a reference chart to quickly select the right-sized subnet for any need, from a large department to a simple point-to-point link.
Today, we'll put that skill to work. You'll learn how to take a given block of IP addresses and carve it up into appropriately sized, non-overlapping subnets to meet a set of requirements. This lesson is all about the core process of creating a VLSM allocation plan.
By the end of our 60 minutes, you will be able to take a list of network segments and a parent address block, and systematically develop a complete and efficient subnetting plan.
1. The Cardinal Rule: Largest to Smallest
The single most important rule in VLSM is to allocate subnets starting with the largest requirement and working your way down to the smallest.
Why is this so crucial? Imagine you have a large, empty plot of land (your parent address block). If you build a small shed (a small subnet) right in the middle, you might break up the remaining space into two smaller, unusable plots, preventing you from building a large warehouse (a large subnet) later. By allocating the largest plots first, you ensure that the remaining space is always a single, contiguous block, which can be further subdivided as needed. This prevents address space fragmentation.
The following short video clip clearly explains this first step.
VLSM Subnetting - subnetting a subnet
This clip from the Sunny Classroom channel emphasizes the first and most critical step in any VLSM plan.
Watch the segment from 03:37 to 04:17. Note how the first action is to list all network requirements in descending order of size.
2. The Allocation Process: A Walkthrough
Once your requirements are sorted, the allocation process is a methodical, step-by-step procedure of carving up your parent address block. You take the first (largest) requirement, assign it the first available subnet of the correct size, and then calculate where the next available address is.
The following video provides an excellent, detailed walkthrough of this process. It uses the same host-to-prefix chart we developed in the last lesson.
Andrea Schauer's tutorial demonstrates the full VLSM allocation process. You'll see how to take requirements, determine the network address for each, and ensure there's no overlap.
Watch the example from 06:33 to 14:17. Focus on the core process: how she uses the 'increment' value of each subnet to find the starting address of the next subnet. This is the key to creating a non-overlapping plan.
Let's break down the logic from the video:
- Start with the parent block:
192.168.1.0/24. - Order the requirements: 100 hosts, 50 hosts, 10 hosts.
- Allocate the largest subnet: The 100-host network needs a
/25. The first available subnet is192.168.1.0/25. - Find the next boundary: A
/25subnet contains 128 addresses. So, the first subnet uses addresses from192.168.1.0to192.168.1.127. The next available address is192.168.1.128. - Allocate the next subnet: The 50-host network needs a
/26. We assign it to the next available block:192.168.1.128/26. - Find the next boundary: A
/26subnet contains 64 addresses. Starting from.128, the next boundary is128 + 64 = 192. The next available address is192.168.1.192. - Continue the process: The 10-host network needs a
/28, which is assigned to192.168.1.192/28.
This iterative process of allocate -> find next boundary -> repeat is the essence of building a VLSM plan.
3. Subnetting Larger Blocks
Your goal is to design a network for ~1,000 devices, which means you'll be working with address blocks larger than a standard /24. The logic is identical, but the calculations will involve more than just the last octet.
Let's watch the second example from the same video, which demonstrates this with a /22 block.
This next segment tackles a larger problem, showing how VLSM works when you need to change the third octet. This is directly applicable to the scale of network you'll be designing.
Watch from 20:39 to 25:29. Pay close attention to how a /23 subnet (which needs 512 addresses, or 2 blocks of 256) increments the third octet to find the next available network address.
As you saw, a /23 subnet for 500 hosts, starting at 10.10.0.0, has a block size of 2 in the third octet. This means it uses all addresses from 10.10.0.0 to 10.10.1.255. The next available network address is therefore 10.10.2.0. The process remains the same, you just need to be mindful of which octet your subnet mask affects.
4. Guided Practice
Let's apply this together. Imagine we're given the parent block 10.50.0.0/21 and the following requirements:
- Engineering LAN: 400 hosts
- Sales LAN: 150 hosts
- Servers: 80 hosts
- Management: 25 hosts
- WAN to HQ: 2 hosts
Step 1: Order requirements and determine prefixes (This combines last lesson's skill with this lesson's first rule).
| Department | Hosts Needed | Required Prefix |
|---|---|---|
| Engineering LAN | 400 | /23 (510 usable) |
| Sales LAN | 150 | /24 (254 usable) |
| Servers | 80 | /25 (126 usable) |
| Management | 25 | /27 (30 usable) |
| WAN to HQ | 2 | /30 (2 usable) |
Step 2: Allocate non-overlapping subnets.
-
Engineering (/23): Starts at the beginning of our parent block.
- Network Address:
10.50.0.0/23 - A
/23block uses 512 addresses. It spans10.50.0.0and10.50.1.0. - Next available address is
10.50.2.0.
- Network Address:
-
Sales (/24): Starts at the next available address.
- Network Address:
10.50.2.0/24 - A
/24block uses 256 addresses. - Next available address is
10.50.3.0.
- Network Address:
-
Servers (/25):
- Network Address:
10.50.3.0/25 - A
/25block uses 128 addresses. - Next available address is
10.50.3.128.
- Network Address:
-
Management (/27):
- Network Address:
10.50.3.128/27 - A
/27block uses 32 addresses. The next boundary is.128 + 32 = .160. - Next available address is
10.50.3.160.
- Network Address:
-
WAN to HQ (/30):
- Network Address:
10.50.3.160/30 - A
/30block uses 4 addresses. The next boundary is.160 + 4 = .164. - Next available address is
10.50.3.164.
- Network Address:
Our final allocation plan looks like this:
| Department | Network Address |
|---|---|
| Engineering LAN | 10.50.0.0/23 |
| Sales LAN | 10.50.2.0/24 |
| Servers | 10.50.3.0/25 |
| Management | 10.50.3.128/27 |
| WAN to HQ | 10.50.3.160/30 |
5. Your Turn: Independent Practice
You requested plenty of practice, so here is a problem to solve on your own. This will solidify the process.
Scenario: You are given the parent address block 222.37.34.0/24. You need to create a VLSM plan for the following requirements:
- Research and Development: 110 hosts
- Management: 60 hosts
- Marketing: 29 hosts
- Bookkeeping: 12 hosts
- Reception: 3 hosts
Your Task:
- Order the requirements from largest to smallest.
- Determine the optimal CIDR prefix for each requirement.
- Develop the allocation plan by assigning a non-overlapping network address to each segment.
Present your final answer as a table with columns for the department, its assigned network address, and its CIDR prefix.
Click here to see the solution and check your work.
1. Ordered Requirements & Prefixes:
- Research & Dev (110 hosts) -> /25 (126 usable)
- Management (60 hosts) -> /26 (62 usable)
- Marketing (29 hosts) -> /27 (30 usable)
- Bookkeeping (12 hosts) -> /28 (14 usable)
- Reception (3 hosts) -> /29 (6 usable)
2. Allocation Plan:
| Department | Network Address | CIDR Prefix |
|---|---|---|
| Research & Dev | 222.37.34.0 |
/25 |
| Management | 222.37.34.128 |
/26 |
| Marketing | 222.37.34.192 |
/27 |
| Bookkeeping | 222.37.34.224 |
/28 |
| Reception | 222.37.34.240 |
/29 |
Walkthrough:
- R&D (/25): Starts at
.0. Uses 128 addresses. Next is.128. - Management (/26): Starts at
.128. Uses 64 addresses. Next is.128 + 64 = .192. - Marketing (/27): Starts at
.192. Uses 32 addresses. Next is.192 + 32 = .224. - Bookkeeping (/28): Starts at
.224. Uses 16 addresses. Next is.224 + 16 = .240. - Reception (/29): Starts at
.240. Uses 8 addresses. Next is.248.
(This problem is adapted from Problem 27 in the VLSM Workbook resource.)
Conclusion
Fantastic work. You have now learned the complete, repeatable process for creating a VLSM allocation plan. This is a huge step toward designing the large, efficient network you're aiming for.
Key Takeaways:
- Always order your network requirements from largest to smallest before you begin allocating addresses.
- The allocation process is iterative: assign the first available block, calculate the next available address, and repeat.
- This process works the same way for large address blocks that span multiple octets; you just need to be careful with which octet you're incrementing.
In our next lesson, we'll take the plans we've created today and learn how to formally document them. This includes calculating and recording the full details for each subnet: its network address, prefix, usable host range, and broadcast address. This documentation is the final deliverable for any addressing plan.