Options

Help with finding subs and hosts

gonXgonX Member Posts: 30 ■■□□□□□□□□
I thought I had a grasp on this asked my instructor to look at some practice questions I worked out and I'm told this is wrong can't figure out why nor understand my instructors reasoning for why....

Anyway here's the question.

Question: How many subnets and hosts per subnet can you get from the network 10.0.0.0 255.255.240.0?

10.0.0.0 - 255.0.0.0

10.0.0.0 - 255.255.240.0



Masks
11111111.00000000.00000000.00000000
11111111.11111111.11110000.00000000


Net bits on 12
Host bits on 12


Number OF Subnets possible 2x2x2x2x2x2x2x2x2x2x2x2=4096
Number OF hosts possible 2x2x2x2x2x2x2x2x2x2x2x2=4096-2= 4094

Comments

  • Options
    -DeXteR--DeXteR- Member Posts: 130
    gonX wrote: »
    I thought I had a grasp on this asked my instructor to look at some practice questions I worked out and I'm told this is wrong can't figure out why nor understand my instructors reasoning for why....

    Anyway here's the question.

    Question: How many subnets and hosts per subnet can you get from the network 10.0.0.0 255.255.240.0?

    10.0.0.0 - 255.0.0.0

    10.0.0.0 - 255.255.240.0



    Masks
    11111111.00000000.00000000.00000000
    11111111.11111111.11110000.00000000


    Net bits on 12
    Host bits on 12


    Number OF Subnets possible 2x2x2x2x2x2x2x2x2x2x2x2=4096
    Number OF hosts possible 2x2x2x2x2x2x2x2x2x2x2x2=4096-2= 4094


    There are 2^12 subnets and 2^12-2 hosts per subnet
    P.s - Sorry about that i'm also learning subnetting!! xD
  • Options
    phobophilephobophile Member Posts: 34 ■■□□□□□□□□
    gonX wrote: »
    I thought I had a grasp on this asked my instructor to look at some practice questions I worked out and I'm told this is wrong can't figure out why nor understand my instructors reasoning for why....

    Anyway here's the question.

    Question: How many subnets and hosts per subnet can you get from the network 10.0.0.0 255.255.240.0?

    10.0.0.0 - 255.0.0.0

    10.0.0.0 - 255.255.240.0



    Masks
    11111111.00000000.00000000.00000000
    11111111.11111111.11110000.00000000


    Net bits on 12
    Host bits on 12


    Number OF Subnets possible 2x2x2x2x2x2x2x2x2x2x2x2=4096
    Number OF hosts possible 2x2x2x2x2x2x2x2x2x2x2x2=4096-2= 4094


    Sorry, so the instructor said that the answer of 4096 subnets and 4094 hosts per subnet is incorrect?

    If that was your answer, then you are correct.

    The response above me is incorrect, as you do not count the first octet.

    You have 12 network bits and 12 host bits.

    2^12 = 4096 subnets.
    (2^12) - 2 = 4094 hosts per subnet (the network address and broadcast address can not be assigned to hosts)
  • Options
    -DeXteR--DeXteR- Member Posts: 130
    Chris_ wrote: »
    16 subnets each with 4094 useable hosts.

    Hey how is that 16 subnets bro icon_rolleyes.gificon_confused.gif:
  • Options
    gonXgonX Member Posts: 30 ■■□□□□□□□□
    What I put is how I worked it out the method seems to work fine for other practice questions similar to this one in class b and c from subnettingquestions.com
  • Options
    phobophilephobophile Member Posts: 34 ■■□□□□□□□□
    gonX wrote: »
    What I put is how I worked it out the method seems to work fine for other practice questions similar to this one in class b and c from subnettingquestions.com

    Yeah, you're fine. Your instructor is wrong. icon_rolleyes.gif
  • Options
    Chris_Chris_ Member Posts: 326
    Shows how easy it is to be wrong!!! I don't even look at the 10.0. Been playing with class B networks all day - my head has stamped them into my brain!!
    Going all out for Voice. Don't worry Data; I'll never forget you
    :study: CVoice [X] CIPT 1 [ ] CIPT 2 [ ] CAPPS [ ] TVOICE [ ]
  • Options
    gonXgonX Member Posts: 30 ■■□□□□□□□□
    I get confused a lot as well....My instructor thought the portion about the subnets was wrong. Thanks for the help guys
  • Options
    Ryuksapple84Ryuksapple84 Member Posts: 183
    Your answer is correct.

    255.255.240.0
    11111111.11111111.11110000.00000000

    Thus you have 12 "0" which means you have 12 bits left.

    2^n=Network
    2^12= 4096
    2^n-2=Hosts ---- 2^12-2= 4094
    Eating humble pie.
  • Options
    FuturaFutura Member Posts: 191
    I always found that 2^10=1024 was an easy one to remember. i always work it backwards or forwards from there. Works for me.:D.
  • Options
    cyberguyprcyberguypr Mod Posts: 6,928 Mod
    Futura wrote: »
    I always found that 2^10=1024 was an easy one to remember. i always work it backwards or forwards from there. Works for me.:D.

    I do the same. I use 2^6=64 and 2^10=1024. The fact that the 6 and the 10 are repeated in the result make it easy to remember.
  • Options
    hermeszdatahermeszdata Member Posts: 225
    A mask of 255.255.240.0 may also be expressed as /20 CIDR. This is a block of 16 and therefore 16 subnets, unless you are working in a no subnet zero situation. in that case it would be 14 subnets.

    12 host bits yeilds 4096-2= 4094.

    Subnets = 16 (or 14 depending subnet zero status)
    Hosts/subnet = 4094

    When calculating subnets, we normally only consider the interesting octet. in this case the 3rd. 4 bits define the mask, the balance go to hosts.

    It seems that your instructor is correct. you were only half right!
    John
    Current Progress:
    Studying:
    CCNA Security - 60%, CCNA Wireless - 80%, ROUTE - 10% (Way behind due to major Wireless Project)
    Exams Passed:
    CCNA - 640-802 - 17 Jan 2011 -- CVOICE v6 - 642-436 - 28 Feb 2011
    2011 Goals
    CCNP/CCNP:Voice
  • Options
    phobophilephobophile Member Posts: 34 ■■□□□□□□□□
    A mask of 255.255.240.0 may also be expressed as /20 CIDR. This is a block of 16 and therefore 16 subnets, unless you are working in a no subnet zero situation. in that case it would be 14 subnets.

    12 host bits yeilds 4096-2= 4094.

    Subnets = 16 (or 14 depending subnet zero status)
    Hosts/subnet = 4094

    When calculating subnets, we normally only consider the interesting octet. in this case the 3rd. 4 bits define the mask, the balance go to hosts.

    It seems that your instructor is correct. you were only half right!

    ??

    The question specified a Class A address, not a Class B address. 4096 subnets was correct.
  • Options
    -DeXteR--DeXteR- Member Posts: 130
    A mask of 255.255.240.0 may also be expressed as /20 CIDR. This is a block of 16 and therefore 16 subnets, unless you are working in a no subnet zero situation. in that case it would be 14 subnets.

    12 host bits yeilds 4096-2= 4094.

    Subnets = 16 (or 14 depending subnet zero status)
    Hosts/subnet = 4094

    When calculating subnets, we normally only consider the interesting octet. in this case the 3rd. 4 bits define the mask, the balance go to hosts.

    It seems that your instructor is correct. you were only half right!
    you toatally confused over their mate!! icon_exclaim.gif
  • Options
    Ryuksapple84Ryuksapple84 Member Posts: 183
    A mask of 255.255.240.0 may also be expressed as /20 CIDR. This is a block of 16 and therefore 16 subnets, unless you are working in a no subnet zero situation. in that case it would be 14 subnets.

    12 host bits yeilds 4096-2= 4094.

    Subnets = 16 (or 14 depending subnet zero status)
    Hosts/subnet = 4094

    When calculating subnets, we normally only consider the interesting octet. in this case the 3rd. 4 bits define the mask, the balance go to hosts.

    It seems that your instructor is correct. you were only half right!

    Whaaaa??????
    Eating humble pie.
  • Options
    gonXgonX Member Posts: 30 ■■□□□□□□□□
    Can someone check me on this. Its the way we where shown to do subnetting in cisco 1 but its been awhile.

    subso.jpg

    Uploaded with ImageShack.us
  • Options
    okplayaokplaya Member Posts: 199
    A mask of 255.255.255.224 allows for 30 hosts.

    A mask of 255.255.255.128 allows for 126 hosts
  • Options
    gonXgonX Member Posts: 30 ■■□□□□□□□□
    Ok thanks I can see how in binary with mask comparison.

    11111111.11111111.00000000.00000000
    11111111.11111111.11111111.10000000
  • Options
    hermeszdatahermeszdata Member Posts: 225
    A mask of 255.255.240.0 may also be expressed as /20 CIDR. This is a block of 16 and therefore 16 subnets, unless you are working in a no subnet zero situation. in that case it would be 14 subnets.

    12 host bits yeilds 4096-2= 4094.

    Subnets = 16 (or 14 depending subnet zero status)
    Hosts/subnet = 4094

    When calculating subnets, we normally only consider the interesting octet. in this case the 3rd. 4 bits define the mask, the balance go to hosts.

    It seems that your instructor is correct. you were only half right!

    OK guys, I stand corrected ... in part. I had 5 thiings going on at once and failed to give the balance of the shortcut I use to find subnets.

    As mentioned before, I use the /* notation (CIDR) which defines the number of mask bits.

    In the case of the problem originally stated, a mask of 255.255.240.0 contains 20 mask bits (8 because of the Class A network, the remaining 12 defining the subnet portion) and 12 host bits.

    We may all agree that the number of hosts are 4094 (4096 less the network/subnet and broadcast addresses)

    When we look at the interesting octet, *.*.240.* the bit pattern is 11110000. The first 4 bits when totaled gives us the block size I referred to above which is 16. (Had this been the last octet we would use this to give us the range of total addresses within the subnet subtracting 2 to end with the usable address of 14)

    Still looking at the interesting octet, the subnet numbers in that octet would be:
    0, 16, 32, ... 224, 240 giving us a total of 16 subnets within that octet.

    Now, moving to the 2nd octet, because the mask portion in this octet is 255 or 11111111 (binary) we know that the range of subnet numbers is between 0 and 255 or a total of 2^8 or 256 subnet numbers.

    We also know that 10.*.*.* is the classful network number so that must stay the same so I basically ignore it.

    I hated binary math since in college studying engineering in the mid 1970's. If we were allowed to use calculators with y^x capability during the exam it would be no problem but we can't.

    So, I needed to find a way to do calculate total subnets without having to do the 2x2x2x2x2x2...2x routine. While sitting here staring at a problem it finally sunk into my thick skull how very simple the math was!

    Multiply the decimal numbers contained within the subnet mask ignoring any octet(s) defining a classful network (or assigning them a value of 1) and the host portion of the mask (anything that is 0)!

    For this problem the equation becomes:
    1+(Octet2value)x Octet3BlockSize = total number of subnets

    (1+255) x 16 = 4096!

    Once you understand the /* notation, the resulting block size for any given interesting octet, and can remember the relational equivilents i.e. 240 = block of 16, calculating total subnets is easy. Also, you will notice that you may use the same process for calculating the range of hosts within a subnet!

    Back to the original problem. There are 2 correct answers to the number of hosts. The correct answer will depend, as I mentioned in my first post, whether ip subnet-zero is in effect. If it is, all subnets are usable! If not (the command no ip subnet-zero was issued on the router) you treat the range of subnets just as you do for the range of hosts, subtracting 2 from the answer becuase the all 0's and all 1's or 0 and 255 subnets are considered reserved.

    no ip subnet-zero answer = 4094
    ip subnet-zero answer = 4096

    This is one thing to watch and be careful of on the exam.

    Hopes this helpes and sorry for the original ommissions.
    John
    Current Progress:
    Studying:
    CCNA Security - 60%, CCNA Wireless - 80%, ROUTE - 10% (Way behind due to major Wireless Project)
    Exams Passed:
    CCNA - 640-802 - 17 Jan 2011 -- CVOICE v6 - 642-436 - 28 Feb 2011
    2011 Goals
    CCNP/CCNP:Voice
Sign In or Register to comment.