Menu
Coddy logo textTech

Allocation Order

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

Why largest first? Because subnets can only start at multiples of their own block size. A /25 can only begin at .0 or .128. Hand out small subnets first and the big one may find every legal starting point blocked, even with plenty of total space left.

Allocating in descending size guarantees each new subnet lands on a legal boundary exactly where the previous one ended. The plan stays gap-free.

Let's extend the previous plan: after Sales (/25) and Engineering (/26), Operations needs 20 hosts, a /27, which slots in at .192.

challenge icon

Challenge

Easy

Print the complete three-team plan for 192.168.100.0/24 in allocation order: Sales (100 hosts), Engineering (50 hosts), Operations (20 hosts). CIDR notation, one per line.

Expected output:

192.168.100.0/25
192.168.100.128/26
192.168.100.192/27

Try it yourself

Terminal

All lessons in IP Addressing and Subnetting

Practice on your own: Terminal playground