Beruflich Dokumente
Kultur Dokumente
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
More
Next Blog
Create Blog
Sign In
CONTACT ME
Welcome
First of all, may I welcome you to my site. My name is Chris and I'm from the UK and work as a
Systems Engineer for Cisco. This blog was initially created to post up my subnetting technique but
has now got more stuff to do with attaining Cisco certifications. Either way I really hope that the
content is sufficent for your needs and I look forward to hearing your feedback. If you find that
the content really helps you please feel free to donate using the PayPal link on the right.
To view the index of all my articles please click here.
with Voice
Mail.$4.95/Mon
th. Beat any
Price by 10%.30
Days Free.
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.
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
About Me
Chris Bloomfield
View my complete profile
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
Donate
1/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
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 23 = 8 which gives us our block
Subscribe Now
size.
We have borrowed from the last octet as the 29th bit is in the last octet. We start from zero and
Subscribe in a reader
count up in our block size. Therefore it follows that the subnets are:192.168.12.0
Share
192.168.12.8
192.168.12.16
192.168.12.24
192.168.12.32
Bookmark This
192.168.12.40
192.168.12.48
192.168.12.56
192.168.12.64
Popular Posts
192.168.12.72
192.168.12.80
.............etc
Subnetting
Made
Easy
Critically Acclaimed!
Our address is 192.168.12.78 so it must sit on the 192.168.12.72 subnet.
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,
Our mask is /19 and our next boundary is 24. Therefore 24 - 19 = 5. The block size is 25 = 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:-
people
confused
when
get
it
really
comes
to
172.16.0.0
more
172.16.32.0
so
names
172.16.64.0
with
given
the
to
different
it:
Route
Summariz...
172.16.96.0
172.16.128.0
Adding
172.16.160.0
Hosts/PCs
.............etc
GNS3
to
VPCS
Configuration
Guide
Our address is 172.16.116.4 so it must sit on the 172.16.96.0 subnet. Easy eh?
24
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
to
calculate
the
Wildcard Mask
This is really simple. Simply
subtract
your
mask
from
Guide
What is GNS3 I
Hopefully the penny is starting to drop and you are slapping the side of your head realising that
you were a fool to think it was hard. We will now change the type of question so that we have to
hear
you
cry?
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
2/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
192.168.10.48
Index
192.168.10.64
.................etc
Percentile
How
ISPs
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.
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?
article
below,
rejigged
The block size is 4, from 16 - 14 = 2 then 22 = 4. We are borrowing in the second octet so count
Summarization
in the block size from 0 seven times to get the seventh subnet.
I've
already
posted
remebering 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?
about
route
The seventh subnet is 10.24.0.0. Our valid host range must be 10.24.0.1 to 10.27.255.254 again
technique
calculating
complex
for
route
summaries at http://w...
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.
Customer Feedback
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.
now.
actually
buy
simulator
was
some
software
going
lame
or
to
ass
buy
2. Subtract the number in that octet from 256 to get your block size (e.g. above it is 256 - 248 =
3. Count up from zero in your block size in the octet identified in step 1 as you have learned above
One more example is 255.224.0.0 - block size is 256 - 224 = 32 in the second octet.
Brad,
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
This
is
completely
invaluable information."
GNS3
Configuration
3/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
Guide comments
You may find they ask for how many bits you need to borrow for a certain amount of subnets, the
subnet mask needed for a certain number of hosts, or the number of hosts per subnet. THESE ARE
ALL EASY TO CALCULATE! All you need to remember is that you borrow bits for subnets and
Greaaaaaaaaaaaat"
Fayda,
GNS3
Configuration
Guide comments
Number of hosts = 2(32 - n) - 2 where n is the number of bits in your subnet mask
"Chris,
I just visited your blog and I
want to congratulate you on
Let's think of some questions. How many bits do you need to borrow to accommodate 6 subnets?
No matter what address you are given the maths is still the same. The formula is 6 = 2n so you
must find n which in this case is 3 as n = 2 gives only 4 subnets and n = 3 gives 8 subnets.
Simply add n to your mask for your new subnet mask. For example, if you had a /24 address and
you wanted 8 subnets then your mask will be 24 + 3 = /27.
What subnet mask should you use if you wanted 60 hosts per subnet? The formula is 60 = 2(32 n)
- 2 so you must find n which is 26. This is easy to find as you know that 26 - 2 = 62 so simply
Admin,
www.how2pass.com
"I wanted to thank the original
poster
for
this
Lastly the number of hosts per subnet. How many hosts per subnet in the address 172.16.0.0/23?
You have a /23 address therefore you formula is x = 2(32 - 23) - 2 = 29 - 2 = 510.
Another typical question they may ask will be giving you an IP address and mask and asking how
many subnets and hosts there are from that address, for example:
Question: How many subnets and hosts per subnet can you get from the network
able
172.30.0.0/28?
to
answer
subnetting
Great job."
From this you only need two pieces of information:
1. The default subnet mask is /16 as the address given is a class B address
subnets
notation."
when
using
prefix
For our example question the number of subnets = 2 ^ (28 - 16) = 2 ^ 12 = 4096 subnets.
We know that:
some
magical
tricks
of
subnetting."
1. The default subnet mask is /24 as the address given is a class C address
dude.
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
4/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
this post to Rate the author for
We know that:
Very Nice"
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!
Blog Archive
2011 (13)
If you are unsure that you have the correct answers why not download a subnet calculator to
double-check your answers? There is a great one by 3Com and can be downloaded from here.
2010 (3)
2009 (7)
Happy subnetting!
2008 (6)
Posted byChris Bloomfield at 16:20
Labels: best subnetting guide, block size, ccda, CCNA, ccnp, cidr, Cisco, easy, guide, ip, made,
mask, Subnetting, VLSM
2007 (8)
December (3)
November (5)
Subnetting Made Easy -
72 comments:
Critically Acclaimed!
Route Summarization
Gino Angelo wrote:
CCNA - Connecting
devices
hello, i have just one question. why is it that on example What is the valid host range of
the 7th subnet of address 10.0.0.0/14?
NAT in a Nutshell
The Answer was : Our valid host range must be 10.24.0.1 to 10.27.255.254 again
remebering
not
to
include
our
subnet
(10.24.0.0)
and
the
broadcast
address
(10.27.255.255).
Ca you show to us the complete solution? is it correct that it should have? :
10.0.0.0
10.4.0.0
10.8.0.0
10.16.0.0
10.32.0.0
10.64.0.0
10.128.0.0
and the seventh subnet would be 10.128.0.0 not 10.24.0.0?
help pls. thanks!
Chris' Reply:
Hi Gino,
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
5/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
As it is a /14 address and the next boundary is a /16 our block size is 2^(16-14) = 2^2
= 4 (where ^ is "to the power of"). We are borrowing in the second octet so all we have
to do is count up in 4's within that octet like so:
10.0.0.0
10.4.0.0
10.8.0.0
10.12.0.0
10.16.0.0
10.20.0.0
10.24.0.0
10.28.0.0
etc......
Our seventh subnet is 10.24.0.0 which has a broadcast address of 10.27.255.255
therefore our valid host range is 10.24.0.1 through to 10.27.255.254
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
6/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
question which nobody has an answer for.I am preparing for CCNA and somebody asked
me this question.Any help will be appreciated.
Question: What is the Binary ID of loopback's Network?
Answer: a)0
b)1
c)10101010
d)11111111
Now here is what i interpret from this question.I have to find the binary representation of
network for the address 127.0.0.1 .
I am not sure if this question is correct but i am not sure what to do with this.
Thanks in advance
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
7/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
8/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
What subnet does
192.168.12.78/8
192.168.12.78/16
192.168.12.78/24
192.168.12.78/32
belong to?
now according to your method what would be boundaries ? and valid host range ?
I kindly request you to explain this with the example.
Awaiting your kind reply.
raj
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
9/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
Zeller said... 3 December 2009 15:06
Hi Chris,
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).
What if the mask is 255.255.255.0. 256-0 is 256. 256 is my block size?
Thanks for all the help with this subnetting stuff. I've learned more from reading this
short article than in weeks of classroom explanation.
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
10/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
Thank you.
Rgds,
Liza
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
11/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
Chris Bloomfield said... 4 June 2010 13:34
Firstly - Your blog made subnetting easy (like it says on the tin)!
That said I am having a few issues with questions where it asks for how many subnets
and hosts for a given network. For example:
Question: How many subnets and hosts per subnet can you get from the network
172.30.0.0/28?
Answer: 4096 subnets and 14 hosts
Now I can get the 14 hosts bit but from reading your blog I'm thinking that the /28
means that we're only looking at the 4th octet so I'm thinking that as our range is 16
there must be 16 available subnets (16 x 16 = 256) but clearly I'm wrong.
I'm sure it has to do with the network being class B but where do I go from there?
Hi,
These sorts of questions are very simple. If I haven't covered these sorts of questions
perhaps I should add that in here somehwere.
172.30.0.0/28
What can we tell from that address? The two very basic things we know is that it is a
Class B address and that it has a /28 mask.
To calculate the number of subnets you use the following formula:
2 ^ (number_of_bits_in_mask - number_of_bits_in_default_mask)
So for this question the forumla is 2 ^ (28 - 16) = 2 ^ 12 = 4094 subnets.
To calculate the number of hosts you use the following formula:
(2 ^ (32 - number_of_bits_in_mask)) - 2
So for this question the number of hosts per subnet is:
(2 ^ (32 - 28)) - 2 = (2 ^ 4) - 2 = 14.
Hope this helps and good luck with your studies!
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
12/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
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).
In the above example, I am confused as to why the range is not 172.16.127.256 and
why is it 172.16.127.254?
Thank you.
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
13/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
Subnetting said... 9 November 2010 09:51
Hi Chris,
Thanks a ton for your time publishing this to us free.God bless you my friend. I got
following problem, please help me.
--------------------------------Question: Which subnet does host 172.31.56.247 255.255.255.240 belong to? Answer:
172.31.56.240
-----------------------------172.31.56.247
255.255.255.240
Block = 256 - 240 = 16
So
172.31.0.0
172.31.16.0
172.31.32.0
172.31.48.0
172.31.64.0
I was thinking 172.31.48.0 is the answer
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
14/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
Chris Bloomfield said... 21 November 2010 14:09
Hi and I'm glad my post has helped you out :-)
Your question involves subnetting directly on a boundary. In your case you have a Class
B address subnetted to the default mask of a Class C address (i.e. /24). In this case the
Class B address behaves just as it would a Class C address with a default mask.
For example, let's take a Class C address with default mask:
192.168.1.0/24
You automatically know that the broadcast address is 192.168.1.255 as you have the
whole of the final octet.
Take a Class B address of:
172.28.229.0/24
There is no difference except for the numbers of course. You still have the whole of the
last octet to play with so the broadcast address must be 172.28.229.255
I hope you understand this. If not I'm more than happy to assist you further.
Good luck with your studies!
Chris
How best do I answer this? Instead of figuring out the numbers for each of the listed
subnet masks?
Thank you,
Devin
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
15/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
Hi,
600 hosts requires 10 bits as (2 ^ 10) - 2 = 1022 hosts.
If we subtract the 10 bits from the 32 bits that make up an IP address we have 22 bits. If
we convert /22 into longhand we have 255.255.252.0 which is your answer.
HTH,
Chris
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
16/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
junaid said... 9 March 2011 15:40
Hi chris ,Junaid here,
Ive couple of questions which i couldn't understand ,am pasting the related paragraphs:
Let's think of some questions. How many bits do you need to borrow to accommodate 6
subnets? No matter what address you are given the maths is still the same. The formula
is 6 = 2n so you must find n which in this case is 3 as n = 2 gives only 4 subnets and n =
3 gives 8 subnets. Simply add n to your mask for your new subnet mask. For example, if
you had a /24 address and you wanted 8 subnets then your mask will be 24 + 3 = /27.
What subnet mask should you use if you wanted 60 hosts per subnet? The formula is 60
= 2(32 - n) - 2 so you must find n which is 26. This is easy to find as you know that 26 2 = 62 so simply subtract 6 from 32 to get the 26. Therefore your mask is /26.
1: in the 1st paragraph how can we calculate the value of n , please elaborate it for me.
2: In the 2nd paragraph how did you got the value of n =26??
please help me get over with it and the rest of things u described here are outstanding,
Thanx
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
17/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
but valid range (1-126.255.255.255)
it means (N.H.H.H) N=Network bits
H=Host bits
Ip address=(8.8.8.8)=8+8+8+8=32
so hence 8bits for Network and 24 bits for Host
but question is that
10.0.0.0/14 (by default for /8)
but /14 then network takes
[8(his default own)+6 (bit borrow)]
we know binary as
128.64.32.16.8.4.2.1
if we want binary of 32 then
0 .0 .1 . 0 .0.0.0
as that of on our section for/14
11111111.11111100.00000000.00000000
11111111.11111100.00000000.00000000
I'st .II'nd .III'rd .IV'th octet
now in the second octet
11111100 here like in binary each octet the power of
128.64.32.16.8.4.2.1
1 .1 .1 .1 .1.1.0.0
--------------.*.0.0
here last one form left as star power of binary 4 it mean block of 4 will be
then
10.0.0.0(first NID)
10.4.0.0
10.8.0.0
10.12.0.0
10.16.0.0
.
.
.
.
.
.
10.252.0.0
.
.
10.255.255.254
10.255.255.255 (last finally BID)
and number of subnet and number of host per subnet
subnet=2^n
here n is totel network bit borrow
host per subnet=(2^m)-2
here mis total left bit (Host)
in that
subnet=2^6=64 subnet
host per subnet=(2^18)-2
=262144-2=262142
thanks
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
18/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
Saurabh srivastava
ALL FOR CLASS A
yes you tried very well but No way
because we know
For class a range (0-127.255.255.255)
but valid range (1-126.255.255.255)
it means (N.H.H.H) N=Network bits
H=Host bits
Ip address=(8.8.8.8)=8+8+8+8=32
so hence 8bits for Network and 24 bits for Host
but question is that
10.0.0.0/14 (by default for /8)
but /14 then network takes
[8(his default own)+6 (bit borrow)]
we know binary as
128.64.32.16.8.4.2.1
if we want binary of 32 then
0 .0 .1 . 0 .0.0.0
as that of on our section for/14
11111111.11111100.00000000.00000000
11111111.11111100.00000000.00000000
I'st .II'nd .III'rd .IV'th octet
now in the second octet
11111100 here like in binary each octet the power of
128.64.32.16.8.4.2.1
1 .1 .1 .1 .1.1.0.0
--------------.*.0.0
here last one form left as star power of binary 4 it mean block of 4 will be
then
10.0.0.0(first NID)
10.4.0.0
10.8.0.0
10.12.0.0
10.16.0.0
.
.
.
.
.
.
10.252.0.0
.
.
10.255.255.254
10.255.255.255 (last finally BID)
and number of subnet and number of host per subnet
subnet=2^n
here n is totel network bit borrow
host per subnet=(2^m)-2
here mis total left bit (Host)
in that
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
19/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
subnet=2^6=64 subnet
host per subnet=(2^18)-2
=262144-2=262142
ok thanks
hi buddy, the explanation was really cool and simple,thanks for that.
i have a doubt, plz solve it.
suppose you have given a class B ip address 172.12.12.1. with default sub-net mask
255.255.0.0 and asked to create 3 networks and each network should have 3 hosts, then
what will be the subnet mask,what are the different sub networks, what is the host range
in each network
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
20/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
create 1024 subnets.
a. Find the subnet mask.
b. Find the number of addresses in each subnet.
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
21/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
Thanks for the wonderful explanation. I now understand everything you mentioned
except the following part:
What subnet mask should you use if you wanted 60 hosts per subnet? The formula is 60
= 2(32 - n) - 2 so you must find n which is 26. This is easy to find as you know that 26 2 = 62 so simply subtract 6 from 32 to get the 26. Therefore your mask is /26.
Is there another way to explain this, especially finding the value of n, I simply just dont
get it.
HP
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
22/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
The only part I need help with now is how to find the CIDR prefix from a subnet mask
and visa versa.
E.g. 255.255.128.0 is /17 but how do I work this out? Is there a formula?
Can anyone help please???
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
23/24
10/18/2014
Subnetting Made Easy And Other Cisco Tidbits: Subnetting Made Easy - Critically Acclaimed!
.252 /6
.254 /7
.255 /8
/23 is 255.255.254.0, 23-16=7, /7 is .254
/12 is 255.240.0.0, 12-8=4, /4 is .240
Hope that helps. :)
Post a Comment
Newer Post
Home
Older Post
http://subnettingmadeeasy.blogspot.ca/2007/11/subnetting-made-easy-lesson.html
24/24