Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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

share|improve this question

marked as duplicate by Sathya, Arjan, BinaryMisfit Sep 24 '10 at 21:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

And -1 for ignoring this. (Hence, see also [ What is a subnet mask, and the difference between a subnet mask of and](…)) – Arjan Sep 24 '10 at 21:35
up vote 2 down vote accepted

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

share|improve this answer

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 can have 254 hosts (clients with IP addresses) on a single subnet. With two subnets there are 126 hosts. While a subnet address with 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.

share|improve this answer

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