Networking Forums

Networking Forums > Computer Networking > Linux Networking > interesting subnet question

Reply
Thread Tools Display Modes

interesting subnet question

 
 
C3
Guest
Posts: n/a

 
      02-22-2004, 10:41 AM
If you have two machines with the following setings,


[ Machine 1 ] IP: 192.168.0.1, Subnet: 255.255.255.0
[ Machine 2 ] IP: 192.168.0.2, Subnet: 255.255.255.252

will the M1 be able to ping M2? What about the other way round? The subnet
of M2 allows it to talk to IP addresses 192.168.0.1-192.168.0.3, right?


What do the RFCs say about this?


cheers,

C3


 
Reply With Quote
 
 
 
 
=?iso-8859-1?Q?Bj=F8rn?= Tore Sund
Guest
Posts: n/a

 
      02-22-2004, 11:36 AM
On Sun, 22 Feb 2004 22:41:20 +1100, C3 wrote:
> If you have two machines with the following setings,
>
>
> [ Machine 1 ] IP: 192.168.0.1, Subnet: 255.255.255.0
> [ Machine 2 ] IP: 192.168.0.2, Subnet: 255.255.255.252
>
> will the M1 be able to ping M2? What about the other way round? The subnet
> of M2 allows it to talk to IP addresses 192.168.0.1-192.168.0.3, right?


The subnet of M2 defines a rather restricted localnet, essentially
where it will send broadcast traffic. A subnet mask is not an IP
filter - there's nothing there to prevent either from pinging the
other unless you've got network gear enforcing a "correct" subnet
mask in which case one of the boxes simply won't be connected.

> What do the RFCs say about this?


About the difference between a subnet mask and an IP filter? I
can't imagine anyone thinking they'd need an RFC for that. But
feel free to browse http://www.ietf.org/ yourself.

Bjørn
--
Bjørn Tore Sund "When in fear, and when in doubt;
(E-Mail Removed) Run in circles, scream and shout!"
Interaction! - Anonymous
http://www.interaction.worldcon.org.uk/
 
Reply With Quote
 
C3
Guest
Posts: n/a

 
      02-23-2004, 12:05 AM
I have found that when I set a client machine up with a restrictive subnet
mask (.252), it will not directly contact other local machines. Instead, it
will forward the packets to the default router and try to get them routed
that way.

Under Windows 2000 at least, the subnet mask seems to indeed prevent
machines on the same segment talking to each other. I'm trying to figure out
how this works exactly.


cheers,

C3


 
Reply With Quote
 
Johan Lindquist
Guest
Posts: n/a

 
      02-23-2004, 07:39 AM
So anyway, it was like, 02:05 CET Feb 23 2004, you know? Oh, and, yeah,
C3 was all like, "Dude,

> I have found that when I set a client machine up with a restrictive
> subnet mask (.252), it will not directly contact other local
> machines. Instead, it will forward the packets to the default router
> and try to get them routed that way.


Yes, this /is/ the expected result of setting a subnet mask. In fact,
it's pretty much the reason why they exist in the first place, to
define which addresses can be connected to directly and which needs
the assistance of a router to be reached.

> Under Windows 2000 at least, the subnet mask seems to indeed prevent
> machines on the same segment talking to each other. I'm trying to
> figure out how this works exactly.


Any basic class in networking would teach you all you need to know
here. Or a book titled "Networking for dummies", I expect.

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
09:36:57 up 1 day, 16:12, 7 users, load average: 2.19, 2.20, 2.15
$ cat /dev/bollocks "echo y | format c:" Registered Linux user #261729
embrace end-to-end convergence
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
subnet question study Windows Networking 1 01-29-2009 09:00 PM
VPN Clients and subnet, NOT the usual "255.255.255.255 subnet mask" question! snowdog_2112 Windows Networking 4 09-09-2006 01:35 AM
Subnet question? =?Utf-8?B?Um9k?= Windows Networking 1 04-24-2005 05:22 AM
subnet question djc Windows Networking 23 10-04-2004 06:01 PM
subnet to subnet routing question S James Linux Networking 0 09-04-2003 03:37 PM



1 2 3 4 5 6 7 8 9 10 11