In my previous post, Subnetting Made Easy, Part 1, I demonstrated the way I use to find the Network Address, First Usable Address, Last Usable Address and Broadcast Address when given any IP address and subnet mask. This time I will demonstrate how this process can also be used when dealing with multiple, consecutive subnets.
To make things easier, I’ll use the same setup as last time.
As per Part 1, we found that the network address was 18.104.22.168. We also knew that we were only going to be dealing with the fourth octet as this is a /30 address. We then converted this information in to binary format and were left with this:
Now, let’s get started on the next part. To put a clear division between the Subnet Bits and the Host Bits, what I like to do is put a line between them, like this:
Now we can clearly see that the last Subnet Bit is 4. This instantly tells us that if we want to create additional, identical subnets, all of the Network Addresses are going to be 4 apart. To help me better explain what I mean, I’ll use the below table.
- N = Network Address
- First = First Usbale Address
- Last = Last Usable Address
- B/C = Broadcast Address
Once again, looking at the previous entry, we found the following information:
- Network Address: 22.214.171.124
- First Usable Address: 126.96.36.199
- Last Usable Address: 188.8.131.52
- Broadcast Address: 184.108.40.206
When inserted in to the table, it looks like this:
Now, as mentioned above, we know that the Subnets are going to be 4 bits apart. This means all we need to do is add 4 to the current network address. e.g 156 + 4 = 160. Then, to get the next network address after that, we’d do 4 + 160 = 164. And so on. Using this forumula, the table now looks like this:
Now all we need to do is some more basic maths. Using the following formulas, we can fill in the rest of the table:
- First Address = Network Address + 1
- Broadcast Address = Next Network Address – 1
- Last Address = Broadcast Address – 1
There are two things to note here. As you can see, the Last Address formula requires that you first find out what the Broadcast Address is.
The second thing to note is that the “Next Network Address” that the Broadcast Address formula is referring to is network address of the following subnet. For example, as per the table above, if we were working on the network address 220.127.116.11, we know the next network address is 18.104.22.168.
Speaking of which, let’s do that now.
Using the above formulas and the 22.214.171.124 Network Address, this is what we end up with:
- First Address = 160 + 1 = 161
- Broadcast Address = 164 – 1 = 163
- Last Address = 163 – 1 = 162
Then if we do the same with for the 126.96.36.199 subnet, this is what we’d end up with:
I’ll leave the 188.8.131.52 network blank so that you can have a try yourself.
Note: You may notice that all of the numbers are simply four higher than one another each time you go down a row. It is not advisable to just keep adding four to the numbers because while it may work in this case, if you were dealing with different subnet masks it wouldn’t, however, the formula still would.
Other Posts in this Series:
See the Subnetting Made Easy – Index post for links to all of the posts in this series.
As always, if you have any questions or have a topic that you would like me to discuss, please feel free to post a comment at the bottom of this blog entry, e-mail at email@example.com, or drop me a message on Twitter (@OzNetNerd).
Note: This website is my personal blog. The opinions expressed in this blog are my own and not those of my employer.