Cisco Certification IP subnetting

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
IP subnetting RIckH 07-16-07
|--> Re: IP subnetting Gabriele Beltra...07-16-07
|   |--> Re: IP subnetting reza.behroozi@g...07-17-07
|   `--> Re: IP subnetting reza.behroozi@g...07-17-07
Posted by RIckH on July 16, 2007, 8:40 am
Please log in for more thread options
Can someone please explain how the answer to this question is
obtained ?

How many subnets are gained by subnetting 172.17.32.0/20 into multiple/
28 subnets?

They answer is 256, but I can not figure out how to come up with that
answer.

Thanks for the help


Posted by pk on July 16, 2007, 9:17 am
Please log in for more thread options
RIckH wrote:

> Can someone please explain how the answer to this question is
> obtained ?
>
> How many subnets are gained by subnetting 172.17.32.0/20 into multiple/
> 28 subnets?
>
> They answer is 256, but I can not figure out how to come up with that
> answer.

If you keep 172.17.32.0/20 as is, you have just one big network (of course).

If you use a /28 mask, then you have the following subnets (relative to the
original address and mask):

172.17.32.0/28 .00100000.0000 0000 (last two octets, space at /28)
172.17.32.16/28 .00100000.0001 0000
172.17.32.32/28 .00100000.0010 0000
172.17.32.48/28 .00100000.0011 0000
...
172.17.32.240/28 .00100000.1111 0000 (16 subnets so far)

then:

172.17.33.0/28 .00100001.0000 0000
...
172.17.33.240/28 .00100001.1111 0000 (other 16 subnets )

and so on until

172.17.47.0/28 .00101111.0000 0000
...
172.17.47.240/28 .00101111.1111 0000


So, you have 16*16 subnets (eg, 256) if you use a /28 mask.

You can also see this very quickly if you think that you gain 8 bits for the
subnet part (/20 -> /28), thus you have 2^8 = 256 subnets.

Posted by Gabriele Beltrame on July 16, 2007, 9:22 am
Please log in for more thread options

> Can someone please explain how the answer to this question is
> obtained ?
>
> How many subnets are gained by subnetting 172.17.32.0/20 into multiple/
> 28 subnets?
>
> They answer is 256, but I can not figure out how to come up with that
> answer.
>
> Thanks for the help
>
Hi,


2^(28-20) = 256 subnets (with ip subnet-zero)


172.17.32.0/20 172.17.32.0-172.17.47.255
172.17.32.0 (16 subnets)
172.17.32.0-172.17.32.15
172.17.32.16-172.17.32.31
....
....
172.17.32.240-172.17.32.255

172.17.33.0 (16 subnets)
172.17.33.0-172.17.33.15
172.17.33.16-172.17.33.31
....
....
172.17.33.240-172.17.33.255
.....
.....
172.17.47.0 (16 subnets)
172.17.47.0-172.17.47.15
172.17.47.16-172.17.47.31
....
....
172.17.47.240-172.17.47.255


Regards,
Gabriele



Posted by pk on July 16, 2007, 9:23 am
Please log in for more thread options
RIckH wrote:

> Can someone please explain how the answer to this question is
> obtained ?
>
> How many subnets are gained by subnetting 172.17.32.0/20 into multiple/
> 28 subnets?
>
> They answer is 256, but I can not figure out how to come up with that
> answer.

If you keep 172.17.32.0/20 as is, you have just one big network (of course).

If you use a /28 mask, then you have the following subnets (relative to the
original address and mask):

172.17.32.0/28 .00100000.0000 0000 (last two octets, space at /28)
172.17.32.16/28 .00100000.0001 0000
172.17.32.32/28 .00100000.0010 0000
172.17.32.48/28 .00100000.0011 0000
...
172.17.32.240/28 .00100000.1111 0000 (16 subnets so far)

then:

172.17.33.0/28 .00100001.0000 0000
...
172.17.33.240/28 .00100001.1111 0000 (other 16 subnets )

and so on until

172.17.47.0/28 .00101111.0000 0000
...
172.17.47.240/28 .00101111.1111 0000


So, you have 16*16 subnets (eg, 256) if you use a /28 mask.

You can also see this very quickly if you think that you gain 8 bits for the
subnet part (/20 -> /28), thus you have 2^8 = 256 subnets.

Ok, strictly speaking, you "gain" 255 subnets (you had one, and now you have
256), but I hope you got the idea.


Posted by RIckH on July 16, 2007, 3:16 pm
Please log in for more thread options
> RIckH wrote:
> > Can someone please explain how the answer to this question is
> > obtained ?
>
> > How many subnets are gained by subnetting 172.17.32.0/20 into multiple/
> > 28 subnets?
>
> > They answer is 256, but I can not figure out how to come up with that
> > answer.
>
> If you keep 172.17.32.0/20 as is, you have just one big network (of course).
>
> If you use a /28 mask, then you have the following subnets (relative to the
> original address and mask):
>
> 172.17.32.0/28 .00100000.0000 0000 (last two octets, space at /28)
> 172.17.32.16/28 .00100000.0001 0000
> 172.17.32.32/28 .00100000.0010 0000
> 172.17.32.48/28 .00100000.0011 0000
> ...
> 172.17.32.240/28 .00100000.1111 0000 (16 subnets so far)
>
> then:
>
> 172.17.33.0/28 .00100001.0000 0000
> ...
> 172.17.33.240/28 .00100001.1111 0000 (other 16 subnets )
>
> and so on until
>
> 172.17.47.0/28 .00101111.0000 0000
> ...
> 172.17.47.240/28 .00101111.1111 0000
>
> So, you have 16*16 subnets (eg, 256) if you use a /28 mask.
>
> You can also see this very quickly if you think that you gain 8 bits for the
> subnet part (/20 -> /28), thus you have 2^8 = 256 subnets.
>
> Ok, strictly speaking, you "gain" 255 subnets (you had one, and now you have
> 256), but I hope you got the idea.

Thanks, That makes perfect sense now.


Similar ThreadsPosted
Subnetting help June 6, 2006, 9:04 pm
Subnetting July 3, 2006, 4:40 am
Subnetting May 18, 2007, 11:16 pm
IP subnetting July 16, 2007, 8:40 am
Subnetting Question February 7, 2005, 2:45 am
Fast Subnetting Anyone? April 28, 2005, 5:51 am
IP subnetting tips... February 20, 2006, 9:41 pm
subnetting a subnet May 24, 2006, 8:32 pm
Subnetting for Dummies April 18, 2007, 1:24 pm
Subnetting question? April 28, 2007, 2:26 am
Check my subnetting? May 3, 2007, 6:37 pm
A few subnetting question May 7, 2007, 1:28 pm
Subnetting question May 26, 2007, 9:25 am
Dreaming about subnetting October 16, 2008, 8:42 am
CCNA subnetting question April 21, 2005, 8:58 am