Re: Isolating two network processes on same machine
From: Ole Laursen
Date: Fri Nov 26 2004 - 19:54:12 EST
linux-os <linux-os@xxxxxxxxxxxxxxxxxx> writes:
> 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....
Yeah, but that part of it is actually working as long as our processes
are running on different machines. The problem is that on the same
machine e.g. with this configuration
> > ifconfig eth0:0 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255
> > ifconfig eth0:1 10.0.1.2 netmask 255.255.255.0 broadcast 10.0.1.255
then the kernel somehow shortcircuits the routing table and doesn't
forward the packets to the default gateway, even though the two
addresses are on different subnets. It probably somehow knows that it
possesses both IPs itself, and then skip any further routing.
So basically, our problem is that the kernel is being too clever. If
we could just dumb it down or trick it somehow...
Thanks for your input,
--
Ole Laursen
http://www.cs.aau.dk/~olau/
-
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/