Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 6

VLSM for Efficient IP Addressing

Recommended resources

Welcome back! In our last lesson, you mastered the skill of taking a single IP address and its prefix to determine its exact place in a network—finding its network ID, broadcast address, and the range of usable addresses. This is the fundamental building block for IP address management.

Today, we'll use that skill to design an IP addressing plan for an entire network. In the real world, and for your project, different parts of a network have different needs. For example, a student computer lab requires far more addresses than the point-to-point link connecting two routers. This lesson introduces Variable Length Subnet Masking (VLSM), a technique that allows you to create subnets of different sizes to efficiently match these varied requirements, minimizing wasted IP addresses. By the end of this lesson, you will be able to design a complete and efficient IP addressing scheme from scratch.

1. The "Why" Behind VLSM: Efficiency

Previously, we've worked with subnets that were all the same size, a practice known as Fixed-Length Subnet Masking (FLSM). If you needed to create five subnets, you would divide your address block into five equally-sized subnets. But what if one subnet needs 100 hosts and the other four only need 10 hosts each? With FLSM, you'd have to make all five subnets large enough for 100 hosts, wasting a significant number of addresses.

VLSM solves this problem by allowing you to "subnet a subnet," creating subnets of different sizes from a single, larger address block. This efficiency is crucial for conserving IPv4 addresses.

This image shows how a single /24 block can be carved up into various smaller subnets, each with a different prefix length, to meet specific needs.

VLSM Subnetting Example
This diagram illustrates how the 192.168.1.0/24 network is first divided into larger chunks (like /25s), which are then further subdivided into smaller ones (like /27s and /30s). VLSM allows you to pick and choose from these different-sized subnets to fit your network's needs perfectly.

To understand the core concept and how it contrasts with FLSM, the following video provides a concise explanation.

Free CCNA | Subnetting (Part 3 - VLSM) | Day 15 | CCNA 200-301 Complete Course

This video from Jeremy's IT Lab introduces VLSM and explains its primary purpose.

Watch the section that defines VLSM and its benefits. Pay attention to the example network topology with varied host requirements and why FLSM would be inadequate.


2. The VLSM Design Methodology

The process of designing a VLSM scheme is systematic and builds directly on the skills you learned in the previous lesson. The single most important rule is: Always start by allocating the largest subnet first, and work your way down to the smallest.

Here is the step-by-step process:

  1. List Requirements: Identify all the required subnets (e.g., LANs for different departments, WAN links) and the number of hosts each needs.
  2. Order by Size: Arrange the list of required subnets in descending order, from the largest number of hosts to the smallest.
  3. Allocate the Largest Subnet: Take your starting network address block. For the largest requirement, find the smallest prefix length (and thus subnet mask) that can accommodate the needed number of hosts. Assign this subnet the first available address range.
  4. Determine the Next Starting Point: The next available IP address after the broadcast address of the subnet you just created becomes the network address for your next subnet.
  5. Repeat: Continue this process down your ordered list, carving out the next largest subnet from the remaining address space until all requirements are met.

Let's see this methodology in action. The same video walks through a complete example, applying these steps precisely.

Free CCNA | Subnetting (Part 3 - VLSM) | Day 15 | CCNA 200-301 Complete Course

This video demonstrates the full, step-by-step process of creating a VLSM addressing plan.

Watch from the explanation of the VLSM steps through the complete example. Follow along as the presenter: Orders the LANs by host requirement. Calculates the subnet for the largest requirement (Tokyo LAN A, 110 hosts). Uses the next available address to calculate the subnet for the second-largest requirement (Toronto LAN B, 45 hosts). Continues this process for all remaining LANs and, finally, for the point-to-point WAN link, which only needs two addresses and gets a /30 subnet.

A Note on Real-World vs. Exam Scenarios

The video demonstrates the typical CCNA approach: finding the smallest possible subnet that meets the requirement to maximize efficiency. This is the correct approach for your exam and most practice scenarios.

However, in a real-world network design, you would often leave room for growth. If a department needs 28 hosts, a /27 (30 usable hosts) is a perfect fit for an exam, but a /26 (62 usable hosts) might be a wiser choice in a real network to accommodate future expansion.

VLSM Variable Length Subnet Mask Example

This article from FlackBox provides excellent context on designing for scalability.

Read the section titled "Subnetting Design Steps". Focus on the distinction it makes between designing for the real world (leaving room for growth) and answering a CCNA exam question (doing exactly what is asked). For your project and exam, stick to the latter unless told otherwise.


3. From Design to Implementation: A Practical Walkthrough

Now that you understand the theory and calculation, let's bridge the gap to practical application. The following video is a complete walkthrough of a Packet Tracer activity where a VLSM scheme is not only designed but also configured and tested on network devices. This is highly relevant to the hands-on work required for your project.

11.10.1 Packet Tracer - Design and Implement a VLSM Addressing Scheme

This Packet Tracer tutorial by Tech Acad shows the entire VLSM process, from design to configuration.

This video is comprehensive. I recommend watching it in two parts: The Design Phase: First, watch the initial analysis and calculation from the problem introduction to the completion of the addressing table. Observe how the presenter uses a spreadsheet to organize the requirements, calculate each subnet from largest to smallest, and create a final addressing plan. The Implementation Phase: Next, watch how this plan is put into action from the device configuration section. You don't need to memorize every command right now, but focus on how the IP addresses and subnet masks from the addressing table are applied to the router interfaces, switch management interfaces, and PCs.

Watching this process end-to-end will solidify your understanding and give you a clear model for how to approach the IP addressing portion of your own project.


4. Your Turn: Practice Problem

Let's put your new skill to the test. Design a VLSM scheme for the following scenario.

Scenario: You have been assigned the network address block 192.168.100.0/24. You need to create subnets for the following requirements:

  • LAN-A (Sales): 50 hosts
  • LAN-B (Engineering): 25 hosts
  • LAN-C (Management): 12 hosts
  • WAN-1 (Router-to-Router): 2 hosts

For each subnet, determine the Network Address, CIDR Prefix, First Usable Host, Last Usable Host, and Broadcast Address. Fill out a table similar to the one in the videos.

Click to see the solution
  1. Order the requirements:

    • LAN-A: 50 hosts
    • LAN-B: 25 hosts
    • LAN-C: 12 hosts
    • WAN-1: 2 hosts
  2. Allocate for LAN-A (50 hosts):

    • We need . . So we need 6 host bits.
    • This means a prefix.
    • Network Address: 192.168.100.0/26
    • First Usable: 192.168.100.1
    • Broadcast Address: 192.168.100.63 (The next subnet starts at .64)
    • Last Usable: 192.168.100.62
  3. Allocate for LAN-B (25 hosts):

    • Next available address: 192.168.100.64.
    • We need . . So we need 5 host bits.
    • This means a prefix.
    • Network Address: 192.168.100.64/27
    • First Usable: 192.168.100.65
    • Broadcast Address: 192.168.100.95 (The next subnet starts at .96)
    • Last Usable: 192.168.100.94
  4. Allocate for LAN-C (12 hosts):

    • Next available address: 192.168.100.96.
    • We need . . So we need 4 host bits.
    • This means a prefix.
    • Network Address: 192.168.100.96/28
    • First Usable: 192.168.100.97
    • Broadcast Address: 192.168.100.111 (The next subnet starts at .112)
    • Last Usable: 192.168.100.110
  5. Allocate for WAN-1 (2 hosts):

    • Next available address: 192.168.100.112.
    • We need . . So we need 2 host bits.
    • This means a prefix.
    • Network Address: 192.168.100.112/30
    • First Usable: 192.168.100.113
    • Broadcast Address: 192.168.100.115 (The next subnet starts at .116)
    • Last Usable: 192.168.100.114

Conclusion

In this lesson, you have learned the most efficient method for designing an IPv4 addressing scheme. This is the capstone skill of IP subnetting, combining everything you've learned about prefixes, masks, and address calculations into a practical design process.

Here are the key takeaways:

  • VLSM allows for the creation of different-sized subnets from a single address block, which is far more efficient than FLSM.
  • The core methodology is to list your requirements, order them from largest to smallest, and allocate subnets sequentially.
  • For each step, you apply the subnetting math from the previous lesson to find the right prefix and determine the network and broadcast boundaries.
  • Point-to-point WAN links that require only two host addresses are almost always assigned a /30 subnet.

You are now fully equipped to design the IP address plan for your project. The next logical step is to learn what to do when things go wrong. In our next lesson, we will move into the module on troubleshooting and explore the essential tools and commands, like ping and traceroute, used to diagnose and resolve IP connectivity issues.