From: Jacques Gelinas (jack_at_solucorp.qc.ca)
Date: Fri 19 Jul 2002 - 21:25:08 BST
On Thu, 18 Jul 2002 12:59:06 -0500, Nuno Silva wrote
> one quick hack is to have the ip configuration up before you start
> vservers and comment out IPROOTDEV in vservername.conf.
Yes this is a solution and I suggest you move this configuration stuff right
in the per-vserver config script. So for a vserver named foo, you edit
/etc/vserverfs/foo.sh. It will look like
case $1 in
/sbin/ifconfig eth0:foo x.y.z.w
/sbin/ifconfig eth1:foo x.y.z.a
/sbin/ifconfig eth0:foo down
/sbin/ifconfig eth1:foo down
echo $0 pre-start
echo $0 pre-stop
echo $0 post-start
echo $0 post-stop
This way, things are setup and deleted whenever you start/stop the vserver.
> Jukka Laaksola wrote:
> > Hello!
> > I have a little problem with vservers multi-IP configuration. I read the
> > manual and didn't found any help.
> > I have two ethernet cards on my main host, eth0 and eth1.
> > eth0: network 10.10.10.0/24
> > eth1: network 192.168.0.0/24
> > With vserver-0.17 I got one ip, 10.10.10.40, worked well in the virtual
> > host. Now with vserver-0.18's multi-ip support I thought I can get
> > access to the both of my networks.
> > If I set IPROOT="184.108.40.206 10.10.10.40" in my virtual host's config.
> > It tries to set both ips as aliases for eth0. My IPROOTDEV=eth0.
> > I also tried put IPROOTDEV="eth0 eth1", but that wasn't work either.
> > So is it somehow possible to use two nic in one virtual host?
> > 10.10.10.40 as eth0:v1 and 192.168.0.11 as eth1:v1.
> > If it isn't possible, is it in the todo list?
> > Very happy vserver user Jukka
Jacques Gelinas <jack_at_solucorp.qc.ca>
vserver: run general purpose virtual servers on one box, full speed!