Sunteți pe pagina 1din 10

10/23/13

Subnetting Made Easy


User Name Log in Remember Me?

Help

Register

What's New

Today's Posts

Forum Actions

Advanced Search

Forum
CompTIA Cisco Microsoft CWNP InfoSec Practice Exams Forums Blogs

Cisco

CCNA / CCENT

Subnetting Made Easy

If this is your first visit, be sure to check out the FAQ. You may have to register before you can post and use our practice exams: click the register link above to proceed.

+ Reply to Thread
Thread: Subnetting Made Easy

Results 1 to 25 of 407

Page 1 of 17

1 2 3 4 5 11 ...

Last

View First Unread

Thread Tools

LordFlasheart
Junior Member Join Date: Posts: Jun 2005 5

12-29-2008 05:31 PM

#1

Subnetting Made Easy Hi all, I've received an email from one of your members asking me to post up my technique for subnetting as links to external blogs are not allowed due to forum rules. I know that he benefited from it and he wishes to help out others so here goes: First of all I need you to get rid of all of the negative thoughts surrounding subnetting. Put down all of the books that you have read about the subject and navigate away from other sites claiming to provide an easy way to subnet. This technique requires no charts, just simply the know-how to work with the powers of 2. We need to start with the fundamentals of IP addressing. An IP address is made up of 32 bits, split into 4 octets (oct = 8, yes?). Some bits are reserved for identifying the network and the other bits are left to identify the host. There are 3 main classes of IP address that we are concerned with. Class A Range 0 - 127 in the first octet (0 and 127 are reserved) Class B Range 128 - 191 in the first octet Class C Range 192 - 223 in the first octet Below shows you how, for each class, the address is split in terms of network (N) and host (H) portions. NNNNNNNN . HHHHHHHH . HHHHHHHH . HHHHHHHH Class A NNNNNNNN . NNNNNNNN . HHHHHHHH . HHHHHHHH Class B NNNNNNNN . NNNNNNNN . NNNNNNNN . HHHHHHHH Class C At each dot I like to think that there is a boundary, therefore there are boundaries after bits 8, 16, 24, and 32. This is an important concept to remember. We will now look at typical questions that you may see on subnetting. More often than not they ask what a host range is for a specific address or which subnet a certain address is located on. I shall run through examples of each, for each class of IP address. What subnet does 192.168.12.78/29 belong to? You may wonder where to begin. Well to start with let's find the next boundary of this address. Our mask is a /29. The next boundary is 32. So 32 - 29 = 3. Now 2^3 = 8 which gives us our block size i.e. 2 to the power of 3 equals 8. We have borrowed from the last octet as the 29th bit is in the last octet. We start from zero and count up in our block size. Therefore it follows that the subnets are:192.168.12.0 192.168.12.8 192.168.12.16 192.168.12.24 192.168.12.32 192.168.12.40 192.168.12.48 192.168.12.56 192.168.12.64 192.168.12.72

Subnet Calculator Netpict Online Degrees Exam Vouchers Free Magazines Topsites

www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

1/10

10/23/13
192.168.12.80 .............etc

Subnetting Made Easy

Our address is 192.168.12.78 so it must sit on the 192.168.12.72 subnet. What subnet does 172.16.116.4/19 sit on? Our mask is /19 and our next boundary is 24. Therefore 24 - 19 = 5. The block size is 2^5 = 32. We have borrowed into the third octet as bit 19 is in the third octet so we count up our block size in that octet. The subnets are:172.16.0.0 172.16.32.0 172.16.64.0 172.16.96.0 172.16.128.0 172.16.160.0 .............etc Our address is 172.16.116.4 so it must sit on the 172.16.96.0 subnet. Easy eh? What subnet does 10.34.67.234/12 sit on? Our mask is 12. Our next boundary is 16. Therefore 16 - 12 = 4. 2^4 = 16 which gives us our block size. We have borrowed from the second octet as bit 12 sits in the second octet so we count up the block size in that octet. The subnets are:10.0.0.0 10.16.0.0 10.32.0.0 10.48.0.0 .............etc Our address is 10.34.67.234 which must sit on the 10.32.0.0 subnet. Hopefully the penny is starting to drop and you are slapping the side of your head realising that you were a fool to think that subnetting was hard. We will now change the type of question so that we have to give a particular host range of a subnet. What is the valid host range of of the 4th subnet of 192.168.10.0/28? Easy as pie! The block size is 16 since 32 - 28 = 4 and 2^4 = 16. We need to count up in the block size in the last octet as bit 28 is in the last octet. 192.168.10.0 192.168.10.16 192.168.10.32 192.168.10.48 192.168.10.64 .................etc Therefore the 4th subnet is 192.168.10.48 and the host range must be 192.168.10.49 to 192.168.10.62, remembering that the subnet and broadcast address cannot be used. What is the valid host range of the 1st subnet of 172.16.0.0/17? /17 tells us that the block size is 2^(24-17) = 2^7 = 128. We are borrowing in the 3rd octet as bit 17 is in the 3rd octet. Our subnets are:172.16.0.0 172.16.128.0 The first subnet is 172.16.0.0 and the valid host range is 172.16.0.1 to 172.16.127.254. You must remember not to include the subnet address (172.16.0.0) and the broadcast address (172.16.127.255). What is the valid host range of the 7th subnet of address 10.0.0.0/14? The block size is 4, from 16 - 14 = 2 then 22 = 4. We are borrowing in the second octet so count in the block size from 0 seven times to get the seventh subnet. The seventh subnet is 10.24.0.0. Our valid host range must be 10.24.0.1 to 10.27.255.254 again remembering not to include our subnet (10.24.0.0) and the broadcast address (10.27.255.255). What if they give me the subnet mask in dotted decimal?

www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

2/10

10/23/13

Subnetting Made Easy


If you're lucky and they give you a mask in dotted decimal format then you should have an even easier time. All you need again is your block size. Let's say they have given a mask of 255.255.255.248 and you wish to know the block size. Here's the technique: 1. Starting from the left of the mask find which is the first octet to NOT have 255 in it. 2. Subtract the number in that octet from 256 to get your block size e.g. above it is 256 248 = block size of 8. 3. Count up from zero in your block size in the octet identified in step 1 as you have learned above (the example above would be in the last octet). Another example is a mask of 255.255.192.0 - you would simply count up in 256 - 192 = 64 in the third octet. One more example is 255.224.0.0 - block size is 256 - 224 = 32 in the second octet. What now? Now it's time to go and pick up those books again and go straight to the practice questions, completely by-passing any of their techniques. Use my method and you will be laughing! Happy subnetting!
Quote

Login/register to remov e this adv ertisement.

captobvious
Left for Android! =) Join Date: Location: Posts: Dec 2008 Upstate NY 649

12-31-2008 04:03 PM

#2

One word....... BRILLIANT!

Certifications: A+, Network+, CCNA

Quote

kriscamaro68
Senior Member

12-31-2008 06:39 PM

#3

Ok so I got this question on subnettingquestions.com and didn't see a way to answer it with your method: Question: You are designing a subnet mask for the 10.0.0.0 network. You want 3800 subnets with up to 3800 hosts on each subnet. What subnet mask should you use? Answer: 255.255.240.0 Here is also another one: Question: How many subnets and hosts per subnet can you get from the network 172.29.0.0 255.255.254.0? Answer: 128 subnets and 510 hosts Any way of explaining that out in your method. Thanks for that post I am finally starting to get subnetting.

Join Date: Location: Posts:

Apr 2008 Utah 937

Certifications: A+, Net+, Server+, Security+, MCPXP, MCTS-Win7

Last edited by kriscamaro68; 12-31-2008 at 06:42 PM. Quote

dynamik
Senior Member Join Date: Posts: Mar 2007 12,322

12-31-2008 07:22 PM

#4

Just memorize how many items you get for each number of bits (subtract two for hosts) 000000000001 000000000011 000000000111 000000001111 000000011111 000000111111 000001111111 = 2 (1) = 4 (2) = 8 (3) = 16 (4) = 32 (5) = 64 (6) = 128 (7)

www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

3/10

10/23/13
000011111111 000111111111 001111111111 011111111111 111111111111

Subnetting Made Easy


= 256 (8 ) = 512 (9) = 1024 (10) = 2048 (11) = 4096 (12)

If you can't remember what one is, just remember it's twice the number of the one before it (or halve the number after it if you're counting down). There's no math, tricks, etc. involved. So for the first question, you'll need 12 bits for both because the value is between 2048 and 4096 (you obviously have to go with the higher value). You can look at the other question the same way. /23 on a class B will give you 7 subnet bits and 9 host bits. 7 bits is 128 and 9 bits is 512 (minus 2 gives you 510).

Last edited by dynamik; 12-31-2008 at 08:43 PM. Quote

kriscamaro68
Senior Member

12-31-2008 07:59 PM

#5

Thanks for the post dynamik I think it's all coming together for me now.

Join Date: Location: Posts:

Apr 2008 Utah 937

Certifications: A+, Net+, Server+, Security+, MCPXP, MCTS-Win7

Quote

LordFlasheart
Junior Member Join Date: Posts: Jun 2005 5

01-01-2009 06:20 PM Originally Posted by kriscamaro68

#6

Ok so I got this question on subnettingquestions.com and didn't see a way to answer it with your method: Question: You are designing a subnet mask for the 10.0.0.0 network. You want 3800 subnets with up to 3800 hosts on each subnet. What subnet mask should you use? Answer: 255.255.240.0 Here is also another one: Question: How many subnets and hosts per subnet can you get from the network 172.29.0.0 255.255.254.0? Answer: 128 subnets and 510 hosts Any way of explaining that out in your method. Thanks for that post I am finally starting to get subnetting.

For your first question, how many bits do you need to borrow to accommodate 3800 subnets? The answer would be 12 bits as 2 ^ 12 = 4096. Your network address is a /8 by default as it is a Class A address so 8 + 12 = /20 mask. The second question is straightforward. Your address is Class B so it has a default mask of /16. 255.255.254.0 is the same as /23, so 23 - 16 = 7. 2 ^ 7 = 128 subnets and the number of hosts equals (2 ^ (32 - 23)) - 2 = 2 ^ 9 - 2 = 510 hosts. HTH
Quote

Morty3
Constantly learning Join Date: Posts: Dec 2008 136

01-01-2009 11:40 PM

#7

Very much alike Jeremy from CBT nuggets way. Find the last 1 in the mask, that one is your increment. If the last one is a 8, the nets also hop with and 8.

Certifications: CCENT, CCNA

www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

4/10

10/23/13

Subnetting Made Easy


Quote

bryantstewart
Junior Member

02-24-2009 10:26 PM

#8

Great write up. This helped me out a lot.

Join Date: Location: Posts:

Aug 2007 Minneapolis 29

Quote

kevin31
Senior Member Join Date: Posts: Jan 2008 148

02-25-2009 10:42 AM

#9

The lights are comming on.... Great post Lordflasheart! I have been trying to subnet in my head for ages but there seems to be so many ways and guess Im just getting confused. I like the method behind lordflaheart does this work on all address classes? Is it really as simply as it seems? What do people thing of the chart method? thanks Kevin
Quote

wbosher
Senior Member

02-25-2009 10:36 PM

#10

Get your hands on CBT Nuggets, this is by far the easiest method I've come accross. Using this method I can solve most subnetting problems in my head in less than 30 seconds. Give it a try.

Join Date: Nov 2007 Location: Wellington, New Zealand Posts: 422 Certifications: CCNA

Quote

kevin31
Senior Member Join Date: Posts: Jan 2008 148

02-26-2009 11:36 PM

#11

Thanks wbosher I'll have a look see if I get it LOL

Quote

Honky007
Junior Member Join Date: Location: Australia Posts: Sep 2008 Sydney, 26

04-14-2009 10:16 PM

#12

Thank you! ! You are the man!! I thought I'd have to struggle with subnetting for weeks until I found this post. It really is awesome...and it works! I practised with this for an afternoon and now there's no subnetting question on subnettingquestions.com - Free Subnetting Questions and Answers Randomly Generated Online that I can't get within about 30 seconds...and it's getting easier.

Certifications: MCSA 2003 * Yeah Baby! *

www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

5/10

10/23/13

Subnetting Made Easy


Can't thank you enough...

Quote

MattGibson
Member

04-15-2009 07:32 PM

#13

Got a subnetting question that I couldn't figure out. What is the first valid host on the subnetwork that the node 172.26.224.246/20 belongs to? Answer - 172.26.224.1

Join Date: Posts:

Feb 2009 36

Here was my logic using the system 24 - 20 = 4 and 2^4 = 16 I counted up and here's what I got: 0 16 32 48 64 80 96 112 128 144 160 186 202 218 234 250 So I figured the first host on the subnetwork would be 172.26.218.1 Considering that 224 falls inbetween 218 and 234. Where was I wrong?

Quote

Forsaken_GA
Senior Member Join Date: Posts: Aug 2008 3,954

04-15-2009 07:47 PM Originally Posted by MattGibson

#14

Got a subnetting question that I couldn't figure out. Where was I wrong?

Right here:

160 186 202 218 234 250 You went up by 26 instead of 16, putting the rest of your numbers 10 ahead. Subtract 10 from each number after 160, and you'll see that 224 is a subnet boundary, making 224.1 the correct choice. When you're doing this method, the last possible number on the octet is 256, if your last application of the range will put you over that, you made an error in incrementing, it's a good way to double check yourself. You should be able to go from 0 to 256 just by incrementing by your range and never going over. My personal rule of thumb is that, if I'm going to have to count the increment more than 5 steps, I'll just cheat and use division instead. Once you know the range, it's pretty easy to

www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

6/10

10/23/13

Subnetting Made Easy


find any subnet boundary. For the question they asked, you know the range is incrementing on the third octet, so take that number and divide it by your range. Drop any remainder/fraction, and then multiply the result by your range. 224 / 16 = 14. 14 * 16 = 224 Seems a bit obvious, but let's say they'd given you the 172.26.243.246/20 and asked for the first valid host in the subnet. 243 / 16 = 15.1875, drop the fraction, 15 * 16 = 240, 172.26.240.1 would be the first valid IP for the subnet that IP resides on.

Last edited by Forsaken_GA; 04-15-2009 at 08:02 PM. Quote

mikej412
Cisco Moderator

04-15-2009 07:48 PM Originally Posted by mattgibson

#15

Join Date: Location: Posts:

May 2005 Chicago 10,192

160 186 202 218 234 250 so i figured the first host on the subnetwork would be 172.26.218.1 considering that 224 falls inbetween 218 and 234. Where was i wrong?

Certifications: CCNP CCIP CCSP CCVP CCDP CCDA CCNA CS-CIPSS CS-CIPTDS CS-CIPTOS CS-CIPCSS CSCFWS CS-CVPNS CS-CISecS ISSP 4013 4011

160+16=176 176+16=192 192+16=208 208+16=224 224+16=240 240+16=256

Quote

londo29
Junior Member Join Date: Posts: Apr 2009 1

04-15-2009 07:51 PM

#16

144 160 186 You added incorrectly. after 160 the next number is 176 not 186 160 176 192 208 224
Quote

MattGibson
Member

04-15-2009 10:22 PM

#17

Thanks for the help guys. I figured it was that, but for some reason I wasn't seeing it. Good to know the error wasn't in the logic!

Join Date: Posts:

Feb 2009 36

Quote

alexander007
Junior Member

04-21-2009 09:21 PM

#18

What if they told to do this?

www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

7/10

10/23/13
Join Date: Location: Posts: May 2006 PR 5

Subnetting Made Easy


Given the Class C network of 204.15.5.0/24, subnet the network in order to create the network in Figure 3 with the host requirements shown. Figure 3

Thanks for the help


Quote

miller811
Senior Member

04-21-2009 10:03 PM

#19

When presented with a problem like this, sort the networks largest to smallest and then start subnetting Subnet - Range - hosts b. 204.15.5.0/27 - 204.15.5.0 - 204.15.5.31 - 30 hosts e. 204.15.5.32/27 - 204.15.5.32 - 204.15.5.63 - 30 hosts a. 204.15.5.64/28 - 204.15.5.64 - 204.15.5.79 - 14 hosts d. 204.15.5.80/28 - 204.15.5.80 - 204.15.5.95 - 14 hosts c. 204.15.5.96/30 - 204.15.5.96 - 204.15.5.99 - 2 hosts

Join Date: Location: Posts:

Oct 2007 Nashville 896

Certifications: CCNP, CCDP, MCSA, Security +. Network +, A+

Quote

alexander007
Junior Member Join Date: Location: Posts: May 2006 PR 5

04-21-2009 10:17 PM

#20

but how do you get that answer?....I need to see how to answer that...not just tha answer Thanks again

Quote

blackninja
Senior Member

04-21-2009 10:38 PM Originally Posted by alexander007

#21

but how do you get that answer?....I need to see how to answer that...not just tha answer Thanks again

You need to learn VLSM, check out: Click here!


Join Date: Location: Posts: Dec 2007 UK 386

Certifications: CCNA Security, CCNP, MCSE (S2003) & LPIC-1

Quote

miller811
Senior Member

04-21-2009 11:21 PM Originally Posted by alexander007

#22

but how do you get that answer?....I need to see how to answer that...not just tha answer Thanks again
Join Date: Location: Oct 2007 Nashville

Do you know how to subnet? You need to know how to subnet to solve the problem.

www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

8/10

10/23/13
Posts: 896

Subnetting Made Easy


The IP scheme that they gave you was a single subnet with 254 host possible. You need to then break it up into smaller subnets by subnetting...... 204.15.5.0 /24 could be broken into two segments of 128 bits by changing the mask to a /25 = 126 usable hosts per subnet 204.15.5.0 /25 204.15.5.0 - 204.15.5.127 204.15.5.128/25 204.15.128-204.15.5.255 it could also be broken into 4 subnets by starting out with a /26 mask = 62 usable host/subnet 204.15.5.0 /26 204.15.5.0-204.15.5.63 204.15.5.64/26 204.15.5.64-204.15.5.127 204.15.5.128/26 204.15.5.128 - 204.15.5.191 204.15.5.192/27 204.15.5.192-204.15.5.255 it could also be broken into 8 subnets with a /27 mask = 30 usable hosts/subnet 204.15.5.0 /27 204.15.5.32/27 204.15.5.64/27 204.15.5.96/27 204.15.5.128/27 204.15.5.160/27 204.15.5.192/27 204.15.5.224/27 it could also be broken into 16 subnets with a /28 mask = 14 usable hosts it could also be broken into 32 subnets with a /29 mask = 6 usable hosts it could also be broken into 64 subnets with a /30 mask = 2 usable hosts So you take the highest number of host you need per subnet first, 2 of the networks required 28 hosts, so the first 2 subnets would be /27 204.15.5.0 /27 204.15.5.32/27 since the second subnet extends to 204.15.5.63, the starting point for the next subnet would be 204.15.5.64 The next subnet requires 14 hosts, we would use a /28 mask so 204.15.5.64 /28 = 204.15.5.64-204.15.5-79 the next subnet requires 7 hosts, so we would need to use a /28 mask again so we would start with the next IP 204.15.5.80 /28 = 204.15.5.80 - 204.15.5.95 the last subnet only requires 2 IP address so we would use a /30 mask the next IP address is 204.15.5.96 /30 = 204.15.5.96 - 204.15.5.99 Hope that helps

Certifications: CCNP, CCDP, MCSA, Security +. Network +, A+

Last edited by miller811; 04-22-2009 at 02:02 PM. Quote

alexander007
Junior Member Join Date: Location: Posts: May 2006 PR 5

04-22-2009 12:35 AM

#23

I see now..Thanks

Quote

unitedfan1
Junior Member

08-05-2009 07:33 AM

#24

Hi guys, kinda new at all of this....i`m currently doing CCNA1 and i have a question i was hoping you could help me out with. Question : ABC has aquired a class B address 172.16.0.0 ,the Company needs to create a subnetting scheme to provide the following: 36 subnets with at least 100 hosts

www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

9/10

10/23/13

Subnetting Made Easy


24 " " " " " " " " 255 hosts 10 " " " " " " " " 50 hosts NB : It is not necessary to create a WAN connection a)How many subnets are needed for this network b)What is the minimum number of bits that can be borrowed c)What is the subnetmask for this network in dotted decimal, binary and slash format d)How many usable subnets are there e)How many usable hosts are there per subnet I know its a bit long but it would be great if you guys were to walk me through this one thank you
Quote

Join Date: Posts:

Aug 2009 1

mella060
Senior Member Join Date: Location: Posts: Jul 2009 Australia 187

08-05-2009 09:01 AM

#25

VLSM is basically subnetting a subnet. You have to be able to subnet first. Once you have mastered subnetting then working out VLSM issues will be a lot easier.

Certifications: CCNA

Quote

+ Reply to Thread
Previous Thread | Next Thread

Page 1 of 17

1 2 3 4 5 11 ...

Last

Social Networking & Bookmarks

Digg

del.icio.us

StumbleUpon

Google

Tw eet

Share

Home Forum Rules Contact Us Support Us Archive Privacy Statement Top


TechExams.net 2002 - 2013 - All times are GMT. The time now is 12:39 PM. - CSS version TechExams.Net is not sponsored by, endorsed by or affiliated with Cisco Systems, Inc. Cisco, Cisco Systems, CCDA, CCNA, CCDP, CCNP, CCIE, CCSI; the Cisco Systems logo and the CCIE logo are trademarks or registered trademarks of Cisco Systems, Inc. in the United States and certain other countries. All other trademarks, including those of Microsoft, CompTIA, Juniper ISC(2), and CWNP are trademarks of their respective owners. Powered by vBulletin Version 4 Copyright 2000 - 2013, Jelsoft Enterprises Ltd. Search Engine Optimization by vBSEO 3.6.0

www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

10/10

S-ar putea să vă placă și