Host address range
Network address
Default mask
A –
B –
C –


Class D and any others are reserved or not really in use.

These are the general subnet masks for each IP address.

Now you want to get more specific.

You have an IP address of (a class C address) and you want to get a subnet it for 8 subnets and 25 hosts. (Note: you will always want enough, or more than enough subnets or hosts, more is never bad)

Subnets (number of one’s)
2n  (The n here is denoting the number of one’s needed in the last octet) = 2n = 23=  8 subnets

Hosts (number of zeros)
2-2 (The n here is denoting the number of zero’s needed in the last octet) = 2n-2 = 25-2 30 hosts

So from those two equations we see that we need 3 one’s and 5 zeros to give us 11100000 in binary and if we convert that to decimal we get (128+64+32) = 224 so our subnet mask for is

With that we can break our network into subnetworks. Just take 256 (256 is called the “magic” number, we always use it for the purpose of finding the steps between subnets) so
256-224 = 32. So we now know that there is 32 steps between each network. So we can get the network addresses as follows:

(8 subnetworks)

Each of these are a network address. With these you can tell the range, network address, and broadcast address of any IP address that comes your way.

For example a router pulls up
We as humans can see that that would fall on the table above between 32 and 64. Meaning that the network address of that IP is, the broadcast is (64 is the network address of the next subnet), and the range would be –

CITER and more coming your way.

If you want to practice subnetting the best thing I’ve found is:
It will automatically generate a problem and let you input the solution.

Katie Allred

Subscribe ToMy Newsletter

Join my mailing list to receive the latest news and updates from me

You have Successfully Subscribed!