[Lxc-users] lxc macvlan bridge problem

Fajar A. Nugraha list at fajar.net
Wed Sep 26 13:16:16 UTC 2012


On Wed, Sep 26, 2012 at 7:59 PM, 宣铭艺 <xuanmingyi at gmail.com> wrote:
> yes I used static ip.
> I seted the static ip 10.0.0.2 in the config file.
> It can't ping www.google.com

Read my previous response about "don't know much about networking or bridge".

>
> Today
> I don't set the static ip?Will that use dhcp?

Depends on how you create and configure the container.

If you use templates, and your host environment and lxc installation
is "sane"-enough, and you don't configure any networking settings
inside the container, then yes, it will use DHCP.

> Now It can ping each other and ping www.google.com
>
> In containers:
> Then I traceroute the packages
> I find a gateway.I think it's a dhcp and router

That's how dhcp works.

-- 
Fajar




More information about the lxc-users mailing list