- Feb 26, 2000
- 7,006
- 1
- 81
The bane of our existance, the subnet...don't get me started on reverse subnetting...that is a whole other disaster...but for now...for anyone who needs it...for everyone who forget (like me) how to do it every time someone asks....
The number of subnets allowed in the network is two to the power of the number of subnet ID bits.
The number of hosts allowed per subnet is two to the power of the number of host ID bits, less two.
Subnet Math
the number of subnets = the number of subnet bits to the power of 2
eg. 192.168.1.1/25 SM=255.255.255.128
I borrowed 1 bit
1^2=2
Now how many hosts per subnet!
Easy!
The number of hosts = the number of host bits to the 2 to the power of H minus 2 (We have to reserve something for the poor network right?)
or 2 to the power of host bits minus 2
(2^H)-2
eg. 192.168.1.1/25 SM=255.255.255.128
2^H = 2^7 = 128
now don't forget to subtract 2!
128-2=126
Subnet your heart out...
The number of subnets allowed in the network is two to the power of the number of subnet ID bits.
The number of hosts allowed per subnet is two to the power of the number of host ID bits, less two.
Subnet Math
the number of subnets = the number of subnet bits to the power of 2
eg. 192.168.1.1/25 SM=255.255.255.128
I borrowed 1 bit
1^2=2
Now how many hosts per subnet!
Easy!
The number of hosts = the number of host bits to the 2 to the power of H minus 2 (We have to reserve something for the poor network right?)
or 2 to the power of host bits minus 2
(2^H)-2
eg. 192.168.1.1/25 SM=255.255.255.128
2^H = 2^7 = 128
now don't forget to subtract 2!
128-2=126
Subnet your heart out...
