[plug] Separate networks on switch

Cameron Patrick cameron at patrick.wattle.id.au
Mon Jun 6 21:29:59 WST 2005


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.

> or in bernard-ish:
> 
> # ip r a 192.168.201.0/24 dev eth0

:-P

> It's also possible, IIRC, for a DHCP server to tell a host to add static
> routes. I don't know which DHCP clients / OSs actually obey this,
> though.

Last I looked it was implemented very flakily - it was much simpler to
just let the router know about it.

Cameron.




More information about the plug mailing list