Subject: Re: [vserver] vserver + virtual interfaces
From: Peter Sabaini <peter@sabaini.at>
Date: Wed, 12 Nov 2008 14:30:38 +0100
Wed, 12 Nov 2008 14:30:38 +0100
On Wednesday 12 November 2008 14:07:11 Herbert Poetzl wrote:
> On Tue, Nov 11, 2008 at 05:33:44PM -0300, Tomás de Barros Correia wrote:
> >  Hi all,
> >
> > I'd like to create about 5 virtual machines wich one with real IPs on
> > my machine (with just one physical network interface - eth0). I've
> > tried to create 5 virtual network interfaces (eth0:0, eth0:1 ...)

 -- snip --

> > There's something wrong or something missing in my configuration
> > an I would like to know the way to do it (tutorial, how to,
> > articles etc).
>
> the basic (and probably best) way to use a single IP
> for several guests is to assigne private addresses to
> the guest (e.g. 192.168.0.*) and S/DNAT them for the
> ports you want to be mapped.

What worked for me was either

a) setting up a dummy interface (dummy0), and use S/DNAT as you said or
b) use a VLAN device, eg. eth0.10 and assign a separate network to this

This of course depends on the circumstances but I'd be curious what other 
people think of the merits of each scenario. I kind of prefer b) if possible, 
seems simpler to me. 

bye,
peter.


> > Can anybody help me?
>
> very likely, but we all need more information about
> your system/setup ...
>
> > Thanks in advance!
>
> best,
> Herbert




["application/pgp-signature" not shown]