Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
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.

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.

The shortcut

Make a four-column table — need → prefix → network → broadcast — and fill it row by row, largest need first. Each network is the previous broadcast + 1 (as long as the order is largest first, it will already sit on a valid boundary).

Kite Studio's VLSM plan for `192.168.10.0/24`Step 1 of 4
  1. Design — 100 hosts

    A /26 gives 62: too small. A /25 gives 126. Network .0/25, hosts .1–.126, broadcast .127.

The trap is the off-by-two: a group of 62 fits a /26 exactly, but a group of 63 or 64 needs a /25, because two addresses in every block are reserved.

Drills

Answer fast — trust the rule.

Usable hosts in the /27 chosen for the 20-person admin team:

What's the answer?
25−2= ?2^{5} - 2 = \,?
quick drill

What is the smallest subnet that fits a team of 31 hosts?

quick drill

Why allocate the largest subnet first?

quick drill

Which prefix suits a point-to-point link between two routers?

quick drill

After the plan above ends at .227, a guest Wi-Fi needs 14 hosts (a /28). Where can it start?

Remember

  • Biggest first, smallest block that fits, next free boundary.
  • Fits means 2h−22^h - 2 covers the need: 30 → /27, 31 → /26, 2 → /30.
  • Every subnet starts on a multiple of its own block size, and none may overlap.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainPlan the office

Split 192.168.10.0/24 for Kite Studio: design needs 100 hosts, sales 50, admin 20 and a router link 2. Give each subnet's prefix, network and broadcast address, and explain the order you allocated them in.