Menu
Coddy logo textTech

VLSM Step by Step

Lesson 34 of 46 in Coddy's IP Addressing and Subnetting course.

Real teams are not all the same size, so real plans use VLSM: Variable Length Subnet Masks, meaning different-sized subnets carved from one block.

The method: right-size each team, then allocate from the start of the block, largest team first, each subnet beginning exactly where the previous one ended.

From 192.168.100.0/24: Sales needs 100 hosts (a /25, taking .0 to .127), then Engineering needs 50 (a /26, starting at .128). Two teams, two right-sized subnets, no waste between them.

challenge icon

Challenge

Easy

Allocate from 192.168.100.0/24: Sales needs 100 hosts, Engineering needs 50. Print the two allocations in CIDR notation, Sales first.

Expected output:

192.168.100.0/25
192.168.100.128/26

Try it yourself

Terminal

All lessons in IP Addressing and Subnetting

Practice on your own: Terminal playground