Possible Duplicate:
What are the essentials of a Subnet mask?

hi,

In all the machines having internet connections , i can see a value called subnet mask associated with the TCP/IP properties of the ethernet interface.

what is the logic behind it? or how can i calculate from a particular IP address?

I just read it from some blogs but it was not clear

link|improve this question

56% accept rate
2  
And -1 for ignoring this. (Hence, see also [ What is a subnet mask, and the difference between a subnet mask of 255.255.255.0 and 255.0.0.0?](superuser.com/questions/54802/…)) – Arjan Sep 24 '10 at 21:35
feedback

closed as exact duplicate by Sathya, Arjan, Diago Sep 24 '10 at 21:41

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

2 Answers

up vote 2 down vote accepted

This is best answered by Wikipedia, see CIDR notation to understand the importance of subnet masks.

link|improve this answer
feedback

The subnet mask is what determines how many clients are assigned ip addresses within that domain and how many subnets can be created. That is determined by the subnet mask. A 255.255.255.0 can have 254 hosts (clients with IP addresses) on a single subnet. With two subnets there are 126 hosts. While a subnet address with 255.0.0.0 with a single subnet can yield over 16 million hosts.

There is a simple calculator here that is useful.

Since this is only a simplified answer this wiki goes into greater detail.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.