Subject: Re: [vserver] Networking questions
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Wed, 23 Jun 2010 01:27:07 +0200

On Mon, Jun 21, 2010 at 10:35:36PM -0700, Siv wrote:
> My requirement is to allow different routing table for the 
> guest and host.

> Is that possible? 

yes, if you want performance, use multiple routing tables
and select them based on the source IP, if you don't care
about performance, check out the network namespaces, they
will allow you to have 'virtual' network spaces

> Please let me know,

best,
Herbert

> --Siv
> 
> On Fri, Jun 18, 2010 at 10:12 AM, Siv <punumaa@gmail.com> wrote:
> 
> >
> >
> > On Thu, Jun 17, 2010 at 4:05 PM, Martin <inkubus@interalpha.co.uk> wrote:
> >
> >> On Thu, 2010-06-17 at 09:52 -0700, Siv wrote:
> >> > Hi,
> >> >
> >> > Few networking related questions. Hope you can help.
> >> >
> >> > 1. How is it possible to assign different IP addresses for host and
> >> > guest ? Basically am interested in the internals. Any pointer to doc
> >> > would be helpful.
> >> You use aliases to assign multiple IPs to the same device and then
> >> chbind to limit the processes within a vserver to only using particular
> >> IPs.  Or at least, that's my understanding.
> >>
> >
> > So does that mean there is no virtual interface concept ? Or is this the
> > virtual interface implementation in VServer?
> >
> >>
> >> > 2. Can I configure guest and host be in different networks / subnets
> >> > (assuming I have multiple interfaces) ? I can't try this yet as I just
> >> > have one interface.
> >> You don't need separate interfaces, just something out of te interface
> >> that can route multiple networks.  Your point is correct though as you
> >> can pick which interface the aliases are assigned to and thus separate
> >> using multiple interfaces.
> >>
> >> > 3. Does guest and host use different routing tables / VRFs ?
> >> I believe they use the same one.
> >>
> >> HTH
> >>
> >> Cheers,
> >>  - Martin
> >>
> >>
> >>
> >