Subnetting, How to calculate Network prefix(Vlsm)

damian86

Distinguished
May 17, 2009
683
0
19,010
Hi people,

Me again, I am looking for the calculation needed to determine the network prefix for a network.I have had the following question on the ccna assesment (I failed) I know what vlsm is I just cannot find the formula or method to determine the right network prefix, I 've done some google'ing but I cannot get what I'm looking for,maybe my search is wrong but I don't know, please help
 

damian86

Distinguished
May 17, 2009
683
0
19,010
imageview.php
[/URL][/img]

I think it was a temporary mediafire error, it shows properly now here.Thanks in advance.
 
Do you understand that /27 means that the mask is 255.255.255.224 and that the bits are 11111111 11111111 11111111 111000000? If the last 5 bits have a value of 31 (16+8+4+2+1), then a 27 bit mask allows for 8 networks having IP address ranges of 0-31, 32-63, 64-95, 96-127, etc. The goal is to make sure that each router is in a different netwok. You don't calculate it; you need to understand how it works.
 

damian86

Distinguished
May 17, 2009
683
0
19,010


Yes I understand that the snm would be 224 having a /27 as you use 27 bits and the 5 left are for hosts.I also understood the values you mentioned. Why do you say a 27 bit mask allows for 8 networks with those ranges, how did you figure it out? Sorry for being a pain but it is my first time doing subnetting.
Thanks for the help so far.