A hands-on VLSM practice exercise working through an eight-network 192.168.20.0 scenario with varying host requirements, covering network addresses, usable host ranges, and broadcast addresses. Reinforces variable length subnet masking by applying the full subnetting process from start to finish.
VLSM Practice Example
Let's do another example of VLSM, but this time I'm going to allow you to do the work, and then you can check the work, and then we'll come together at the end and I'll step you through the process in case you have any questions.
Here's the example that we're going to use. It's still a 192.168.20 network, but it's broken down into eight different networks here. It also has a lot of different hosts per each one. If we were just to do standard subnetting with this, we wouldn't be able to make it all work because of the differing needs here.
So what you can do now is go through the process of figuring out all the networks with this. Figure out all of the network addresses, the usable hosts and the broadcast address, write it all down, and then we'll go over the answers.
Here are the answers. Go ahead and check your answers and see how close you got. All right, should we do this together?
The first one that we need is a network that has 60 hosts to it. So what we're going to do is find the one that allows us to do 60 hosts, right there. This is where we draw the line for that first one, and we will write in 00, since that's the start of this. So the network address would be .0, because the rest of these for the network address would be zero.
I'm probably just going to figure out all the network addresses and go from there. So I've got this 55 in here, which looks like the same one, so I'm going to draw the line at the same point for that one. I can't use 00 — that's been taken up with that whole range from the network before it. So now I'm going to do 01, the next number that I can use in this range. So same thing: we've got the network address of .64.
Next up we've got this network of 53 right here. So what I'm going to do is find which one works, which is the same one again, so I'm going to draw it down. I can't use the 01 now, that whole range has been used up, but I can use a 10. And then if I were to have zeros in for the rest of these, then that would be .128.
Next up is 29 here. So for 29 I can actually use this one right here, so for this one I could draw the line right there. Which is good, because I'm starting to run out of address space — I've already gone to the 191. So it's good, because otherwise we would use up all of our IP addresses here. Now, I've already used a 10 and a 01 and a 00 for the first two bits, so the only thing I have left here is a 11. So it's got to be 11, and so we'll do 110. So that is 128 plus 64 is 192, so we'll put 192 in there for the network address.
The next is 14. So here is 14 right here. I can draw the line for this one right there, so let me make that a little bit darker. I've already used up the 110 here, so this needs to be 111 — these just start out with 111. So that is where we're starting out at. I can put zero there, and if I were to put 0 for the rest of these, I could add up 128 plus 64 plus 32, that's 224. So there's the network address for that.
And then I have just this little two here. So the two, I could go right here with it, so I'm going to draw the line right there for that one. And the rest of these are two as well, so I'm just going to draw the line all the way down for the rest of these. I've already used up the 1110 here, so the next one has to be 1111. That's the only thing that I've got left. So I could do a 00 on this first one, I could do a 01 on the next one, and a 10 on the next one after that. I'll just drop these down here. So I could actually have room for one more address down below, one more network. So if I needed one more network that just had two hosts on it, I could make that happen.
All right, so what are these? 128 plus 64 plus 32 plus 16 is 240, so we'll write in 240 there. 240 plus 4 is 244, and 240 plus 8 is 248. All right, those are all my networks.
For the broadcast address, it's just going to be if these were all ones here, 1111111. So I could either calculate it that way, or I could take the next network and subtract one, so .63. Either way, that's the answer that I'm going to get.
So .127. The next one is 191. The next one is .223. The next one is .239. The next one is 243, 247, and then this one is 252. And I can either look at the chart for this — actually it's 251, the next network is 252. So I could manually calculate that out by putting ones in there just like that.
So then, what is the ranges? I come back in here, and the first one is the address right after the network address, going to the one right below the broadcast address. So there's the range, and then I would do this for each one to fill in the rest of it. So I'm not going to bore you with filling this all out. You saw the answers and you know what the answers are.
So that's how you do this variable length subnet masking.
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 →