This topic covers Variable Length Subnet Masking (VLSM) using a visual block method to efficiently allocate subnets of different sizes from a single Class C address space. It demonstrates how to assign the correct subnet mask for five networks with varying host requirements.
VLSM Box Visualization
We're going to go ahead and do another example, but this time we'll use the box to visualize how to break this down into varying length subnet masks.
We'll need to provide for five different networks here. The first one will have 98 hosts in it, the next 45, the next one 25, and then two networks that just have two hosts each. We have this 192.168.20.0/24 address space to work with.
We'll go after this first network first, since it's the largest one. What I'm going to do is break this down until I get at least 98 hosts in it. If I were to break this down right here — first of all I've got to go vertical, so I'll split halfway down the center here — I would get everything from 0 through 127. If I had to break that in half again it wouldn't be enough hosts, so this is the one I want. So I'm going to use up this box of addresses first.
I'm going to do 192.168.20, and this is going to be a dot zero slash — and I'm borrowing just one bit here, because I split the table just one time, and so this is a slash 25.
Next I need 45 addresses. If I were to use this whole other block over here, not only would I not have enough for the rest of my networks, but I'd have a lot of excess addresses. But if I split this in half again — so I'm going to split this in half again — so at this point in time I'm now down to a slash 26. If I borrow two bits here, then I've got this whole box that I can work with. It's 64 addresses, 62 usable addresses, and that's going to fit my 45. If I were to split it again in half, then I would get 32, and that's not enough.
So my next one here is 192.168.20, and the first address in this range is dot 128, so that is a slash 26.
My next one here is a 25. This down here, the bottom right hand corner, that's what I have to work with now. So what I'm going to do is, if I use the whole block up it wouldn't allow me extra for the rest of the networks, so what I'm going to do is break this down again in half, which would give me just the right amount here — that would give me a range of 32.
So I'm going to do 192.168.20 dot, and this is going to start with a 192. So 192, and this will be a slash — what do we have, we have a 25, 26, 27 — so slash 27.
Next we just need two hosts, so rather than — we could split this in half, or actually I need to split it in half vertically first, and split in half again, and then split in half again to find this range right here. So now we're at a slash 30.
The next one here is going to be dot 224, so 192.168.20.224. We said that's a slash 30, and there's the address right there, and so it's just using this block right here. The next one I can see here is going to be 192.168.20.228, and that will be a slash 30 as well.
So now I've got that range. For each one of these I've got the network address, I've got the broadcast address, and then all of the usable addresses in between that, and I can do that for every single network.
So there you have it, we have figured out how to break this apart using this box visualization method.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →