[Lxc-users] Setting up server in lxc container for dummies

Tony Su tonysu at su-networking.com
Sat Aug 3 21:49:24 UTC 2013


Kevin

I don't see anywhere the OP described his Host as multi-homed, much
less that the Container would be.

On general principles multiple NICs only make sense when connecting to
multiple <physical> networks, isolated from one another...

But, given the information posted, that is a very big assumption. If
nothing of the like is described, then I assume only one physical NIC
connecting to a single network which can support any number of IP
addresses and bridged devices which could in turn support any number
of virtual networks with their own addresses.

Tony

On Thu, Aug 1, 2013 at 1:44 PM, Kevin LaTona <lists at studiosola.com> wrote:
> Tony,
>
> If the container is being made available to both a public ip connection and
> a private ip connection at the same time.
>
> Would it not require either 2 NICS's that are connected to 2 different
> networks.
>
> For example one would be running on a private bridged network and the other
> on a public bridged network via these different NIC cards.
>
> Or a router using NAT to punch a hole into the local network that this
> container is on?
>
> -Kevin
>
>
>
>
> On Aug 1, 2013, at 8:57 AM, Tony Su <tonysu at su-networking.com> wrote:
>
> ---------- Forwarded message ----------
> From: "Tony Su" <tonysu at su-networking.com>
> Date: Aug 1, 2013 8:56 AM
> Subject: Re: [Lxc-users] Setting up server in lxc container for dummies
> To: "Kevin LaTona" <lists at studiosola.com>
> Cc:
>
> You don't need multiple hardware NICs.
> Just bind your Container network config to the same bridge device that
> connects to the proper physical network and configure your IP address in the
> Container if not already specified in your LXCconfig.
>
> Assumes you're configuring static addressing and not using DHCP.
>
> Tony
>
> On Jul 31, 2013 10:33 PM, "Kevin LaTona" <lists at studiosola.com> wrote:
>>
>>
>> On Jul 31, 2013, at 8:24 PM, Dan Kegel <dank at kegel.com> wrote:
>>
>> There are plenty of web pages about this, but they seem to
>> assume that you've created the lxc config file by hand.
>> I have never done that; I just use whatever lxc-create creates.
>>
>>
>>
>> I should also add that much of lxc files are created for you when creating
>> the container as you stated earlier.
>>
>> All I've been doing is tweaking these pre fab files to work in a bridged
>> static ip mode vs dhcp mode.
>>
>>
>>
>> In other words you are not going to have to be writing all the config
>> files from square one.
>>
>> Rather tweaking and adding a few lines here and there.
>>
>>
>> -Kevin
>>
>>
>> ------------------------------------------------------------------------------
>> Get your SQL database under version control now!
>> Version control is standard for application code, but databases havent
>> caught up. So what steps can you take to put your SQL databases under
>> version control? Why should you start doing it? Read more to find out.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Lxc-users mailing list
>> Lxc-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/lxc-users
>>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk_______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
>




More information about the lxc-users mailing list