On Wed, Dec 14, 2016 at 3:57 PM, mierdatutis mi <mmm...@gmail.com> wrote:

> I have a host ubuntu with dhcp and I would like to have a ubuntu guest
> container with ip fixed. I'm trying to set up the /etc/network/interface
> with these conf:
>

Also, I've modified the config file of the ubuntu lxc:
>
> lxc.network.link = lxcbr0
>
>

> lxc.network.ipv4 = 192.168.1.223/24
> lxc.network.ipv4.gateway = 192.168.1.1
>
>
First thing first: you shoud either configure IP address in your container
(e.g. /etc/network/interfaces), or in lxc config file. Not both.

Another thing, is 192.168.1.0/24 the network of your lxc bridge (lxcbr0),
or your LAN?

IIRC lxcbr0 defaults to 10.0.3.0 (at least in did the past). If you want to
put the containers in the same network as your host, macvlan would be the
easiest choice. But it comes with a catch: you container will not be able
to communicate with your host by default, unless your host also use macvlan
interface.

-- 
Fajar
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to