Solved

Subnetting ? I can ping different net !

Posted on 2001-08-23
9
492 Views
Last Modified: 2008-03-04
It strange huh..
I have a PC with IP : 10.1.0.19 mask 255.255.255.128 and other PCs with IP : 10.1.0.X mask 255.255.255.0

The computers can ping each other. How it would be ? There is subnetting I put there to difference between this computers. But they can ping each other. Any explaination ?
0
Comment
Question by:Imelda
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 31

Expert Comment

by:rid
ID: 6417119
I think that is quite all right. I mean, I think ping works that way. Is this a problem? I think you'll need a firewall or something to hide the computers from each other.
Regards
/RID
0
 
LVL 5

Expert Comment

by:vsamtani
ID: 6417125
Do you have gateways defined for the two machines?

If not, then although they are on different subnets, they will have no option but to send the ping packet out on the local segment. The other pc does happen to be on the local segment, so it will reply.

If you want to isolate the two subnets from each other, you really should put them on different cables. And then you would put a router in between in order to connect them up again.

Vijay
0
 
LVL 4

Accepted Solution

by:
jwalsh88 earned 50 total points
ID: 6417193
Here,s how this works lmelda.  

The first subnet you have is 10.0.1.0 255.255.255.128
That means that you are using the network range of
10.0.1.0-10.0.1.127.  Now, 10.0.1.0 is the network and
10.0.1.127 is the broadcast address.  your machine is
using IP address 10.0.1.19 which means he will send out an
arp request for the mac address of any machine on his
subnet.  Which is 10.0.1.1-10.0.1.126.  If the machine
doesn't fall in that range he will look in his routing
table to see where he is supposed to send these packets
(usually a default route/gateway).  He only uses his
subnet mask to decide which PCs are on his local subnet
and which ones he needs to send to a router.  Your other
subnet is 10.0.1.0 255.255.255.0.  That means that you are
using the network range of 10.0.1.0-10.0.1.254.  If you
notice you have overlapping subnets here.  So, PCs on your
first subnet will be able to send to any machine on your
second subnet with and IP address of 10.0.1.1-10.0.1.126
as long as they are on the same physical LAN segment.  The
reason this happened was that you subnetted on one side
but not the other side.  This is what you should have done.

Make one network 10.0.1.0 255.255.255.128 and you can use
IP addresses 10.0.1.1-10.0.1.126 on your machines.  Then,
you make the other network 10.0.1.128 255.255.255.128 and
you can use IP addresses 10.0.1.129-10.0.1.254.  That will
give you 126 addresses for each subnet and they can't talk to each other.  If that's not enough address then subnet differently like this:
10.0.1.0 255.255.255.0 and 10.0.2.0 255.255.255.0.
or even like this:
10.0.0.0 255.255.0.0 and 10.1.0.0 255.255.0.0
that will give you these ranges respectively:
10.0.0.1-10.0.255.254
10.1.0.1-10.1.255.254
**Thats alot of IP addresses**

Anyways if you have your example on the same network (Physically)
Then you are seeing normal activity, you just have your subnets wrong.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:Imelda
ID: 6420588
jwalsh88,You said there is address overlapping subnet. Do you mean IP address 10.1.0.1 with mask 255.255.0.0 will detected as a conflicted IP address with 10.1.0.1 with mask 255.255.255.0 ?
0
 
LVL 31

Expert Comment

by:rid
ID: 6420883
I don't think you can have two machines with the *same* address on the physical network - irrespective of netmask. It would seem you need to give the machines that should NOT be able to communicate addresses in different ranges, as outlined by jwalsh88. The netmask sets the "borderline" and the addresses must be in the ranges on either side of this line for communication not to work.
Regards
/RID
0
 
LVL 4

Expert Comment

by:jwalsh88
ID: 6421676
The only purpose for the subnet mask is so that the machine knows when to look into it's routing table for a route to a machine outside his network range.  And to set the broadcast address for his network in his routing table.
When I said overlapping I meant that there were two networks defined and one of the ranges of one network overlaps the range of another.  rid is correct, you can never have two devices with the same IP address, regardless of subnet mask, on the same physical wire.  The will here each other and conflict.
0
 

Expert Comment

by:deschneider
ID: 6422222
Jwalsh88 and rid sum it up pretty well. Your network should under normal circumstances use only one subnet mask. THat way you are able to segment traffic.
0
 
LVL 4

Expert Comment

by:jwalsh88
ID: 6422253
You can use multiple subnet mask lengths but that takes alot of planning and you really need to know what you are doing.  In most cases always use the same length of masks.
0
 

Author Comment

by:Imelda
ID: 6425931
Now I have known the problem that I faced. I decide to accept jwalsh88 as answer. Thank you for all you guys. :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question