Re: Isolating two network processes on same machine

From: linux-os
Date: Wed Nov 24 2004 - 14:04:57 EST


On Wed, 24 Nov 2004, linux-os wrote:

On Wed, 24 Nov 2004, Lee Revell wrote:

On Wed, 2004-11-24 at 11:23 -0500, linux-os wrote:
I was going to say, set the netmask small enough so that both
machines are on different networks and set default routes to
your gateway.... But there is a bug somewhere that doesn't
allow a netmask of anything but 0 in the last byte.


Really? That would be a horrible bug. How about some references?

Lee


Huh? Try it........

Script started on Wed 24 Nov 2004 12:03:43 PM EST
# ifconfig eth1 1.2.3.4 netmask 255.255.255.7
SIOCSIFNETMASK: Invalid argument
# ifconfig eth1 1.2.3.4 netmask 255.255.255.0
# exit

Script done on Wed 24 Nov 2004 12:04:42 PM EST



Well I guess you can set it to:

eth1 Link encap:Ethernet HWaddr 00:10:5A:27:7B:16
inet addr:1.3.4.5 Bcast:1.255.255.255 Mask:255.255.255.252
^^^
inet6 addr: fe80::210:5aff:fe27:7b16/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:68120 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:1000
RX bytes:4383953 (4.1 Mb) TX bytes:378 (378.0 b)
Interrupt:22 Base address:0xbc00


That should ne able to isolate the two machines on the same wire.


Cheers,
Dick Johnson
Penguin : Linux version 2.6.9 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by John Ashcroft.
98.36% of all statistics are fiction.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/