Subnetting in Binary


(Rene Molenaar) #1

This topic is to discuss the following lesson:


(Srinivasan C) #2

Hi Rene,
Very Good article for Beginners.

Thanks,
Srini


(Sirui J) #3

Hi,
Under Class A subnetting section, the subnet mask should be 255.240.0.0 instead of 255.0.0.0.
Typo I guess.


(Rene Molenaar) #4

Hi Sirui,

I just glanced over it but couldn’t find that 225.0.0.0, where do you see it? :slight_smile:

Rene


(Mohammad T) #5

 

networklessons and Rene Molenaar = wonderful


(George W) #6

Hello Rene, This is great work that you are doing and even if I find it difficult to grasp the concept, I have a feeling that something is happening to my understanding :). Your examples are clear to a point but when I try using my own values, ie other addresses I get lost rather fast :(.

For instance, I have the following address: 120.48.7.104 and 255.255.255.248. I am required to find out 1. Network address. 2.first and last usable addresses and the broadcast address. I figured out that the first address must be the following: 120.48.7.103 and 120.4.7.104 as the network address since it is the first address and that is reserved for the network.

However I am unable or got stuck trying to figure out the broadcast address since it’s the last address is unclear to me. Please let me know how to deal with this issue. Again, thanks for the good work you are doing for hundreds of newbies like me who’d have it rather rough without your help. George


(Rene Molenaar) #7

Hi George,

Let’s walk through this example together, that might help…

First we need to figure out the network address and to do that, we need to take a close look at the subnet mask:

255.255.255.248

The subnet mask defines how large each subnet is. You can do this in binary but I’ll use decimal since it’s faster. A quick method is to take the number 256 minus the subnet mask. We are looking at the 4th octet so that’s 248:

256 - 248 = 8

We now know that each subnet has 8 addresses. Let’s start counting from 0 to show you how it works:

Subnet #1 120.48.7.0
Subnet #2 120.48.7.8
Subnet #3 120.48.7.16
Subnet #4 120.48.7.24
Subnet #5 120.48.7.32
etc.

These are all “steps” of 8 addresses. If you keep counting then you’ll end up at the subnet where you 120.48.7.104 address belongs to:

Subnet: 120.48.7.104
Subnet: 120.48.7.112
Subnet: 120.48.7.120

As you can see, your 120.48.7.104 is a network address. The next subnet starts with 120.48.7.112.

Finding the broadcast address is easy now, it’s the last address in the subnet: 120.48.7.111.

Finding the first and last usable host addresses is also easy now…the first address is 120.48.7.105 and the last one is 120.48.7.110 (one before the broadcast address).

Does this help?

Rene


(Ali S) #8

Hi Rene,

You are doing a good Job. I wanted to ask, in your example you have said 120.48.7.104 is the first address for that block? I thought .104 is the network and the first usable address will start from 105? If you could clarify that for me. Thanks


(Andrew P) #9

Ali,
You are correct, and I have corrected the error. Nice catch.


(umer b) #10

Hi Rene,

First of all, I would like to give you a massive thanks for creating this article in such a professional and simplified way. Although, your article covers everything, it would be awesome if you created a video where you actually did step by step subnetting :slight_smile:

You are by far the best instructor I have found on the internet ^^


(Rene Molenaar) #11

Thanks for your kind words Umer! I’ll see if I can add some videos for subnetting.