<div dir="ltr">Just create the file. Further information is available here:<div><a href="http://askubuntu.com/questions/446831/how-to-let-built-in-dhcp-assign-a-static-ip-to-lxc-container-based-on-name-not">http://askubuntu.com/questions/446831/how-to-let-built-in-dhcp-assign-a-static-ip-to-lxc-container-based-on-name-not</a><br><div><br><div><br></div><div>Regards,</div><div><br></div><div>BB</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 2:59 PM, Thouraya TH <span dir="ltr"><<a href="mailto:thouraya87@gmail.com" target="_blank">thouraya87@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello, <br></div>Thanks a lot for answer :)<br></div>i'm testing this:<br><br>2) or you enable "LXC_DHCP_CONFILE=/etc/lxc/<div>dnsmasq.conf" in /etc/default/lxc-net and then assign IP addresses to hostnames statically in /etc/lxc/dnsmasq.conf<br><br></div><div>So, i have modified /etc/default/lxc-net<br></div><div>a- <br>LXC_BRIDGE="lxcbr0"<br>LXC_ADDR="10.0.3.1"<br>LXC_NETMASK="255.255.255.0"<br>LXC_NETWORK="<a href="http://10.0.3.0/24" target="_blank">10.0.3.0/24</a>"<br>LXC_DHCP_RANGE="10.0.3.2,10.0.3.254"<br>LXC_DHCP_MAX="253"<br><b>LXC_DHCP_CONFILE="/etc/lxc/dnsmasq.conf"</b><br><br></div><div>b- i can't find this file /etc/lxc/dnsmasq.conf<br></div><div>i have only these files:<br>:/etc/lxc# ls<br>default.conf lxc-usernet<br><br>?<br><br></div><div>Bests. <br></div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>