[plug] Separate networks on switch

Craig Ringer craig at postnewspapers.com.au
Mon Jun 6 21:44:24 WST 2005


On Mon, 2005-06-06 at 21:29 +0800, Cameron Patrick wrote:
> Craig Ringer wrote:
> 
> > Not directly, without additional configuration. You *can* add static
> > routes to the hosts to tell them about the other network. On Linux, for
> > a member of the 192.168.200.x network, you could:
> > 
> > $ ip route add 192.168.201.0/24 dev eth0
> 
> Ooh, will that really work?  My knowledge of TCP/IP isn't quite up to
> explaining why or why not, but it seems kinda wrong to me - maybe it's
> just because I'm used to it.

Sure it will. It just tells the host on 192.168.200.0/24 that it can
make direct ARP broadcasts on eth0 when trying to determine the MAC
address of a host on 192.168.201.0/24 that it wants to communicate with.
Essentially, it's saying "192.168.201.0/24 is directly reachable on the
Ethernet segment eth0 is connected to". Of course, the other host must
have a matching static route back, or some other way of routing reply
packets.

Of course, just because you can do it doesn't mean it's a good
idea ;-) . Needing to ensure that all those hosts get their static
routes set up correctly on every boot would be a bit painful.

-- 
Craig Ringer




More information about the plug mailing list