Skip to the workspace
Pebellslearn by building
Subnetting  ›  Lesson

VLSM — Subnets of Different Sizes

VLSM 18 minVLSM splits one address block into subnets of different sizes, allocating the largest first and giving each group the smallest block that fits.

network engineer / VLSM — Subnets of Different Sizes

Explore each scene at your own pace.

01 · The rule

The rule

VLSM — Subnets of Different Sizes

Kite Studio now has four groups to separate: 100 design machines, 50 in sales, 20 in admin, and a two-address link to the router at the new office across town. Cutting 192.168.10.0/24 into four equal /26 pieces fails at once: design needs 100 hosts and a /26 holds only 62. Variable Length Subnet Masking (VLSM) lets each group get a block sized to fit.

The rule

Biggest first, smallest block that fits, next free boundary.

VLSM means using different prefix lengths inside one address block. Instead of equal slices, you cut a big piece for the big group and small pieces for small groups, wasting far fewer addresses.

Three rules make it safe:

  • Smallest block that fits: pick the longest prefix whose usable hosts 2h−22^h - 2 still covers the need, remembering the network and broadcast addresses. 50 hosts → /26 (62). 20 hosts → /27 (30). A point-to-point router link → /30 (2).
  • Biggest first: allocate in order of size, largest group first. Every block must start on a multiple of its own size, and placing big blocks first keeps those boundaries lined up with no awkward gaps.
  • Next free boundary: each new subnet starts at the first address after the previous one that is also a multiple of its block size. No two subnets may overlap.
Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.