IP subnet masking

Sous

Donating Member
Registered
I am currently taking a Network + course in an effort to get a certification with Comp TIA before the end of the year.

I am struggling with IP subnet masking and was hoping that some one could share a trick, or a way that they figured it out to make it a little easier for me. I have been all over the net reading about it on subnet for dummies, and other sites like that, but still cannot get it.

If you are good at subnet masking, provide some advice or a source that made it easier for you.

Thanks :beerchug:
 
I'm not sure if there's any easy way to remember it than to just do several different scenarios over and over again like a math problem to get the hang of it. It was a PITA for me too. I had to take the TCP/IP test twice for my MCSE back in the day, so I made sure I didn't miss anything else so I'd have some leeway on the subnetting section. They're calculators for that s**t in the real world.
Online IP Subnet Calculator

This may help give you some different scenarios and how they worked through the addressing.
IP addresses and Subnetting

Good luck!
 
Ip subnetting is a big topic, anything specifically your having problems with? Binary to hex? Classes?

I bet zookracer is a champ at subnets being the cisco guy he is...
 
I agree with Cap, if you can be a little more specific, it looks like there is a lot of help for you.

I used to be a network engineer, but now it seems that all I do is SharePoint development...
 
I used to teach the Network+ course...but that was 10 years ago. LOL Brian (Zukracer) would probably be a little more current on it. I don't do much design anymore...

Like the others said - can you be more specific with what you're needing?
 
there are 10 types of people that understand subnetting/binary/hex..... those who do and those who dont.....

haha ok small binary joke....

now to the real meat, ipv4 is on its way out the door and ipv6 is upon us, not saying that v4 is a waste of time, but if you think v4 is tough, look into v6......

what is it that you want to know about subnetting? the basic question is a little broad....
 
there are 10 types of people that understand subnetting/binary/hex..... those who do and those who dont.....

haha ok small binary joke....

now to the real meat, ipv4 is on its way out the door and ipv6 is upon us, not saying that v4 is a waste of time, but if you think v4 is tough, look into v6......

what is it that you want to know about subnetting? the basic question is a little broad....

there are 10 types of people that understand subnetting/binary/hex

BAAAAAWAAAAAAHAHAHAAHAHHAHAHAHHAHA I get it I get it
 
I love that Binary joke.. its priceless and ever funnier when you find someone who doesn't get it.(Seeing their expressions that is)

I do alot with subnets at work right now.. Let me know what you are having a hard time with and ill help you out the best I know how.

I am sure like others have stated Zook would be a good person to pick their brain also.
 
now to the real meat, ipv4 is on its way out the door and ipv6 is upon us, not saying that v4 is a waste of time, but if you think v4 is tough, look into v6......

what is it that you want to know about subnetting? the basic question is a little broad....

I don't agree on your viewpoint that IPV4 is on the way out the door, yes I have read the pieces proclaiming how we're about to run out of IPV4 IP addresses soon, but I have been hearing that for 5 years now. It will come sometime, but it's going to be a while still. I just ordered a bonded T1 at one of my locations and asked Time Warner Telecom for 32 static IPs and they didn't even query with me, just asked that I fill out the standard justification form.

Sous: Is it the binary math or the function of subnetting that you are having trouble with?

Take a look at this free utility, I have used versions of it for years and it helps in visualizing what's changing as you change parameters.
 
Thanks for all the responses, I apologize for being too broad on my question. I posted this last night before I headed to bed in frustration.

I am actually sitting in the Network + classroom right now on a short break, so I will make this more to the point. I am having trouble with the custom subnetting dealing with the 248, 240, 224, etc. I have researched a few different ways of getting to the solution of number of hosts, what class, etc, but I still come up short on the overall view of it.

I understand there are calculators for this stuff now, and that IPv6 is going to take over soon, but that does not help me with my certifications before the end of the year. I am picking up all the other theory and knowledge about Net +, I am stuck with subnet masking.

I know that you base your mask off of how many networks you require to ensure speed and reliability of the collision domains. Then I think you set your private IP based on how many hosts you require in the domains. After that, I get confused in the numbers and equations.
 
Hey. About 5 months ago on another forum, someone had taken a test and part of his test was to setup a network based on certain information. I typed up a pretty lengthy explanation since he seemed to have trouble with the basics still and I haven't heard back since, so I really can't tell if it helped or not and on top of that, I don't even know if what I typed was right! It seems like you're more familiar with networking than he was but, I'll just copy and paste what I typed out for him and maybe something in it will help. I tend to make things harder than it seems so, if that's the case, just overlook what I type. Oh yea and one last thing, I'm also in the learning process as well, so for anyone who knows about this stuff and spots some misinformation in my post, please let me know :thumbsup:


Here is what he was having trouble with:

From the following IP address fill in the table.

10.11.12.13

Subnet mask?
Network bits?
Subnet Bits = 5
Network address?
Broad cast address?
Network range?
Number of addresses?
Host bits?
Host range?
Default gateway?

And here was my response:

Ok they have given us the IP address which is: 10.11.12.13

Next. At first glance, it just looks like all we have is an IP address but, they provided the subnet for us. The subnet has 5 bits. The IP address is a class A network (look at the bottom for a reference) which is 10.0.0.0 | 255.0.0.0 or 11111111.00000000.00000000.00000000. Since the subnet has 5 bits, that would make it 255.248.0.0 or 11111111.11111000.00000000.00000000 (I underlined the 5 bits that were added. Also scroll to the bottom for a quick review on binary). So now we have our subnet mask. Now to find out what the network address is, we can do a couple things. We can just subtract 248 (255.248.0.0) from 256 which = 8 or you can do that ANDing process where you take the IP address and subnet in binary form and you stack them on top of each other and wherever there is a matching 1, you copy that down as a 1. Anything else would equal a 0. For example:

10.11.12.13 = 00001010.00001011.00001100.00001101
255.248.0.0 = 11111111.11111000.00000000.00000000
_______________________________________________
10.8.0.0 .....= 00001010.00001000.00000000.00000000

Here are the network ranges:

10.0.0.0 - 10.7.255.255
10.8.0.0 - 10.15.255.255
10.16.0.0 - 10.23.255.255
10.24.0.0 - 10.31.255.255
etc...

If you notice, there is a pattern. They are going up by 8 (the number we got earlier). Since the network on the exam is 10.11.12.13, there is only 1 network from that list that fits this, which is: 10.8.0.0. (we already know this from earlier)

Blue = Network bits
Red = Subnet bits
Green = Host bits

11111111.11111000.00000000.00000000 (8 network bits, 5 subnet bits, 19 host bits = 32 bits, which is what an IP (version 4) is made up of)

Subnet mask = 255.248.0.0
Subnet Bits = 5
Network bits = 8
Network address = 10.8.0.0
Broad cast address = 10.15.255.255
Network range = 10.8.0.0 - 10.15.255.255

Number of addresses = 524288 (we get that by doing: 2^19. Remember that the 0's represent host address. Since there are 19 0's, we do 2^19.)

Host bits = 19
Host range? 10.8.0.1 - 10.15.255.254 (We can't use the first and last IP address in the network. 10.8.0.0 and 10.15.255.255)

Default gateway = Anything between 10.8.0.1 - 10.15.255.254 (as long as it is not being used)









If you aren't familiar with the binary, here is how I got the values. Remember how an IP address is setup:

128|64|32|16|8|4|2|1 . 128|64|32|16|8|4|2|1 . 128|64|32|16|8|4|2|1 . 128|64|32|16|8|4|2|1


In binary, which ever slot has a 1 in it, then you take that value and add it with any other value within the same octet. For example:

10.8.0.0 | 00001010.00001011.00000000.00000000

10 = 00001010 (There is a 1 in the 8 and 2 slot so you add that and it makes 10)
8 = 00001000 (just an 8. No addition needed)
0 = 00000000 (no 1's)
0 = 00000000 (no 1's)

Another example: 192.168.1.1 | 11000000.1010100.00000001.00000001

192 = 11000000 (128 + 64 = 192)
168 = 10101000 (128 + 32 + 8 = 168)
1 = 00000001 (No addition needed)
1 = 00000001 (No addition needed)





_________________________
Class A
0.0.0.0 - 127.255.255.255

Class B
128.0.0.0 - 191.255.255.255

Class C
192.0.0.0 - 223.255.255.255
_________________________
 
Regardless if IPV4 is out the door, he is trying to pass the Network+ cert. It hasnt changed in years. I taught it for 5 or more years over 10 years ago. Subnetting and or supernetting is still a very relevent skill for inTRAnets.
 
Big thanks to all that help out with a bit of advice. I managed to pass my Net+ certification yesterday and start my A+ certification course on Monday.

Then onto Security+ in December to get them knocked out before the end of the year when CompTIA changes the rules.
 
Big thanks to all that help out with a bit of advice. I managed to pass my Net+ certification yesterday and start my A+ certification course on Monday.

Then onto Security+ in December to get them knocked out before the end of the year when CompTIA changes the rules.

Great job, man since I stopped having to this I totally forgot how, guess it's true if you don't use it you loose it, the calculators make it so quick and easy. I use to just look at it and figure it out now I can't even remember the masks for short hand like a /27 network which would be 255.255.255.224.:banghead:
 
Just go straight for the CCNA if you have the option. From what I have seen, it will be worth more in the industry.
 
I will obtain a CCNA as well, it is just the CompTIA certifications that will need to be retested every 3 years starting in January. If I complete them before the end of the year though, they are good for life.

CCNA and a whole list of others are lined up for first half of next year.
 
Back
Top