Link to home
Start Free TrialLog in
Avatar of lukegriffiths110
lukegriffiths110

asked on

hosts per subnet

can some1 explain how to calculate the maximum number of hosts per subnet.

e.g. class B network with a subnet mask of 255.255.252.0
ASKER CERTIFIED SOLUTION
Avatar of neteducation
neteducation

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Matthew-Elvey-San-Francisco
Matthew-Elvey-San-Francisco

Yup, that's the answer.  http://jodies.de/ipcalc can make things easy for you - I just pasted 255.255.252.0 into the netmask field, and it told me: Hosts/Net: 1022    
BTW, a "class B" network has a netmask of 255.255.0.0 by definition, so your question is a bit confused.  ipcalc will confirm that a network with that netmask has 65532 host addresses.
mat: class b has 65534 (2^16 - 2)
He has subnetted his class B into a 1024 host subnet. Quite common. We've done the same with the private class A range (and the private Class B - Grr!).

Neteducation is right on the money.
Hosts are calculated from the subnet masks. The concept of classes is now deminishing and we are now in the world of CIDR (Classless InterDomain Routing)

Anyways to calculate the hosts of a particular subnet just subtract the non-255 octet from 256. e.g if you have a mask of 255.255.255.252 you can have four hosts in the network.
One important thing the first address of would be the subnetwork address which identifies the subnetwork and the last address would be the broadcast address. so effectively you will have two IP addresses which you can use.
 
Hope it helps.