Subnetting Made Easy

11112131517

Comments

  • beach5563beach5563 Member Posts: 344 ■■■□□□□□□□
    This is a good method overall but I don't know if this is good for beginning subnetting. Seems like you may need to learn some basic stuff like the powers of 2 and maybe address ranges. I could be wrong but I think I will work on that stuff first so you can have an idea of whats going on underneath everything.
  • mohammadzzzmohammadzzz Member Posts: 13 ■□□□□□□□□□
    hi

    Got this question on www.subnettingquestions.com,Please can any one explain this

    what valid host range is the ip 172.21.88.41 255.255.252.0 a part of ?anserwer 172.21.88.1 to.172.21.91.254

    my calculation

    256-252 =4,block size 2^4=16 so

    1st network 172.21.0.0
    2nd network 172.21.16.0
    3rd network 172.21.32.0
    4th network 172.21.48.0
    5th network 172.21.64.0
    6th network 172.21.80.0
    7th network 172.21.96.0

    so my calculation say it is part of major 172.21.80.0 to be exact and goes to last limit of 172.21.95.254,but the answer from site says 172.21.88.1 to 172.21.91.254;can someone please explain where i have gone wrong ?Thanks
  • mohammadzzzmohammadzzz Member Posts: 13 ■□□□□□□□□□
    Thank you .It helps a lot
    mella060 wrote: »
    So assume the networks in your example are...

    10.0.0.0/24
    10.0.1.0/24
    10.0.2.0/24
    10.0.3.0/24

    Step 1 - Re-list the subnet ID's (numbers) and prefix lenghs in decimal and calculate the subnet broadcast addresses.

    10.0.0.0/24 - broadcast address is 10.0.0.255
    10.0.1.0/24 - broadcast address is 10.0.1.255
    10.0.2.0/24 - broadcast address is 10.0.2.255
    10.0.3.0/24 - broadcast address is 10.0.3.255

    Step 2 - Note the low and high end of the range of addresses for all combined subnets by noting the numerically lowest subnet ID and the numerically highest subnet broadcast address. So in your example, 10.0.0.0 would be the lowest subnet ID and 10.0.3.255 would be the highest broadcast address.

    Step 3 - Pick the shortest prefix length of all subnets to be summarized (subordinate) subnets, and then subtract 1. So in your example, all the subnets have a prefix length of /24, so subtract 1 from 24...24-1 = 23. So calculate the range of addresses you would get with a prefix length of /23.

    10.0.0.0/23 - 10.0.0.1 - 10.0.1.255...doesn't match all the addresses to be summarized. So subtract 1 from 23 and see if that includes all the subnets and their addresses to be summarized.

    10.0.0.0/22 - range 10.0.0.1 - 10.0.3.255...This exactly matches the range of addresses shown above so you have found the subnet and mask to use in the best summary route: 10.0.0.0/22

    Answer A 10.0.0.0/21 would also work but it is not the best summary route in this example. The best summary route is the one that includes all the subnets to be summarized, but with as few other addresses as possible.
  • xnxxnx Member Posts: 464 ■■■□□□□□□□
    hi

    Got this question on www.subnettingquestions.com,Please can any one explain this

    what valid host range is the ip 172.21.88.41 255.255.252.0 a part of ?anserwer 172.21.88.1 to.172.21.91.254

    my calculation

    256-252 =4,block size 2^4=16 so

    1st network 172.21.0.0
    2nd network 172.21.16.0
    3rd network 172.21.32.0
    4th network 172.21.48.0
    5th network 172.21.64.0
    6th network 172.21.80.0
    7th network 172.21.96.0

    so my calculation say it is part of major 172.21.80.0 to be exact and goes to last limit of 172.21.95.254,but the answer from site says 172.21.88.1 to 172.21.91.254;can someone please explain where i have gone wrong ?Thanks
    255.255.252 = /22 = Goes up in 4's on the 3rd octet

    172.21.80.0
    172.21.84.0
    172.21.88.0
    Getting There ...

    Lab Equipment: Using Cisco CSRs and 4 Switches currently
  • goat1974goat1974 Registered Users Posts: 1 ■□□□□□□□□□
    I am new to Subnetting and taking a class a UMUC, I need to subnet 211.168.122.0/24 to 11 subnets and for subnets #1, #4, #5, and #11 I need to know The new subnet mask after the Subnetting, Subnet’s network address, Subnet’s broadcast address, Subnet’s range of available IP addresses and The calculations on how you get to the answers
  • mohammadzzzmohammadzzz Member Posts: 13 ■□□□□□□□□□
    hi

    Got this question on www.subnettingquestions.com,Please can any one explain this

    what valid host range is the ip 172.21.88.41 255.255.252.0 a part of ?anserwer 172.21.88.1 to.172.21.91.254

    my calculation

    256-252 =4,block size 2^4=16 so

    1st network 172.21.0.0
    2nd network 172.21.16.0
    3rd network 172.21.32.0
    4th network 172.21.48.0
    5th network 172.21.64.0
    6th network 172.21.80.0
    7th network 172.21.96.0

    so my calculation say it is part of major 172.21.80.0 to be exact and goes to last limit of 172.21.95.254,but the answer from site says 172.21.88.1 to 172.21.91.254;can someone please explain where i have gone wrong ?Thanks




    Yes,thanks but i am still confused,if you follow the original method in this post,then i do not get the networks what you have mentioned.Please stipulate.

    xnx wrote: »
    255.255.252 = /22 = Goes up in 4's on the 3rd octet

    172.21.80.0
    172.21.84.0
    172.21.88.0
  • EdTheLadEdTheLad Member Posts: 2,111 ■■■■□□□□□□

    my calculation

    256-252 =4,block size 2^4=16 so

    256-252=4, block size is 4 2^2 = 4

    255 = 11111111
    252 = 11111100

    two 0's means a possible 4 combinations hence a block of 4!
    Networking, sometimes i love it, mostly i hate it.Its all about the $$$$
  • mohammadzzzmohammadzzz Member Posts: 13 ■□□□□□□□□□
    Question: How many subnets and hosts per subnet can you get from the network 172.19.0.0 255.255.254.0?



    since its a class c,default mask is 255.255.255.0,block size is 256-254=2,but no idea what to do after this as 254/2=127 subnets and hosts are 2^8=256


    answer is Answer: 128 subnets and 510 host,


    ​but how.....any help will be apperciated.regards
  • EdTheLadEdTheLad Member Posts: 2,111 ■■■■□□□□□□
    172 is class B.
    Networking, sometimes i love it, mostly i hate it.Its all about the $$$$
  • mohammadzzzmohammadzzz Member Posts: 13 ■□□□□□□□□□
    hi

    i am not too sure how to answer questions like this.Question: How many subnets and hosts per subnet can you get from the network 172.21.0.0 255.255.255.240?Answer: 4096 subnets and 14 hosts

    any help
  • ednardednard Member Posts: 75 ■■□□□□□□□□
    hi

    i am not too sure how to answer questions like this.Question: How many subnets and hosts per subnet can you get from the network 172.21.0.0 255.255.255.240?Answer: 4096 subnets and 14 hosts

    any help
    You need to write down the binary to get these figures, unless you're quick enough to do it in your head.

    So 172 is a Class B network, so let's write down the binary for 172.21.0.0.

    E.G. 1 - 11111111.11111111.00000000.00000000

    The subnet they've given is 255.255.255.240, though, so we need to write this in binary now, and compare the two.

    E.G. 2 - 11111111.11111111.11111111.11110000

    So we've got the 16 network bits from the class B network (shown in E.G. 1), and now with the subnet they've given us (shown in E.G. 2), we've got another 12 bits for the subnet (as well as the 16 bits for networks), as well as 4 for the host part (shown in 0's). Therefore:

    2^12 = the amounts of subnets we can make
    2^4 (-2) = the amounts of hosts we can have (we -2 for the network address and broadcast address)
  • mohammadzzzmohammadzzz Member Posts: 13 ■□□□□□□□□□
    Thanks ednard.It helps.
  • mohammadzzzmohammadzzz Member Posts: 13 ■□□□□□□□□□
    Hi

    i cant figure this one out...any explanation

    A company needs 300 subnets and 50 hosts per network.We have 1 class b ip.What mask will we use

    255.255.255.0

    255.255.255.128


    255.255.252.0

    255.255.255.224

    255.255.255.192

    I have tried every thing i can think off,like for 50 hosts we need 2^6 bits-2=62 hosts

    so 255.255.255.nn h h h h h h (so now we have 2+4+8+16+32+64=126),beyond that i am clueless how he drived value of .192 in last octet

    255.255.255.126

    any help please.

    correct answer

    255.255.255.128 & 255.255.255.192
  • MrPuzzlezMrPuzzlez Member Posts: 89 ■□□□□□□□□□
    Remember! It's not cheating if you use your fingers! That's what I do every now and then.
  • hell911hell911 Member Posts: 83 ■■■□□□□□□□
    thanks for this topic..

    but i also used this video to learn, and.. it's was so easy!! icon_thumright.gif
  • Kenneth196Kenneth196 Member Posts: 37 ■■□□□□□□□□
    Hi

    i cant figure this one out...any explanation

    A company needs 300 subnets and 50 hosts per network.We have 1 class b ip.What mask will we use

    255.255.255.0

    255.255.255.128


    255.255.252.0

    255.255.255.224

    255.255.255.192

    I have tried every thing i can think off,like for 50 hosts we need 2^6 bits-2=62 hosts

    so 255.255.255.nn h h h h h h (so now we have 2+4+8+16+32+64=126),beyond that i am clueless how he drived value of .192 in last octet

    255.255.255.126

    any help please.

    correct answer

    255.255.255.128 & 255.255.255.192


    Hello mohammadzzz,

    For this particular problem, the key thing to note is that you have 1 class B IP address. Knowing that, the first 2 octets are notated as the network portion automatically. Those cannot be changed. If it was a class A IP address, only the first octet would be the network portion at a minimum, and if a class C IP, then the first three octets would be the network portion at a minimum. Now that's not to say that the other octets cant have network bits as well. i.e. Even though the first two octets of a class B IP address are network bits, the third octet can have all network bits also, which would mean that it has a subnet mask of 255.255.255.0
    Sooooo.... we know that you have a class B IP address, you need atleast 300 subnets, and 50 hosts per subnet. The first two octets are automatically assigned as network bits so ignore those. Count on your hand(s), using the power of 2 until you get to 300 or over. So 2, 4, 8, 16, 32, 64, 128, 256, 512. How many fingers are you holding up? Should be 9. That means atleast 9 bits will have to be "borrowed" to have atleast 300 subnets. So knowing this, the first two octets are automatically assigned as network bits, and we also used 9 other bits for the network portion. Soooo... nnnnnnnn.nnnnnnnn.nnnnnnnn.nhhhhhhh - the first two octets are network bits, then we have 9 more network bits, and the rest are host.
    "Give a person a fish and you feed them for a day; teach that person to use the Internet and they won't bother you for weeks." - Unknown
  • Elijah09Elijah09 Member Posts: 11 ■□□□□□□□□□
    Thanks, this was really helpful!
  • hell911hell911 Member Posts: 83 ■■■□□□□□□□
    I have a problem, hope someone can help. :)

    I have these values:

    network address: 172.50.0.0
    def subnet mask: 255.255.0.0
    custom subnet mask: 255.255.224.0
    total # of subnets: 8
    number of usable subnets: 6
    total # of host addresses: 8192
    usable host address: 8190
    # of bits borrowed: 3

    if the question is, find first four subnets of this network. is the answer going to be...

    172.50.0.0 - 172.50.0.255
    172.50.1.0 - 172.50.1.255
    172.50.2.0 - 172.50.2.255
    172.50.3.0 - 172.50.3.255
  • Kenneth196Kenneth196 Member Posts: 37 ■■□□□□□□□□
    Assuming ip subnet zero is in play, then you are correct for the /16 subnet (or 255.255.0.0).
    "Give a person a fish and you feed them for a day; teach that person to use the Internet and they won't bother you for weeks." - Unknown
  • xnxxnx Member Posts: 464 ■■■□□□□□□□
    hell911 wrote: »
    I have a problem, hope someone can help. :)

    I have these values:

    network address: 172.50.0.0
    def subnet mask: 255.255.0.0
    custom subnet mask: 255.255.224.0
    total # of subnets: 8
    number of usable subnets: 6
    total # of host addresses: 8192
    usable host address: 8190
    # of bits borrowed: 3

    if the question is, find first four subnets of this network. is the answer going to be...

    172.50.0.0 - 172.50.0.255
    172.50.1.0 - 172.50.1.255
    172.50.2.0 - 172.50.2.255
    172.50.3.0 - 172.50.3.255
    172.50.0.0 /19 is:
    172.50.0.0 - 172.50.31.255
    172.50.32.0 - 172.50.63.255
    172.50.64.0 - 172.50.95.255

    etc etc..
    Getting There ...

    Lab Equipment: Using Cisco CSRs and 4 Switches currently
  • hell911hell911 Member Posts: 83 ■■■□□□□□□□
    why did the 3rd octet had a jump of 32? why not different number?
  • xnxxnx Member Posts: 464 ■■■□□□□□□□
    256-224 = 32

    Also:

    When a default mask is 255.255.0.0 that means it's a class B and has 16 bits on.

    255.255.224.0 = 19 bits on (3 bits for subnet) > 2^3 = 8

    Now you have 13 bits left for hosts > ((2^13)-2) = 8190
    Getting There ...

    Lab Equipment: Using Cisco CSRs and 4 Switches currently
  • whiteje84whiteje84 Member Posts: 8 ■□□□□□□□□□
    Thank You for this! It helped me a ton. Slow at first but I think it helped make things finally "click". Cheers!! icon_thumright.gif
  • abyssinicaabyssinica Member Posts: 97 ■■■□□□□□□□
    Thanks so much for this tutorial, it's fabulous, well-explained and easy to understand!
  • hmig89hmig89 Registered Users Posts: 3 ■□□□□□□□□□
    Hi,

    Thanks for posting this method.

    It works however could up in the block sizes until I get up 128 or 200's take a lot of time. Is there a quicker way do this?
  • saraanandsaraanand Member Posts: 16 ■□□□□□□□□□
    I see such neat explanations here, just looking for a super like button.
  • hmig89hmig89 Registered Users Posts: 3 ■□□□□□□□□□
    Hi,

    This is by far the easiest method I have found, however I am struggling with the following question:
    [h=2]What subnet mask would you use for the 172.18.0.0 network, such that you can get 30 subnets and 1090 hosts per subnet?[/h]
    Can someone explain to me how I would work out this question using this method?
  • mikeybinecmikeybinec Member Posts: 484 ■■■□□□□□□□
    Well, you're looking at a Class B IP range. The two octets on the right are where you will subnet. So, to get 32 networks "borrow" 5 bits 2^5 = 32 networks and what's left is your hosts per network 2^11 = 2048


    XXXXXXXX.XXXXXXXX.NNNNNHHH.HHHHHHHH
    Cisco NetAcad Cuyamaca College
    A.S. LAN Management 2010 Grossmont College
    B.S. I.T. Management 2013 National University
  • DeathmageDeathmage Banned Posts: 2,496
    I keep forgetting subnetting and then I look back on this post and I remember it. I dunno why like in 10 days I'll forget subnetting but as soon as I look at this I figure it out all over again. Maybe I just don't subnet enough at work for it to be solidified in my brain.

    Anyone got some pointers on how to keep it sharp in your brain?

    this post should really be made into a sticky....
  • DeathmageDeathmage Banned Posts: 2,496
    Can this be made a sticky, spent 25 minutes looking for it....

    every time I forget subnetting this page help re-plant the seed...
Sign In or Register to comment.