<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>Thanks Anton and Andrey !</div><div><br></div><div>I've done it, using macvlan bridge :</div><div><br></div><div># lxc profile copy default lanprofile<br></div><div># lxc profile device set lanprofile eth0 nictype macvlan</div><div># lxc profile device set lanprofile eth0 parent ens160<br></div><div># lxc profile copy default lanprofile</div><div><br></div><div># lxc profile show lanprofile<br><div style="margin-left:40px">config: {}<br>description: Default LXD profile<br>devices:<br> eth0:<br> name: eth0<br> nictype: macvlan<br> parent: ens160<br> type: nic<br> root:<br> path: /<br> pool: default<br> type: disk<br>name: lanprofile<br>used_by:<br>- /1.0/containers/www1<br>- /1.0/containers/monitoring<br>- /1.0/containers/rp1<br>- /1.0/containers/blog<br></div><br></div><div><br></div><div><br></div><div># lxc launch -p lanprofile ubuntu:18.04 monitoring</div><div><br></div><div><br></div><div>AND .... BOOM IT'S AMAZING :p<br></div><div><br></div><div><br></div><div>carmelo@infratest2:~$ lxc list<br>+------------+---------+----------------------+------+------------+-----------+<br>| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |<br>+------------+---------+----------------------+------+------------+-----------+<br>| blog | RUNNING | 192.168.0.253 (eth0) | | PERSISTENT | 0 |<br>+------------+---------+----------------------+------+------------+-----------+<br>| monitoring | RUNNING | 192.168.0.240 (eth0) | | PERSISTENT | 0 |<br>+------------+---------+----------------------+------+------------+-----------+<br>| rp1 | RUNNING | 192.168.0.249 (eth0) | | PERSISTENT | 0 |<br>+------------+---------+----------------------+------+------------+-----------+<br>| www1 | RUNNING | 192.168.0.241 (eth0) | | PERSISTENT | 0 |<br>+------------+---------+----------------------+------+------------+-----------+<br><br></div><div><br></div><div>Thanks both of you for pointing out the solution :)</div><div><br></div><div>Have a great day !</div><div><br></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 31 mars 2019 à 11:35, Andrey Repin <<a href="mailto:anrdaemon@yandex.ru">anrdaemon@yandex.ru</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Greetings, Carmelo Ingrao!<br>
<br>
> I'm new to this mailing list. I'm using LXD since a few months, but until<br>
> now, my conainters were bridged in their own network.<br>
<br>
<br>
> Now, I want the containers can obtain IP adresses on the same subnet than<br>
> the LXD manager, and other devices in my home network.<br>
<br>
<br>
> So : <br>
<br>
<br>
> Home router : 192.168.0.219<br>
> Desktop computer : 192.168.0.100<br>
> Domotic solution : 192.168.0.200<br>
> LXD "manager" : 192.168.0.232<br>
<br>
<br>
> I want the containers with IP like 192.168.0.240-250, and be able to be seen and see the orher devices.<br>
<br>
You can use macvlan bridge network on LAN interface instead of the default dedicated bridge.<br>
<br>
<br>
-- <br>
With best regards,<br>
Andrey Repin<br>
Sunday, March 31, 2019 12:23:01<br>
<br>
Sorry for my terrible english...<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br></div>Carmelo Ingrao</div></div>