Options

Subnetting Made Easy

191012141517

Comments

  • Options
    IsmaeljrpIsmaeljrp Member Posts: 480 ■■■□□□□□□□
    Multiplication. Pay attention to the increment, and multiply to the closest subnet ID. You won't be seing any crazy high subnet numbers on the tests, at least that's what I hear.

    How do you even list subnets ? I don't really get all those fancy stuff, I solve everything in my head with basic math. Since I already understand and can visualize the octets in binary format. I know that a 11110000 is a .240 or a /28 if it's in the last octet. I know the increment would be 16. 256-240=16. So if I see a 192.168.1.67 /28, considering the increment is 16, well I automatically know that 16 x 4 = 64. Which means that 192.168.1.67 is a valid host in the 192.168.1.64 subnet ID.
  • Options
    jsb515jsb515 Member Posts: 253
    anyone help me with this one? how are they getting a 117 subnet?

    Which subnet does host 172.20.117.46 255.255.255.128 belong to?



    here is how i did it..

    128 64 32 16 8 4 2 1 || 128 192 224 240 248 252 254 255


    /25




    32-25=7


    2^7=128


    0.1-254 b255
    128.0
    128.1-254 b255
    255.1-254 b255
    256.0
  • Options
    Ltat42aLtat42a Member Posts: 587 ■■■□□□□□□□
    Remember your Classes of Addresses, A,B,&C. This is a Class B address. Default mask is 255.255.0.0.
    The subnet mask they gave you is 255.255.255.128. 9 bits were used to create subnets, 7 bits left over for hosts. Subnetting takes place in the 4th octet in increments of 128.
    Starting at 0, count like this-
    172.20.117.0 (First subnet)
    172.20.117.128 (Second subnet)

    172.20.117.46 belongs to the first subnet.

    hth
  • Options
    jsb515jsb515 Member Posts: 253
    ah ok i was thinking it was in the third octet but i forgot that you use the octet it borrows from. Thanks for the help.
  • Options
    jsb515jsb515 Member Posts: 253
    need some help again..

    172.16.0.0 255.255.255.192

    I do 32-26=6=2^6=64

    here is where I believe I goof up.. the counting

    since I borrowed in the fourth octet I start

    172.16.0.64
    172.16.0.128

    but I got a feeling i'm counting this wrong..

    When does this 0 change to 1 2 3 ect..?
    ..........\/
    172.16.0.64


    or do I count it like this

    172.16.1.64 - 1.254
    172.16.2.128 - 2.254
  • Options
    Ltat42aLtat42a Member Posts: 587 ■■■□□□□□□□
    Subnetting 172.16.0.0 with a mask of 255.255.255.192 (or /26), your subnetting takes place in the 4th octet.
    The increments are 64, in the 4th octet. Starting at 0, your subnets would be:
    172.16.0.0 - 172.16.0.63
    172.16.0.64 - 172.16.0.127
    172.16.0.128 - 172.16.0.191
    172.168.0.192 - 172.168.0.255
    172.16.1.0 - 172.16.1.63
    etc
    etc
    etc
  • Options
    jsb515jsb515 Member Posts: 253
    192.168.4.255 /23

    I thought this was a broadcast address at first glance but Boson said no it a host address.. so what would the broadcast of this address be?
  • Options
    atorvenatorven Member Posts: 319
    192.168.5.255 - The increments are in 2 in the 3rd octet, so 0,2,4,6 e.t.c
  • Options
    BIGDubBIGDub Member Posts: 8 ■□□□□□□□□□
    I've been having a lot of problems with this lately. I've gotten some of it but I think I've been looking at too many subnetting methods and they are starting to conflict. I thought I was making headway last week. Now something has me confused. I have had a hit or miss record on subnettingquestions.com. I ran into one that makes me question the accuracy of their answers or their methodology in getting there.

    Here is the question and the answer from the site:

    Question: How many subnets and hosts per subnet can you get from the network 172.16.0.0 255.255.255.192?Answer: 1024 subnets and 62 hosts


    Now the problem. I'm also studying the Todd Lammle CCENT Study Guide Copyright 2008 and there is an identical question in there, same IP address and subnet mask. However the book has the answer of 4 subnets and 16,382 hosts with 64 address block size making 62 available addresses per block.

    Something is wrong. Even if the terminology were different you would still get the same numbers. It's either one of the two sources is wrong. It's also possible my interpretation is wrong but I can't see where it could be, there is a huge difference between 4 subnets and 1024 subnets.









  • Options
    atorvenatorven Member Posts: 319
    Which answer do you agree with? Below is how I approached the question.
    172.16.0.0 = Class B by default, 16bits would reserved for the network.
    255.255.255.192 = 8 bits in the 3rd octet which would have been used for the host address have now been borrowed for the network portion, 2 bits have also been borrowed in the 4th octet so 8+2=10bits have been borrowed therefore 2^10=1024 subnets.
    For the host part you should already know that 8 bits make up an octet, we have already borrowed 2 bits in that octet so we have 6 remain for our hosts therefore 64hosts but you have to subtract 2 hosts for the network address and broadcast address so we end up with 62 hosts per subnet.

    HTH
  • Options
    sec_wizsec_wiz Member Posts: 17 ■□□□□□□□□□
    Hey guys,

    Sorry I was unable to read over all pages of this thread so it may have been mentioned.

    After reading the first post subnetting has finally clicked for me - in terms of finding subnet ranges and identifying the first and last host etc.

    But how do I go using this method to determine how to create subnets as well as 'how many hosts and networks could you create if you had an ip of ______ and a mask of _______'?

    thanks in advance!
  • Options
    jsb515jsb515 Member Posts: 253
    say i have a question like what ip class can 15 bits be borrowed to make subnets, how would you go about answering this one quickly?
  • Options
    ciscoman2012ciscoman2012 Member Posts: 313
    jsb515 wrote: »
    say i have a question like what ip class can 15 bits be borrowed to make subnets, how would you go about answering this one quickly?

    Not sure if I'm thinking about this right but I would say Class B (the netmask would be 255.255.0.0)

    255.255 would be the network portion and 0.0 would be the borrowed bits to subnet. For example 192.168.X.X the X's would be the subnetted portion.
  • Options
    oli356oli356 Member Posts: 364
    Just feel like posting my experience today on the forum.

    As part of my job I have to go on training for about 12 weeks this year. We do MTA exams, 3 of them. Each exam has a week of being taught/studying and then take the exam.
    Though I have completed the exam I still have to attend the training and listen to the lessons, this time its the Networking exam.

    So he started to explain IP addresses and went through the different classes (A, B, C) this was all fine. Then he got up to subnetting..

    But it wasn't called subnetting anymore, he didn't even mention that word. It was called "CIDR IP". Basically if you are using a /8 /16 or /24 you have to write out the subnet mask e.g. 255.255.0.0
    But if you want to "subnet" you have to use this "CIDR IP", so instead of writing out the subnet mask you HAVE to do the bit notation as the subnet mask and bit notation are nothing to do with each other. He didn't really explain any more than that, HOW you actually subnet.

    He then tried to think of a bit notation for the IP address on the whiteboard, "I always forget what numbers I can use" I just spoke out and said 23.

    Uh..... what!? Doesn't he know what CIDR notation is, what the /x represents, the binary - anything?
    His explanation of VLANs yesterday didn't make any sense; he said kind of the opposite of what they are used for.

    I was talking to one of my colleagues on WebEx at the time who is a double CCIE and told him what we had been told - he couldn't believe it!
    /rant ;)
    Lab:
    Combination of GNS3 and Cisco equipment if required.
  • Options
    pgnetpgnet Registered Users Posts: 4 ■□□□□□□□□□
    Hi,

    Firstly thanks for this method, it’s by far been the easiest way I’ve been able to learn subnetting and I am able to answer most of the questions on subnettingquestions.com

    The only one I am struggling with is the type ‘You are designing a subnet mask for the 192.168.123.0 network. You want 12 subnets with up to 11 hosts on each subnet. What subnet mask should you use?’

    I seem to have a mental block with this, which is highlighted even more by trying the subnet game on cisco.com. On that game, which I urge you to try, the questions are similar.

    One scenario is, there is a requirement for 2 subnets with 2 hosts per subnet.
    You need to fill out the last octet values for each site in the following fields and are given the following which you cannot change:

    Subnet mask 255.255.255
    Router interface: 192.168.1
    Broadcast address: 192.168.1
    Network address: 192.168.1

    To save me time with other questions I have been using the table:
    128 64 32 16 8 4 2 1
    2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0
    128 192 224 240 248 252 254 255

    Can you explain how I can work this out using the method originally posted and my table above?
    Please do not write out binary methods etc of working this out, I just want the method from the original poster, Lordflasheart

    I suspect there will be this type of question above in the exam so just need to get my head around it then should be sorted.

    Thanks for any help in advance
  • Options
    Ltat42aLtat42a Member Posts: 587 ■■■□□□□□□□
    pgnet wrote: »
    One scenario is, there is a requirement for 2 subnets with 2 hosts per subnet.
    You need to fill out the last octet values for each site in the following fields and are given the following which you cannot change:

    Subnet mask 255.255.255
    Router interface: 192.168.1
    Broadcast address: 192.168.1
    Network address: 192.168.1

    The only subnet mask that will give you only 2 hosts (think WAN links) - 255.255.255.252

    Now....fill in the rest
  • Options
    pgnetpgnet Registered Users Posts: 4 ■□□□□□□□□□
    I've tried attaching a screenshot but I can't in case I'm decribing it wrong. The answer I saw on the site below is

    2 Areas = 255.255.255.128
    1st room
    Network 192.168.1.0
    Broadcast 192.168.1.127
    Router 192.168.1.1
    2nd Room
    Network 192.168.1.128
    Broadcast 192.168.1.255
    Router 192.168.1.129



    The URL is https://learningnetwork.cisco.com/docs/DOC-1802

    As above it asks me to fill out these fields:
    Subnet mask 255.255.255
    Router interface: 192.168.1
    Broadcast address: 192.168.1
    Network address: 192.168.1

    And the work order (scenario question) is 'Four computers each in two areas that need there own subnet'.

    Thought I'd got subnetting before seeing this icon_sad.gif ...
  • Options
    mackstermackster Registered Users Posts: 1 ■□□□□□□□□□
    Hi everyone. This is a great post and it really makes subnetting easy.

    Though I may not be able to see the wood for the trees on one particular question.

    _______________________________
    A RIB has the following:

    Prefix | Next Hop
    24.1.36.0/24 | 10.0.0.2
    24.1.36.8/29 | 10.0.0.5
    24.1.36.8/30 | 10.0.0.9

    Given the avove RIB, what is the next hop for a packet destined for 24.1.36.14?
    ________________________________________

    From my evaluation, I can see two possible hops, 10.0.0.5 and 10.0.0.9.

    I think if someone can take me through thetheory on this, I can see what I am doing wrong.
  • Options
    tearofstearofs Member Posts: 112
    mackster wrote: »
    Hi everyone. This is a great post and it really makes subnetting easy.

    Though I may not be able to see the wood for the trees on one particular question.

    _______________________________
    A RIB has the following:

    Prefix | Next Hop
    24.1.36.0/24 | 10.0.0.2
    24.1.36.8/29 | 10.0.0.5
    24.1.36.8/30 | 10.0.0.9

    Given the avove RIB, what is the next hop for a packet destined for 24.1.36.14?
    ________________________________________

    From my evaluation, I can see two possible hops, 10.0.0.5 and 10.0.0.9.

    I think if someone can take me through thetheory on this, I can see what I am doing wrong.


    24.1.36.14 is within both 24.1.36.0/24 & 24.1.36.8/29 subnets, So I believe the possible hops are 10.0.0.2 and .5
  • Options
    boredgameladboredgamelad Member Posts: 365 ■■■■□□□□□□
    When a given destination IP matches more than one route, the router chooses the most specific route (aka the one with the longest network prefix, or highest CIDR number).

    24.1.36.14 is within both the /24 and /29 subnets, but it would forward to 10.0.0.5 because /29 is more specific than /24.
  • Options
    iverson2k10iverson2k10 Registered Users Posts: 1 ■□□□□□□□□□
    Here is one I don't get

    what is the host range for 10.145.100.192 255.255.240.0?

    I got 10.145.192.1 I would think its + 12 more for the range should be 192+12 = 204

    10.145.192.1
    10.145.204.254


    I was wrong and the answer they got was 10.145.192.1 - 10.145.207.254. Even IP calculator confirms it.
  • Options
    beach5563beach5563 Member Posts: 344 ■■■□□□□□□□
    Just started using this method today, love it so far, was able to understand how to find which subnet an ip address belongs too and some of the valid host range concept of a particular subnet but there are a couple that kind of got me a little confused. I may just need more practice but one was asking about the valid host range for the 7th subnet of 10.0.0.0/14. So i understand about finding the boundary and getting the block size but the answer on Loardflashearts document is 10.24.0.1 to 10.27.255.254, so I guess the 255.254 stuff knocked me for a loop. Just trying to gigure out am I missing something that he already explained in the beginning, is there a certain part I need to go over again? Most of this stuff was coming along just fine til I got this one. There was another one like this too, I think it was a class B one though. Just wondering if I could get some input. Thanks guys
  • Options
    Ltat42aLtat42a Member Posts: 587 ■■■□□□□□□□
    Here is one I don't get

    what is the host range for 10.145.100.192 255.255.240.0?

    I got 10.145.192.1 I would think its + 12 more for the range should be 192+12 = 204

    10.145.192.1
    10.145.204.254


    I was wrong and the answer they got was 10.145.192.1 - 10.145.207.254. Even IP calculator confirms it.

    That answer doesn't seem right.
    10.145.100.192 with a mask of 255.255.240.0. You're subnetting in the 3rd octet with a block size (or range size) of 16.
    10.145.100.192 belongs to the network 10.145.96.0. The valid host range would be 10.145.96.0 - 10.145.111.254.
    The next network would be 10.145.112.0.
  • Options
    boredgameladboredgamelad Member Posts: 365 ■■■■□□□□□□
    beach5563 wrote: »
    one was asking about the valid host range for the 7th subnet of 10.0.0.0/14. So i understand about finding the boundary and getting the block size but the answer on Loardflashearts document is 10.24.0.1 to 10.27.255.254, so I guess the 255.254 stuff knocked me for a loop.

    It's important to remember how to count IP addresses both up and down. A refresher: if you count IP addresses from 0.0.0.0 you've got 0.0.0.0, 0.0.0.1, 0.0.0.2, and so on until you hit 0.0.0.255. When you add 1 to 255, you have exceeded the value for the fourth octet (you can't have 0.0.0.256). So the previous octet increments by 1, making the next IP address 0.0.1.0. Likewise, if we count down one from 0.0.1.0, the next lowest IP address is 0.0.0.255. Keeping that in mind, let's look at your example.

    You've been given 10.0.0.0/14, or 10.0.0.0 / 255.252.0.0. Our interesting octet is the second and 256-252 gives us an increment of 4:

    10.0.0.0 < 1st subnet
    10.4.0.0 < 2nd subnet
    10.8.0.0 < etc.
    10.12.0.0
    10.16.0.0
    10.20.0.0
    10.24.0.0 < 7th subnet
    10.28.0.0
    [...]

    10.24.0.0 is the 7th subnet. We know from our increment that 10.28.0.0 is the 8th subnet. So, we can determine the range for the 10.24.0.0 subnet by figuring out what IP address comes before 10.28.0.0. In this case, it's 10.27.255.255. The range of IPs that belong to the 10.24.0.0 network are 10.24.0.0 through 10.27.255.255.

    Since the question is asking about valid hosts, we can't stop there. Knowing that the first IP address is reserved for the subnet ID (10.24.0.0) and the last IP address is reserved for broadcasts (10.27.255.255), that makes all other IP addresses in that subnet valid hosts. The valid host range for any subnet is going to be (subnet ID + 1) through (broadcast ID - 1). In other words, 10.24.0.1 (10.24.0.0 + 1) through 10.27.255.254 (10.27.255.255 - 1).

    Remember, once you've found the subnet ID:

    First valid host = subnet ID + 1
    Last valid host = broadcast ID -1
    Broadcast address = next subnet ID -1

    Hope this helps.
  • Options
    beach5563beach5563 Member Posts: 344 ■■■□□□□□□□
    @boredgamlad, thanks so much, I'm going to practice this stuff again today, I really appreciate that. Man I was so close yesterday but by the end of the weekend I should have this down. I may study some basic ip addressing stuff today too maybe.
  • Options
    richypcrichypc Member Posts: 15 ■□□□□□□□□□
    For the network 192.0.2.0/23, which option is a valid IP address that can be assigned to a host?




    A. 192.0.2.0
    B. 192.0.2.255
    C. 192.0.3.255
    D. 192.0.4.0


    Answer: B

    Can anyone explain this one, having trouble. The others I do just fine with.
  • Options
    New2ITNew2IT Member Posts: 18 ■□□□□□□□□□
    Using the method described in this thread:

    192.0.2.0/23
    23 is in the 3rd octet, so 24-23 = 1, then you take 2 to the 1st power = 2
    So 2 is your increment in the 3rd octet

    192.0.0.0
    192.0.2.0
    192.0.4.0

    So in the subnet of 192.0.2.0 you have:
    192.0.2.0 network address (answer A)
    192.0.2.1 – 192.0.3.254 host range, 192.0.2.255 is within the host range (answer B)
    192.0.3.255 broadcast address (answer C)

    192.0.4.0 is the next subnet network address (answer D)

    I am new to this so I hope it makes sense.
  • Options
    boredgameladboredgamelad Member Posts: 365 ■■■■□□□□□□
    I was just typing up an answer when I saw New2IT's post. You've got it exactly right.
  • Options
    lmoworldlmoworld Member Posts: 124 ■■■□□□□□□□
    Awesome Thread.
  • Options
    richypcrichypc Member Posts: 15 ■□□□□□□□□□
    Yeah I see, I was trying hard to do in my head like I have with the rest. Just easier and better to write a few of them out sometimes.
Sign In or Register to comment.