Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

This is very basic question but i really could not find how it will be.There are two network IP address are given, .Would like to know are these two addresses in same network or in different networks

I believe its in same network but one of tutorials says its in different network may be I interpreted wrong.

Can anyone please give clear picture about IP address ?

share|improve this question

closed as off topic by MadHatter, Tom O'Connor, Dan, MDMarra, ThatGraemeGuy Oct 10 '12 at 11:51

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

The question/answer is a bit daunting, but what you want is here. – Zoredache Oct 10 '12 at 6:49

The 24 is the size of subnet.

To really calculate if both ips are in the same subnet you would have to write the ip as binary (windows calculator is your friend ;)):

binary:  00001010.00000000.00000000.00001010
the first 24 bits are the subnet:


binary:  00011110.00000000.00000000.00001010
the first 24 bits are the subnet:

So if boths subnets are identical, the IPs are on the same subnet.

The subnets are different: -> and are on different subnets.

"24" is a special subnet. 24 bits are 3 bytes (the first three blocks of the ip are the subnet).

So you don't have to mess up with bits. -> subnet: 30.0.0.x (correctly written as -> subnet: 10.0.0.x (correctly written as

Example for two ips in identical subnets:


see for more details.

share|improve this answer

They are in different subnets for sure. See the '/24' in the end. It signifies that first 24 bits are the network address and rest would be the host address. Since the first 24 bits are different, hence they are different subnets.

Example: and are in same network. In fact 10.0.0.XXX would be in same network.

share|improve this answer
Thanks Aditya for your response ,one more doubt would like to ask if subnets bits are not given ,how do we identity a network? Is it based on Classful addressing then? – Patha Oct 10 '12 at 6:51
Because IP addresses are depleting, classful addressing is rarely used. Mostly CIDR is all around us. But if subnet bits are not given, I guess it is implied that classful is being used. Still ask for the bits every time just to be safe. – Aditya Patawari Oct 10 '12 at 6:59
Aditya can we conclude it as these two address are in same networks but on different subnets in that network? – Patha Oct 10 '12 at 7:04
They are on different subnet for sure. In real life scenario there is a possibility that they might even belong to the same machine. With the information you have provided, it is difficult to tell more. I think you should read the comment on your question by @Zoredache to understand the concepts. – Aditya Patawari Oct 10 '12 at 7:09
Anyways Thanks again Aditya.. – Patha Oct 10 '12 at 7:19

They are on different network. means there can be 254 usable hosts on this network. It will become Subnet mast --> --> Network Address --> --> Usable hosts --> Broadcast Address

So all hosts having ip's between 1 - 254 are on same network.

Same goes for network.

But those two are different networks. Because will have it's host start from to

I hope it helps

share|improve this answer

The clue is the /24 part. /24 means that the first 24 bits (which correspond to the first three octets of the IP) is the subnet-part of the address. Since this part is different in both of the IPs, they're on different subnets. They might still be on the same physical network (i.e., cabled together to the same switch), but they won't be able to talk to eachother without a router present.

Without the subnet mask, it's hard to identify the network size/class, but there are some defaults reserved for private LANs:

  • is usually a /24 or /16 network
  • is usually a /8 network
  • 172.(16 - 31) is usually a /20 network (Not as common as the other two)

PS: /24 is a short-form of writing that the IP has a networking mask of Other common ones are /8 ( and /16 ( There are also other subnet masks that don't line up with whole octets (i.e. subnet masks that don't consist of just 255 and 0), but that's beyond the scope of this answer (Read up on CIDR, if you're interested)

share|improve this answer

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