On Wed, Feb 07, 2007 at 09:33:11AM -0500, KyoungSoo Park wrote: > Hello, > > I'm a newbie,
newbies have one free, but next time, please do not hijack threads [http://en.wikipedia.org/wiki/Thread_hijacking] or your message will be ignored ... > and I'm trying to assign an IP to each vserver guest. > Specifically, I have three working IPs > (128.112.136.35, 128.112.136.36, 128.112.136.37) but only > one NIC (eth0) on a machine. I want to run three vserver > guests but each vserver should only (and exclusively) use > one of the IPs. that is actually the typical setup for Linux-VServer guests, and thus it doesn't require any special setup > How should I set up this? create the guest with an interface option like this: --interface eth0:128.112.136.35/24 (adjust the /24 to match your network prefix) or, if they have been created already, modify the entry in /etc/vservers/<name>/interfaces to contain a single directory (e.g. '0') with the following entries: ip (file with the ip, e.g. 128.112.136.35) prefix (file with the prefix, e.g. 24) dev (file with the device name, e.g. eth0) > I checked the documentation, and this mailing list, > but I couldn't figure out yet. > What I've tried is to set something like > > IPROOT="128.112.136.36" that sounds like the deprecated legacy config we abandoned roughly two years ago, so iif your tools are still using this config, it's definitely time to upgrade to newer ones (e.g. 0.30.212+) > in /etc/vservers/guestX.conf, but everytime I run the > guestX, I always see eth0 is mapped to 128.112.136.35, > which is the the IP address of the machine as you ssh > into as root. I want to see this IP changed to > 128.112.136.36 in guestX when I ifconfig in guestX. > Is this possible? yes, the config descibed above will do exactly that HTC, Herbert > Thanks, > KyoungSoo > _______________________________________________ > Vserver mailing list > [email protected] > http://list.linux-vserver.org/mailman/listinfo/vserver _______________________________________________ Vserver mailing list [email protected] http://list.linux-vserver.org/mailman/listinfo/vserver
