Tech Support Guy banner
Status
Not open for further replies.

Mask Problem

836 views 7 replies 3 participants last post by  warrior19 
#1 ·
Hi gurus

I have a question, I need to accomplish the following

I have the following class C ip address and I would like to accept only the specific Range

223.11.20.192-223.11.20.222

what would be the mask that will help me with this task just that range.

Thanks a bunch
 
#2 ·
The subnet mask to achieve this will be 255.255.255.224.

This will segment your class c in 8 subnets each with 30 hosts.

In your case Network address will be 223.11.20.192.

So usable ip addresses for PCs/Hosts will be in the range 223.11.20.193 - 223.11.20.222

The ip address 223.11.20.223 will be the broadcast address for this network being the 1st of 8 possible subnets if mask 255.255.255.224 is used.

The next network will be 223.11.20.224....
 
#4 ·
On top of a piece of paper right out 128 64 32 16 8 4 2 1

Underneath if all bits can be on (1) or off (0).

Then 11111111 (binary) added up equals 255 in decimal. I mean adding 128 +64+32+16+8+4+2+1 = 255.

255 minus 224 = 31 You cannot use the first address as that is always the network address and the last as that is the broadcast address. the range starts from 0 to 31 so 32 actual IP addresses but minus 2 equals 30 usuable for PCs/Hosts in that subnet.

You dont want all 255 addreses so in the last octect of 255.255.255.224 you mask with 1's and 0s what you do require.

You say you only need 10 host addresses so my mistake!!!!. The subnet mask that would provide 16 not 32 ip addresses is 255.255.255.240.

255 minus 240 = 15 Range 0 to 15 equals 16 IP addreses of which 14 are usable.

Maybe this will help. http://www.certbible.org/learn-subnetting-in-5-minutes/
 
Status
Not open for further replies.
You have insufficient privileges to reply here.
Top