[lxc-users] container on the same network than other devices
Anton Chernousov
anton at gita-dev.ru
Sun Mar 31 07:52:52 UTC 2019
No problem. You must create network bridge with local network adapter
and bridging lxc containers to it.
For example network subsystem for LXD manager:
auto lxd-cluser-01
iface lxd-cluser-01 inet static
bridge_ports eth0
address 192.168.0.232
netmask 255.255.255.0
Default container config to network bridge:
lxc network attach-profile lxd-cluser-01 default eth0
30.03.2019 14:41, Carmelo Ingrao пишет:
> Hello !
>
> I'm new to this mailing list. I'm using LXD since a few months, but
> until now, my conainters were bridged in their own network.
>
> Now, I want the containers can obtain IP adresses on the same subnet
> than the LXD manager, and other devices in my home network.
>
> So :
>
> Home router : 192.168.0.219
> Desktop computer : 192.168.0.100
> Domotic solution : 192.168.0.200
> LXD "manager" : 192.168.0.232
>
> I want the containers with IP like 192.168.0.240-250, and be able to
> be seen and see the orher devices.
>
> Thanks :)
>
>
> --
>
> Carmelo Ingrao
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20190331/dd2f882d/attachment.html>
More information about the lxc-users
mailing list