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
Solved

Subnetting ? I can ping different net !

Posted on 2001-08-23
9
478 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
  • 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

856 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