Options

Subnetting Made Easy

1246717

Comments

  • Options
    SpoonroomSpoonroom Member Posts: 33 ■■□□□□□□□□
    gandalph wrote: »
    Third octect would look like this

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


    11110000 = 240

    So how do you get to that?
  • Options
    miller811miller811 Member Posts: 897
    Spoonroom wrote: »
    Ok, I'm still having problems with these type of questions, where they give an ip and subnet mask, and ask for the host etc. It's been answered before, but I still don't get it.

    Originally Posted by Nzastudios
    What is the first valid host on the subnetwork that the node 10.5.178.10 255.255.240.0 belongs to?
    Answer: 10.5.176.1


    How does 240 mean that you're borrowing the first 4 bits of the third octet???

    the easiest way to figure those out is to do the following


    determine the interesting octet. (the non 255. one)
    in this case it is the third octet, which is 240
    each octet totals 256 (0-255)
    so 256-240 = 16
    your block size is 16.

    so with the address 10.5.178.10 you would start with the non interesting octets (255.255.0.0)
    10.5.x.x
    since your block size is 16 you would apply it to the base
    10.5.0.0
    10.5.16.0
    10.5.32.0
    10.5.48.0
    10.5.64.0
    10.5.80.0
    10.5.96.0
    10.5.112.0
    10.5.128.0
    10.5.144.0
    10.5.160.0
    10.5.176.0 (winner winner chicken dinner)
    10.5.192.0

    now you have determined the subnet it belongs in. the next ip address 10.5.176.1 is the first available host

    the broadcast address is easily determined by taking the next subnet (10.5.192.0) and subtracting 1 = 10.5.191.255

    the last available host would be one address below the broadcast
    10.5.191.255 - 1 = 10.5.191.254

    hope that helps
    I don't claim to be an expert, but I sure would like to become one someday.

    Quest for 11K pages read in 2011
    Page Count total to date - 1283
  • Options
    SpoonroomSpoonroom Member Posts: 33 ■■□□□□□□□□
    miller811 wrote: »
    the easiest way to figure those out is to do the following


    determine the interesting octet. (the non 255. one)
    in this case it is the third octet, which is 240
    each octet totals 256 (0-255)
    so 256-240 = 16
    your block size is 16.

    so with the address 10.5.178.10 you would start with the non interesting octets (255.255.0.0)
    10.5.x.x
    since your block size is 16 you would apply it to the base
    10.5.0.0
    10.5.16.0
    10.5.32.0
    10.5.48.0
    10.5.64.0
    10.5.80.0
    10.5.96.0
    10.5.112.0
    10.5.128.0
    10.5.144.0
    10.5.160.0
    10.5.176.0 (winner winner chicken dinner)
    10.5.192.0

    now you have determined the subnet it belongs in. the next ip address 10.5.176.1 is the first available host

    the broadcast address is easily determined by taking the next subnet (10.5.192.0) and subtracting 1 = 10.5.191.255

    the last available host would be one address below the broadcast
    10.5.191.255 - 1 = 10.5.191.254

    hope that helps

    This made absolutely no sense when I read through it the first time, but then I tried another example, and it worked!

    This is so cool! :)

    Thx for the help, lemme go try some more examples...
  • Options
    Cisco InfernoCisco Inferno Member Posts: 1,034 ■■■■■■□□□□
    Could anyone seem to help me with these type of problems? i have no clue how to start. every other question takes me 4 seconds.
    heres an example.
    thanks


    Question: How many subnets and hosts per subnet can you get from the network 172.19.0.0/28?
    Answer: 4096 subnets and 14 hosts
    2019 Goals
    CompTIA Linux+
    [ ] Bachelor's Degree
  • Options
    miller811miller811 Member Posts: 897
    Could anyone seem to help me with these type of problems? i have no clue how to start. every other question takes me 4 seconds.
    heres an example.
    thanks


    Question: How many subnets and hosts per subnet can you get from the network 172.19.0.0/28?
    Answer: 4096 subnets and 14 hosts

    this is fairly easy to do. It is all based on the powers of 2....
    see the chart below.

    1 - 2
    2 - 4
    3 - 8
    4 - 16
    5 - 32
    6 - 64
    7 - 128
    8 - 256
    9 - 512
    10 - 1024
    11 - 2048
    12 - 4096
    13 - 8192
    14 - 16384
    15 - 32768
    16 - 65536

    So in your example the address given is a class B address. So under normal circumstances it is using a 16 bit mask. 255.255.0.0
    In this example it is borrowing 12 of the possible bits for the subnets, and 4 bits for hosts.

    so 2 to the 12 = 4096 = to the number of subnets
    and then 4 bits are used for the number of hosts 2 to the 4 or 16... but you need to subtract 2 bits, one for the network address and one for the broadcast on each of the 4096 subnets......

    Hope that helps.
    I don't claim to be an expert, but I sure would like to become one someday.

    Quest for 11K pages read in 2011
    Page Count total to date - 1283
  • Options
    Cisco InfernoCisco Inferno Member Posts: 1,034 ■■■■■■□□□□
    miller811 wrote: »
    this is fairly easy to do. It is all based on the powers of 2....
    see the chart below.

    1 - 2
    2 - 4
    3 - 8
    4 - 16
    5 - 32
    6 - 64
    7 - 128
    8 - 256
    9 - 512
    10 - 1024
    11 - 2048
    12 - 4096
    13 - 8192
    14 - 16384
    15 - 32768
    16 - 65536

    So in your example the address given is a class B address. So under normal circumstances it is using a 16 bit mask. 255.255.0.0
    In this example it is borrowing 12 of the possible bits for the subnets, and 4 bits for hosts.

    so 2 to the 12 = 4096 = to the number of subnets
    and then 4 bits are used for the number of hosts 2 to the 4 or 16... but you need to subtract 2 bits, one for the network address and one for the broadcast on each of the 4096 subnets......

    Hope that helps.
    aha the key is to use the additional bits on top of already using 255.255.0.0!

    thanks. basically lammle's method learned in 30 seconds of reading this post instead of 3 days on a page :)icon_thumright.gif
    2019 Goals
    CompTIA Linux+
    [ ] Bachelor's Degree
  • Options
    sthompson86sthompson86 Member Posts: 370
    Thanks for this post. I agree with the poster above, out of all the ways I have learned sub netting this week, this way is by far the fastest.

    I am horrible at math well not horrible, I just do not trust my self doing it in my head, so the less processes I have to do for sub netting the better, for I always write everything out.
    Currently Reading: Again to Carthage - CCNA/Security
  • Options
    Jas21Jas21 Member Posts: 51 ■■□□□□□□□□
    Hi

    I joined to say thanks for this method - it has started to come together for me after struggling with subnetting using other methods for ages - (even Jeremy's CBT Nuggets method)

    However, I am still struggling with these types of questions:

    Question: You are designing a subnet mask for the 172.27.0.0 network. You want 30 subnets with up to 2000 hosts on each subnet. What subnet mask should you use?

    Answer: 255.255.248.0


    Is there an easy way of quickly knowing what mask(s) give you number of networks and hosts?

    I also have problems subnetting in the 3rd octet when it's a class B address - this gets me every time - class C I have no problems with! For example:

    Question: What is the last valid host on the subnetwork 10.194.176.0 255.255.240.0?

    Answer: 10.194.191.254


    Thanks again - great method and resource - Jason

    EDIT - Actually I worked both these out from post#6 on this thread! I am buzzing!! :)
  • Options
    mattaumattau Member Posts: 218
    hi Jas. This guy helped me alot with how he does it. he uses a system called the magic number.

    basically all you have to do is find the magic number and its all easy from there.
    you should watch a have of his subnetting vids

    YouTube - danscourses's Channel

    What is the last valid host on the subnetwork 10.194.176.0 255.255.240.0?

    the "important octet is the third octet as it is something other than 255.

    what number bit is 240 ? it is the number 16 bit :) thats your magic number!

    so youre only interested in counting up in 16's in the THIRD octet.

    in this case you can just say to yourself. 10 x 16 is 160. 160 + 16 is 176 + another 16 = 192

    the subnet range is therefor 176 - 192

    host range 177 - 191.254 with the broadcast being 191.255
    _____________________________________
    CCNP ROUTE - passed 20/3/12
    CCNP SWITCH - passed 25/10/12
    CCNP TSHOOT - passed 11/12/12




  • Options
    mattaumattau Member Posts: 218
    same thing for this to

    You are designing a subnet mask for the 172.27.0.0 network. You want 30 subnets with up to 2000 hosts on each subnet. What subnet mask should you use?

    subnets you take the left bits and hosts are the right most bits

    11111111 1111111 0000000 0000000 etc

    you know if you want 30 subnets your closest option is the 32 bit as the next 1 up is 64 and that is to many.

    just write out the third octet of zeros and treat each zero as 2 and go
    0 x 0 = 4 x 0 = 8 x 0 = 16 x = 32

    how many bits is that ? 6 bits from the left which is

    255.255.248.0

    as you borrowed 6 to the power of 2 bits in the THIRD octet :)

    you will pick it up so quick in the vids trust me
    _____________________________________
    CCNP ROUTE - passed 20/3/12
    CCNP SWITCH - passed 25/10/12
    CCNP TSHOOT - passed 11/12/12




  • Options
    Jas21Jas21 Member Posts: 51 ■■□□□□□□□□
    Mattau - thanks for your replies and link - thanks for taking the time

    Jason
  • Options
    veritas_libertasveritas_libertas Member Posts: 5,746 ■■■■■■■■■■
    I'm thankful for this thread. I've read many ways of doing subnetting and this the only one that makes it really simple for me to understand. :)
  • Options
    CompUBugCompUBug Member Posts: 46 ■■□□□□□□□□
    Why isnt this thread a sticky?
    They need to make this a sticky.
  • Options
    prsreekprsreek Registered Users Posts: 2 ■□□□□□□□□□
    hi ...
    i am a CCNA beginner..
    can anybody explain me how to solve the below given question.
    Q) Find out the valid ip range.
    172.16.0.0/16 for 300 hosts.
  • Options
    FuturaFutura Member Posts: 191
    prsreek wrote: »
    hi ...
    i am a CCNA beginner..
    can anybody explain me how to solve the below given question.
    Q) Find out the valid ip range.
    172.16.0.0/16 for 300 hosts.


    write out 300 in binary, thats how many host bits u need, the rest can be for subnets. icon_lol.gif
  • Options
    prsreekprsreek Registered Users Posts: 2 ■□□□□□□□□□
    Futura wrote: »
    write out 300 in binary, thats how many host bits u need, the rest can be for subnets. icon_lol.gif
    i dont get it..
    plzz explain ..........
  • Options
    jdfriesenjdfriesen Member Posts: 45 ■■□□□□□□□□
    prsreek wrote: »
    hi ...
    i am a CCNA beginner..
    can anybody explain me how to solve the below given question.
    Q) Find out the valid ip range.
    172.16.0.0/16 for 300 hosts.

    First, you've got to know your powers of 2. 2^8 is 256, which won't be enough, so you've got to go to 2^9 = 512, which gives you room for 510 hosts.

    That means your network (assuming the zero subnet can be used, and that you're wanting the first valid address range) will be 172.16.0.0/23 (32-9 = 23).

    Next, to figure out your ip range, you've got to calculate the block size. There are a few ways to do that, but the one that I tend to use is subtract the last non-zero subnet mask value from 256. In this case, the subnet mask is 255.255.254.0 (7 leading 1's in the octet = 254). So the block size is 2 (256-254). That means that your first two subnets will be:
    • 172.16.0.0/23
    • 172.16.2.0/23
    Since the first and last address in the range are not valid to be assigned, your valid address range would be 172.16.0.1 - 172.16.1.254.
  • Options
    Jas21Jas21 Member Posts: 51 ■■□□□□□□□□
    Passed my ICND1 today and just wanted to say a massive thanks to Lord Flasheart (and all contributors to this thread) as this was the single biggest component of my finally having that 'Eureka' moment with subnetting!

    From really not understanding the process a short while ago, I scored 100% on the "implement and IP addressing scheme and IP services to meet network requirements for a small branch office" section of the exam

    Thanks loads everyone icon_cheers.gif
  • Options
    -DeXteR--DeXteR- Member Posts: 130
    Jas21 wrote: »
    Passed my ICND1 today and just wanted to say a massive thanks to Lord Flasheart (and all contributors to this thread) as this was the single biggest component of my finally having that 'Eureka' moment with subnetting!

    From really not understanding the process a short while ago, I scored 100% on the "implement and IP addressing scheme and IP services to meet network requirements for a small branch office" section of the exam

    Thanks loads everyone icon_cheers.gif

    Congrats on the Pass icon_cheers.gif
  • Options
    Jas21Jas21 Member Posts: 51 ■■□□□□□□□□
  • Options
    nimrod.sixty9nimrod.sixty9 Banned Posts: 125 ■□□□□□□□□□
    I cant figure out WTH Im doing wrong... Sometimes it works and sometimes it doesnt...

    Heres one that it doesnt:

    Question: How many subnets and hosts per subnet can you get from the network 172.26.0.0/27?

    Answer: 2048 subnets and 30 hosts

    Really? I got nowhere near this.

    Can someone please explain?

    @Jas21, Congrats!
  • Options
    jdfriesenjdfriesen Member Posts: 45 ■■□□□□□□□□
    I cant figure out WTH Im doing wrong... Sometimes it works and sometimes it doesnt...

    Heres one that it doesnt:

    Question: How many subnets and hosts per subnet can you get from the network 172.26.0.0/27?

    Answer: 2048 subnets and 30 hosts

    Really? I got nowhere near this.

    Can someone please explain?

    @Jas21, Congrats!

    The way I calculate the number of available subnets, is to subtract the CiDR value of the network class, from the CiDR value of the subnets, and then take 2 to the power of whatever the result is. In this case, it's a class B network, so the CiDR value is 16. 27 - 16 = 11, so to calculate the number of subnets, you can do 2^11 = 2048.

    To calculate the number of hosts per network, calculate the block size, and subtract 2. In this case, the block size is 32 (/27 = 255.255.255.224, 256 - 224 = 32), so 32 - 2 = 30 hosts per subnet.
  • Options
    -DeXteR--DeXteR- Member Posts: 130
    I cant figure out WTH Im doing wrong... Sometimes it works and sometimes it doesnt...

    Heres one that it doesnt:

    Question: How many subnets and hosts per subnet can you get from the network 172.26.0.0/27?

    Answer: 2048 subnets and 30 hosts

    Really? I got nowhere near this.

    Can someone please explain?

    @Jas21, Congrats!
    since it is a class B address it has a default subnet mask of 255.255.0.0
    In the given question /27 means 255.255.255.224 ,you have exactly 5 host bits and 11 subnet bits here
    so 2^5 -2 = 30 hosts
    similarly 2^11=2048 subnets
    Hope that helped :)
  • Options
    nimrod.sixty9nimrod.sixty9 Banned Posts: 125 ■□□□□□□□□□
    Im confused, again. This says 8 16 24 and 32 are boundries. "The next boundry is..". So my math was done the same way. 27, the next boundry is 32. So I suppose thats where I messed up. So now I really dont know which one Im supposed to subtract.

    How did you figure "5 host bits and 11 subnet bits"? Would either of you like to break down the problem for me?

    Thanks for the reponses!
  • Options
    jdfriesenjdfriesen Member Posts: 45 ■■□□□□□□□□
    Im confused, again. This says 8 16 24 and 32 are boundries. "The next boundry is..". So my math was done the same way. 27, the next boundry is 32. So I suppose thats where I messed up. So now I really dont know which one Im supposed to subtract.

    How did you figure "5 host bits and 11 subnet bits"? Would either of you like to break down the problem for me?

    Thanks for the reponses!

    There are 32 bits total, and 27 are excluded from the host portion, leaving 32-27=5 bits for the host section. Given that it is a class B network, which is /16, there are 27-16=11 bits for the subnet portion.
  • Options
    j-manj-man Member Posts: 143
    Question: How many subnets and hosts per subnet can you get from the network 172.26.0.0/27?

    Answer: 2048 subnets and 30 hosts

    Really? I got nowhere near this.

    Can someone please explain?

    It might help if you diagram it out. (N=Network, S=Subnet, H=Host)

    172.26.0.0/27

    The 27 indicates the network and subnet. Everything left over are hosts.

    It's a class B address so you know that the first 16 bits are for the network and cannot be touched so it will look like the following:

    NNNNNNNN.NNNNNNNN.
    .

    Now consider the /27. 16 out of the 27 are network which leaves 11 as the subnet number.

    NNNNNNNN.NNNNNNNN.SSSSSSSS.SSS

    Fill in the last remaining because they are the hosts

    NNNNNNNN.NNNNNNNN.SSSSSSSS.SSSHHHHH

    Now do the math
    S^11 ( 2^11 ) = 2048 Subnets
    H^5-2 ( 2^ 5 - 2 ) = 30 Hosts

    To figure out the subnet if you want to convert from / notation to decimal remember to add from left to right (or memorize the following)

    128, 192, 224, 240, 248, 252, 254, 255

    In this case it's a /27 so there are 3 S bits assigned so it's a 224 subnet or
    255.255.255.224

    I was having a heck of a time until I read through this thread, did both binary and decimal methods and learned some shortcuts. Writing it out in binary really helped me because then I could start visualizing it.

    FYI: This is based off what I read in the Odom ICND1 book. I don't want to be accused of plagiarism.
  • Options
    geek4godgeek4god Member Posts: 187
    j-man wrote: »
    It might help if you diagram it out. (N=Network, S=Subnet, H=Host)

    Now do the math
    S^11 ( 2^11 ) = 2048 Subnets
    H^5-2 ( 2^ 5 - 2 ) = 30 Hosts

    Any tips on doing the 2 to the power of X math? Or just memorize them? I got 2^9 down do I just need to memorize the rest and if so what is the max power I need?
  • Options
    Cisco InfernoCisco Inferno Member Posts: 1,034 ■■■■■■□□□□
    geek4god wrote: »
    Any tips on doing the 2 to the power of X math? Or just memorize them? I got 2^9 down do I just need to memorize the rest and if so what is the max power I need?

    just keep doubling.
    2,4,8,16,32,64,128.... youll memorize it soon.
    2019 Goals
    CompTIA Linux+
    [ ] Bachelor's Degree
  • Options
    j-manj-man Member Posts: 143
    geek4god wrote: »
    Any tips on doing the 2 to the power of X math? Or just memorize them? I got 2^9 down do I just need to memorize the rest and if so what is the max power I need?

    Nope. Exactly what Cisco Inferno said.

    IMHO you should at least have 2^13 or 2^14 ready at will.

    This is one of the things I always jot down before any practice exams. I'll start at ^13 and go to at least ^22
  • Options
    -DeXteR--DeXteR- Member Posts: 130
    Im confused, again. This says 8 16 24 and 32 are boundries. "The next boundry is..". So my math was done the same way. 27, the next boundry is 32. So I suppose thats where I messed up. So now I really dont know which one Im supposed to subtract.

    How did you figure "5 host bits and 11 subnet bits"? Would either of you like to break down the problem for me?

    Thanks for the reponses!

    Think the above posts will clear it for you hopefully ! Btw which book you referring to .Imo todd lammle is good for subnetting for starters
Sign In or Register to comment.