VLSM Subnetting in Practice

Ch. 4 of 516 mins3 Tasks

Master Variable Length Subnet Masking (VLSM) to allocate appropriately sized subnets for 60 workstations, 12 servers, and 2 WAN router links from a single IP block.

Track Series

Chapters in this Track (Ch. 4 of 5)

4VLSM Subnetting in Practice
16m

In traditional subnetting (FLSM - Fixed Length Subnet Masking), every single sub-network in an organization must share the exact same subnet mask. If your largest department has one hundred computers, every other subnet in your building must also be sized for one hundred computers—even if your server closet only contains five servers and your WAN link only connects two routers.

This rigid limitation wastes enormous quantities of address space. In modern networking, we use Variable Length Subnet Masking (VLSM). VLSM allows engineers to treat an IP block like a pizza that can be sliced into pieces of different sizes based on actual host requirements.

The Golden Rule of VLSM: Largest Subnet First

When designing a VLSM scheme from a base network block like 192.168.1.0/24, you must always list your requirements in descending order of size—from the largest host count to the smallest. If you attempt to allocate small subnets first, you will fragment the block and make it impossible to fit larger subnets later.

Suppose our corporate office has three distinct requirements:

  1. General Staff LAN: Needs 50 usable host IP addresses.
  2. Server Farm LAN: Needs 12 usable host IP addresses.
  3. Router WAN Interconnect: Needs exactly 2 usable host IP addresses.

By prioritizing the largest group first, we preserve clean mathematical boundaries along binary powers of two. If we started with the 2-host WAN link at 192.168.1.0, the Staff LAN could not begin at 192.168.1.4 because a /26 block must begin on a multiple of 64!

Requirement Hosts Needed Mask Selected Network ID Block Usable Range
Staff LAN 50 hosts /26 (255.255.255.192) 192.168.1.0/26 192.168.1.1 - 192.168.1.62
Server Farm 12 hosts /28 (255.255.255.240) 192.168.1.64/28 192.168.1.65 - 192.168.1.78
WAN Uplink 2 hosts /30 (255.255.255.252) 192.168.1.80/30 192.168.1.81 - 192.168.1.82

Step-by-Step Allocation Walkthrough

To satisfy the Staff LAN requirement (50 hosts), we need 6 host bits (2^6 - 2 = 62 usable addresses). Borrowing 2 bits gives a /26 mask. The Staff LAN claims the range from 192.168.1.0 through 192.168.1.63.

The very next available address in our parent block is 192.168.1.64. We use this exact boundary to start our Server Farm. For 12 servers, we need 4 host bits (2^4 - 2 = 14 usable addresses), which corresponds to a /28 mask. The Server Farm claims 192.168.1.64 through 192.168.1.79.

The next available address is 192.168.1.80. Here we carve our WAN link using a /30 mask (4 total addresses), claiming 192.168.1.80 through 192.168.1.83. The entire remainder of the parent /24 block (from 192.168.1.84 to 192.168.1.255) remains completely free for future company expansion!

Notice how neatly everything fits. Because we followed the descending-order rule, there are zero address overlaps, zero wasted gaps between subnets, and more than 170 addresses left over for future departments.

Avoiding Common VLSM Overlap Pitfalls

The most common mistake made by junior administrators during VLSM design is creating overlapping subnets. This happens when someone selects an invalid starting address for a subnet block.

Every subnet must start on a multiple of its own block size. A /26 subnet has a block size of 64, so it can only start at 0, 64, 128, or 192. It can never start at 10 or 32. A /28 subnet has a block size of 16, so it can only start at multiples of 16: 0, 16, 32, 48, 64, 80, 96, 112, 128, etc. Memorizing these boundary alignment rules prevents routing table conflicts.

Hands-On VLSM Lab Verification

In this lab exercise, you will verify the multi-tier VLSM layout across a staff workstation (/26), an internal company server (/28), and a router WAN gateway (/30). You will test end-to-end communication to verify that all three tiers coexist seamlessly.

Pay close attention to the subnet masks configured on each host. Notice that Staff PC uses 255.255.255.192, while Company Server uses 255.255.255.240. The router seamlessly connects both distinct mask lengths without hesitation.

Hands-On Practice Checklist

Progress:0 / 3

Perform actions on the practice lab canvas on the right. Tasks automatically check off as you connect cables and run commands.

Task 1: Verify Staff PC /26 Configuration

Click Staff PC, open Terminal, and confirm its IP is 192.168.1.10 with mask 255.255.255.192 (/26) and gateway 192.168.1.1.

Task 2: Verify Server Farm /28 Configuration

Click Company Server, open Ports tab, and confirm its IP is 192.168.1.65 with mask 255.255.255.240 (/28) and gateway 192.168.1.78.

Task 3: Ping Company Server from Staff Workstation

From Staff PC Terminal, ping Company Server at 192.168.1.65. Confirm packet flow across the VLSM routed core.