<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jun 27, 2016 at 10:05 PM, ronkaluta <span dir="ltr"><<a href="mailto:rkaluta@gmail.com" target="_blank">rkaluta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#333333">
<br>
As a follow up to my last post<br>
#-----------------------------<br>
# The network interfaces sometimes get mixed up.<br>
#-----------------------------<br>
lxc config edit ${CONTAINER}<br>
# example<br>
#--------<br>
name: x2go1248<br>
profiles:<br>
- bridge<br>
config:<br>
volatile.base_image:
89715de6a3e329ecb10af529cb81c33c157a5124980dcfab7ecaa5063f4e3a5c<br>
volatile.eth0.hwaddr: 00:16:3e:6d:1f:63<br>
<a href="http://volatile.eth0.name" target="_blank">volatile.eth0.name</a>: eth2 ##### THIS IS WRONG
!!! ... eth0 should show twice<br>
</div></blockquote><div><br></div><div>It's not wrong. You simply don't understand how it works.</div><div><br></div><div><br></div><div>volatile.eth0 -> the "eth0" part there should be just a label. Taken from<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF" text="#333333">devices:<br>
eth0:<br>
</div></blockquote><div><br></div><div>... that one.</div><div><br></div><div>If you want that label to point to device named "eth0" inside the container, see <a href="https://github.com/lxc/lxd/blob/master/doc/configuration.md#type-nic">https://github.com/lxc/lxd/blob/master/doc/configuration.md#type-nic</a></div><div><br></div><div><div>devices:</div><div> eth0:</div></div><div> name: eth0</div><div><br></div><div>You should also be able to use something like this to make it more informative</div><div><div><div><br></div><div>devices:</div><div> net_1:</div></div><div> name: eth0</div></div><div> host_name: veth-c1-eth0</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>