Menu
Coddy logo textTech

Carving the Block

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

Step three: allocate. Start at the very beginning of 10.20.0.0/23 and place each team's subnet where the previous one ends, largest first.

One new wrinkle: the block is a /23, so it spans two last octets: 10.20.0.0 through 10.20.1.255, 512 addresses in all. Our four subnets need 128 + 64 + 32 + 16 = 240 of them, so everything fits in the first half with room to spare.

Keep the boundary rule in mind as you go: each subnet must start on a multiple of its own size.

challenge icon

Challenge

Medium

Print the four allocations in CIDR notation, one per line, in allocation order: Engineering (/25), Sales (/26), Support (/27), Printers (/28).

Expected output:

10.20.0.0/25
10.20.0.128/26
10.20.0.192/27
10.20.0.224/28

Try it yourself

Terminal

All lessons in IP Addressing and Subnetting

Practice on your own: Terminal playground