<div dir="ltr">When using multiple nics in the container, the order sometimes changes after a restart.<div>So eth0 becomes eth1, vice versa.</div><div><br></div><div>when using LXD, how is this order determined? </div><div>There is no entry for eth0 in the config, since that is a standard lxc network device. </div><div>Only the additional network device is added in the container config:</div><div>e.g.</div><div><br></div><div><div>name: c1</div><div>profiles:</div><div>- default</div><div>config:</div><div>  raw.lxc: |</div><div>    lxc.mount.entry = /var/lib/lxd/lxc/c1/devices/net/tun dev/net/tun none bind,create=file 0 0</div><div>    lxc.mount.entry = /var/lib/lxd/lxc/c1devices/kvm dev/kvm none bind,create=file 0 0</div><div>    lxc.mount.entry = /var/lib/lxd/lxc/c1/devices/fuse dev/fuse none bind,create=file 0 0</div><div>  volatile.baseImage: a4066a730e6b3d8021dcc7d0c59f2c37624ffdb60d10f1e09c336e4e1631915c</div><div>  volatile.eth0.hwaddr: 00:16:3e:33:3c:c2</div><div>  volatile.br0.hwaddr: 00:16:3e:5b:4f:19</div><div>devices:</div><div>  br0:<br></div><div>    parent: br0</div><div>    type: nic</div><div>ephemeral: false</div></div><div><br></div><div><br></div><div>Both nics have a volatile entry (done by lxc or lxd ?)</div><div><br></div><div>Sometime after a restart the nics have switched order in the container.</div><div>This of course messes up the network config in the container.</div><div><br></div><div>How can I make the eth0 and eth1 order stick?</div><div><br></div><div>Thanks for your help!</div><div><br></div><div>-Janjaap</div></div>