<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 19, 2016 at 5:41 PM, Bostjan Skufca <span dir="ltr"><<a href="mailto:bostjan@a2o.si" target="_blank">bostjan@a2o.si</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I had similar experience using CentOS 7 as host.<div><br></div><div>I did not investigate it yet, but for some reason veth network interfaces were not being destroyed when containers stopped, and this could only be seen with "brctl show" as more interfaces were attached to a bridge than there were containers running. The effect was that multiple network interfaces with the same MAC were attached to the bridge and successful connections were, well, sporadic.</div><div><br></div><div>On the first inspection it only happened to some containers that had explicit mounts from outside (unconfirmed!, just a hunch for now).</div><div><br></div></div></blockquote><div><br></div><div><br></div><div>I use a workaround:</div><div><br></div><div><div># ls -la /etc/lxc/script/net-down</div><div>-rwxr-xr-x 1 197623 197121 36 Apr 27  2015 /etc/lxc/script/net-down</div></div><div><br></div><div><br></div><div><div># cat /etc/lxc/script/net-down</div><div>#!/bin/bash</div><div>/sbin/ip link del "$5"</div></div><div><br></div><div><br></div><div><div># grep script /var/lib/lxc/rdp/config</div><div>lxc.network.script.down = /etc/lxc/script/net-down</div></div><div><br></div><div><br></div><div>The correct interface name is passed as argument to script executed by lxc.network.script.down.</div><div><br></div><div>-- </div><div>Fajar</div><div><br></div></div></div></div>