Subject: Routing of vserver guests on multihomed hosts
From: Oliver Welter <mail@oliwel.de>
Date: Sat, 13 Sep 2008 11:35:08 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

I am looking for help to setup my routing ;(

Host:
Homed in two different vlans

vlan3@eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue
    inet 82.135.58.9/25 brd 82.135.58.127 scope global vlan3
vlan4@eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue
    inet 212.18.24.209/26 brd 212.18.24.255 scope global vlan4

Guest, having an interface only in vlan4

I tried different routing setups:
hosts default route via vlan4 -> works

hosts default route via vlan3 -> I see in the guest:
0.0.0.0 82.135.58.1 0.0.0.0 UG 0 0 0 *
As the guest does not know about vlan3, I cant ping to networks other
than those connected to vlan4

* default route via both vlan concurrently
bad idea - route -n shows both routes inside the guest. No routing if
the first rule is the wrong vlan (thats soemwhat obvious)

* source based routing entries with iproute2
removed the gerneal default route from the host, iproute2 settings are
not imported to the guest - so no routing at all....

So, as I have guests that are singlehomed on either one of the networks,
I am a bit stuck.
Anybody has an idea on this?

Oliver
- --
Protect your environment -  close windows and adopt a penguin!
PGP-Key: 3B2C 8095 A7DF 8BB5 2CFF  8168 CAB7 B0DD 3985 1721
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIy4lMyrew3TmFFyERAgnqAJ91Q+fTMx/848NZBMNSDT+uJGCcHwCeOAsR
PCGlCH5Nz5c8y1j1QtYxkvs=
=fFlm
-----END PGP SIGNATURE-----