geekvenue.net

Welcome to Chucktips HELP WITH DEAD OS Hardware Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


HOWTO: Understand Binary and Subnetting
Networking and Connectivity Posted by Jason on Sunday May 26, @12:44PM
from the 01100111 dept.

Important Note: This article has been UPDATED. PLEASE CLICK HERE for the new article.

If you have ever wondered why a TCP/IP address such as the class C address 192.168.1.0/255.255.255.0 can also be written as 192.168.1.0/24, then read on and I will explain it to you!

In this post I will try to dispel the mystery of binary (otherwise known as base 2) and explain why it is important in subnetting. Learning it is not very complicated, and it's very good information to know.


<  |  >

 

Related Links
  • Articles on Networking and Connectivity
  • Also by Jason
  • Contact author
  • ThinkGeek

    Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    Over 10 comments listed. Printing out index only.
    Re: HOWTO: Understand Binary and Subnetting
    by air1 on Tuesday May 28, @02:27PM
    Congratulations for this excellent explanation, I hardly ever come accross something this concise.

    I hope to see more of that soon, more on TCP/IP.
    By the way is there a straightforward way to determine one's mask address from his IP address?

    Just want to look up some of the guys port scanning my box.


    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Scott on Friday June 14, @05:16PM
    Nice way to explain it. It's very rare that people break things down properly. Usually in between there are examples the complex the matters and don't really provide real examples. YOUR'S DID! I'm still waiting for books to be published in this manner. I liked the color coded correlation between items of reference. nice. Thanks.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Lou M on Monday June 17, @01:46PM
    This is an excellent explanation of a subject that confounds many new and novice Sys Admins. What I am wondering about though is:

    The host addresses will fall between the network numbers, so we will have 30 hosts per network. You're probably wondering why it's not 31? The answer is that the last address of each subnet is used as the broadcast address for that subnet.

    So if I understand this correctly by creating a subnet mask of 255.255.255.224 I haven't limited myself to 32 IP adresses (which is what I always thought.)

    So what have I done? I have created several 30 IP networks?
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by MIke Fulwell on Friday September 13, @05:23AM
    Brilliant. Clearly explained something that I was never quite sure about. Thanks.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Mantis 2k on Wednesday October 16, @09:59PM
    So for the /27 subnet, why couldn't you add a 7th network of: 192.168.1.224 Recently I received this very network and subnet for use on my network by my ISP. Thanks!
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Louis on Monday October 21, @09:24AM
    Jason,
    Thank you so much for this post!!! I am in a MCSA/MCSE class where the teacher blistered over this topic. I left with my head spinning. Your explanations are clear, concise and most important, effective. I would take a class from you any day and twice on Sundays.
    Thanks Again,
    Louis
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Louis on Monday October 21, @09:32AM
    Jason,
    Thank you so much for this post!!! I am in a MCSA/MCSE class where the teacher blistered over this topic. I left with my head spinning. Your explanations are clear, concise and most important, effective. I would take a class from you any day and twice on Sundays.
    Thanks Again,
    Louis
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Don on Tuesday October 22, @04:12AM
    I think there is a flaw in your explanation. I don't think you should deduct 2 from the number of possible subnets. It should be deducted from the number of hosts (network ID and broadcast address) Take for example a subnet of 255.255.192.0 with network 10.101.192.0. You have 2 bits in the third octet for the network ID. Using your rule there should be (2x2-2=2) network ID's (64 and 128). So there should be the following networks: 10.101.64.0 through 10.101.127.254 and 10.101.128.0 through 10.101.191.254 What about 10.101.0.0 through 10.101.63.254 and 10.101.192.0 through 10.101.255.254? What do you think?
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Dearld Sanders on Friday December 06, @07:57AM
    I am taking a Cisco Routing class and we are doing subnetting I understand how to obtain the number of subnets and host per subnet but customizing a subnet mask is confusing. Help!! I need some clarity. Thanks in advance, Dearld Here is an example of a problem: Required Number of Subnet Segments: 16 Maximum Number of Hosts/Physical Segment: 1,500 Network Address: 128.199.0.0 Figure out the following: Proposed Custom Subnet Mask: Number of Subnets Supported: Maximum Number of Host ID per Subnet: Another example for a Class A Required Number of Physical Segment: 10 Maximum Number of Hosts/Physical Segment: 750,0000 Network Address: 12.0.0.0 Figure out the following: Proposed Custom Subnet Mask: Number of Subnets Supported: Maximum Number of Host ID per Subnet:
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Olof Krantz on Wednesday January 15, @10:14AM
    Thank you, I have now learned how to use binary, didn't understand that before.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Satish Halemani on Sunday January 26, @06:16AM
    Simply the best site where all my IP Addressing & Subnetting problems since last 1 year were solved within 1 hour of reading the contents.Thanks a Lot.Will certainly recommend it to all my friends.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Penile Torment on Wednesday January 29, @10:16AM
    Thank you so much. I was losing my BLEEPing mind looking for sombody to write an UNDERSTANDABLE explanation of how to work this out. All anybody ever wants to talk about is how they know more than you and bling bling. Well BLEEP THAT, I don't care I just want to comprehend and get on with my life. Thanks for not bieng an asshole.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by tony kurian on Friday May 23, @10:25PM
    I spinned my head to understand subneting. No esy way out. All websites did not kneel down this much to make a confused mind undertsnd. Thanx the one who explained it. Now i feel i should teach 10 more ppl this.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Miguel on Friday May 30, @02:07AM
    After searching for a long time finally someone explain it in English! Thanks Jason. Well done!
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Miguel on Friday May 30, @02:07AM
    After searching for a long time finally someone explain it in English! Thanks Jason. Well done!
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by DJ_SA on Wednesday July 09, @03:56PM
    Hi everyone out there, Thanx first for the author for writing such an understandable guide... However, I am still not clear about the -2 part in 2^n-2. I can understand -2 basically means to eliminate the first portion of the subnet (e.g. AAA.BBB.CCC.0~) and last portion (e.g. ~AAA.BBB.CCC.254)... but why elinate those two parts of the class? is it not usable? Thanx!
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by venkat on Saturday July 19, @02:04AM
    Well i understood your Binary Calculation and what you wanted to explain but this gives rise to few more questions to my mind. Your example with subnet 255.255.255.240 Your math is understood that i will have 14 sub networks starting from 192.168.1.16 192.168.1.32 192.168.1.48 192.168.1.64 192.168.1.80 192.168.1.96 192.168.1.112 192.168.1.128 192.168.1.144 192.168.1.160 192.168.1.176 192.168.1.192 192.168.1.208 192.168.1.224 this means if i use Address Range: 205.112.10.17 through 205.112.10.30 the subnet will be 255.255.255.240 ? again for Address Range 205.112.10.33 through 205.112.10.46 the subnet will be 255.255.255.240 is it so?
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by arun verma on Sunday August 24, @10:09AM
    Jason, Your notes were excellent, they really made me understand the basics of subnetting. Thank you so much for the great notes. I am planning on doing my CCNA , could you please give me any notes you may have , I would greatly appreciate it. Thanks arun
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by micah on Wednesday September 10, @10:57PM
    Dude I was so confused with binary and that cleared everything up it is by Far THE BEST explanation of Binary I have ever heard you are Awesome. Thanks a Bunch.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Sarwat on Wednesday September 10, @11:22PM
    Thanks Jason!! Thank you for explaining it in such a simple, easy-to-understand style. Hope to have more such posts from you.
    Sarwat
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Loretta on Sunday September 14, @01:34PM
    I just want to thank you for putting this out. I was having problem subnetting. This was so much easier on my brain. I kept getting stuck at one point. Keep up the training to other people. Thank you for your brain :) Loretta
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Doris L. on Wednesday October 08, @10:22AM
    This is great! I can honestly say, I really understand. Now I can move forward on my home assignment. Thank you!
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Jesse on Monday October 27, @07:32PM
    Hi there, Iam just wondering why in a class C network the first and last subnets are not used. Making only six subnets, even though there are 8. In your article you say that you cant count all 1s or all 0s. So are you really saying that these whole subnets are usless because you cant supply a network address for the first subnet and you cant supply a broadcast address for the last subnet? Am i on the right track. ? It seems like a huge waste of address space. Is there a way that you can use this 2 subnets? I have heard that this may be possible through super subnetting. Am i on the track ? Great article by the way, helped heaps. Thanks Jesse
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Renegatu on Friday December 12, @06:03AM
    I have to congratulate you for this article ...
    it helped me very much ...

    Thank you, again...
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Jase on Wednesday December 17, @07:21PM
    OMG!!! YOU ARE A GENIUS!!!, If I knew where you lived I would buy you a hooker and a keg (if thats what ya wanted) For the first time in years I finally got subnetting! THANK YOU!
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Allen on Tuesday January 13, @11:28AM
    This is the best I have ever seen explaining subneting. Finally I get it. Thanks :-)
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by shashi on Sunday January 18, @08:41PM
    hello mate ur document is very nice i was so confused about subnetting but now i got it atleast C class. can u do a favour for me, can u send all classes subnetting document like this way u made this document. plz get back me soon. thanx.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by John on Sunday January 25, @02:33AM
    google search: understand binary wowzorz, you've enlightend a newbie. Everyone needs to send you a dollar. Thanks for the info I lub teh www. john
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Sehbaz on Wednesday February 04, @07:53AM
    Can anyone help answer these questions and how they got em. Thanks. 1) XYZ Company has a Class B address, 190.85 and uses the 3rd byte for the Subnet ID. (All 0s subnet not allowed) a. What is the maximum # of subnets on this network? ________ b. What is the maximum # of hosts on each subnet? __________ c. For the first subnet on the network: i. What is the network ID? ____________________________ ii. What is the broadcast ID? ____________________________ iii. What is the range of host IDs? ____________________________________________ 2) Instead of using one byte, Smith company decides to use ten bits for the Subnet ID. (All 0s subnet not allowed) a. What is the maximum # of subnets on this network? ________ b. What is the maximum # of hosts on each subnet? __________ c. For the first subnet on the network: i. What is the network ID? ____________________________ ii. What is the broadcast ID? ____________________________ iii. What is the range of host IDs? ____________________________________________
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Ranjith Udayshankar on Friday February 06, @11:32AM
    Hi.. My name is Ranjith.Your information about subnetting was really excellent.My best wishes to you guys........... Ranjith
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by luc on Wednesday April 07, @11:27AM
    Excellent tutorial! You could make a great teacher.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Gijs on Thursday June 10, @03:09AM
    hey man, this you explain this better than my ciscoteacher :)
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Raul Santana on Friday June 25, @07:44PM
    Your tutorial is absolutely excellent. I have been trying to understand this concept through other readings. Some writers like to complicate concepts to prove themselves to nobody. You did a wonderful job. I understood the concept in a very simple and straightforward way. You are a teacher. Thanks... Raul
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Numpty on Monday June 28, @03:34AM
    Dude...you saved my career...I'm studying my MCSE and damn near packed it in because I couldn't get my head around Binary... Paid $10K Australian to learn this stuff and didn't get it...and I go to the web and u've explained it for free...pure genious.... IT should have more layman explanations...or at least a link that says "Please put this geek speak into english for me..."
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by Graham on Saturday July 24, @11:29PM
    Great post. Very helpfull at last i now understand binary & subnetting a lot more. Thanks for your time.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by John on Sunday April 03, @09:32PM
    lots of thanks to you.
    [ Add a Reply to this ]
    Re: HOWTO: Understand Binary and Subnetting
    by pmrussell892 on Tuesday October 25, @09:33PM
    WOW! That was great, I have tried reading up on that from other tutorials and just end up with. HUUH!! After reading your tut here i can now read binary numbering AND understand subnetting Thanx Bunches
    [ Add a Reply to this ]

     
    The Fine Print: The following comments are owned by whoever posted them.
    ( Article Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]