<div dir="ltr">Hi Mathew,<div><br></div><div>yeah you've right ! I thought of an ESXi issue and I didn't know about Promiscuous Mode.</div><div>It works now.</div><div><br></div><div>thanks</div><div>Andrea</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-10 16:34 GMT+02:00 Mathew Pang <span dir="ltr"><<a href="mailto:mpang@sentient-energy.com" target="_blank">mpang@sentient-energy.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Andrea,<div><br></div><div>If I am understanding your issue correctly, I ran into the same problem when running containers inside of an ESXi server. The problem has to do with the virtual switch that the server is connected to. It only expects its ESXi server to be connected to it. Therefore, when it sees packets destined for MAC addresses that are not the ESXi server, it drops them. I fixed this by setting the switch in promiscuous mode.</div><div><br></div><div>I found the solution here: <a href="http://serverfault.com/questions/473438/lxc-vm-access-outside-the-host/473442#473442" target="_blank">http://serverfault.com/<wbr>questions/473438/lxc-vm-<wbr>access-outside-the-host/<wbr>473442#473442</a></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Aug 10, 2016 at 6:37 AM, Andrea <span dir="ltr"><<a href="mailto:andreamssbs@gmail.com" target="_blank">andreamssbs@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello everyone,<div><br></div><div>my situation is a VMware esxi 6 server with a new fresh installation of the last Ubuntu 16.04.1 iso distribution.</div><div>I updated everything and I followed these articles to use my container with an local network ip:</div><div><a href="https://bayton.org/2016/05/lxd-zfs-and-bridged-networking-on-ubuntu-16-04-lts/" target="_blank">https://bayton.org/2016/05/lxd<wbr>-zfs-and-bridged-networking-<wbr>on-ubuntu-16-04-lts/</a><br></div><div><a href="https://www.simpleprecision.com/ubuntu-16-04-lxd-networking-simple-bridge/" target="_blank">https://www.simpleprecision.co<wbr>m/ubuntu-16-04-lxd-networking-<wbr>simple-bridge/</a><br></div><div><br></div><div>my lan is:</div><div><br></div><div>Router (dhcp server): ip 10.9.4.54 / 26</div><div><br></div><div>Ubuntu 16.04: ip 10.9.4.1</div><div>Container1 (ubuntu 14.04): ip 10.9.4.11</div><div><br></div><div><br></div><div>the issue is that from xential the ping to the container responds also with ssh.</div><div><br></div><div>from the container the ping to xential works but to the router or any other in the lan or internet doesn't work.</div><div><br></div><div>I can also communicate with ssh between both.</div><div><br></div><div>here some configuration:</div><div><br></div><div><br></div><div><b>this is the interface file of Xential host :</b></div><div><div>auto br0</div><div>iface br0 inet static</div><div><span style="white-space:pre-wrap"> </span>address 10.9.4.1</div><div><span style="white-space:pre-wrap"> </span>netmask 255.255.255.192</div><div><span style="white-space:pre-wrap"> </span>network 10.9.4.0</div><div><span style="white-space:pre-wrap"> </span>broadcast 10.9.4.63</div><div><span style="white-space:pre-wrap"> </span>gateway 10.9.4.54</div><div><span style="white-space:pre-wrap"> </span>dns-nameservers 8.8.8.8 8.8.4.4</div><div><span style="white-space:pre-wrap"> </span>bridge_ports ens33</div><div><br></div><div>iface ens33 inet manual</div></div><div><br></div><div><br></div><div><br></div><div><b>ifconfig:</b></div><div><br></div><div><div>br0 Link encap:Ethernet HWaddr 00:0c:29:70:43:90</div><div> inet addr:10.9.4.1 Bcast:10.9.4.63 Mask:255.255.255.192</div><div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div><div> RX packets:4957 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:2722 errors:0 dropped:0 overruns:0 carrier:0</div><div> collisions:0 txqueuelen:1000</div><div> RX bytes:915910 (915.9 KB) TX bytes:370097 (370.0 KB)</div><div><br></div><div>ens33 Link encap:Ethernet HWaddr 00:0c:29:70:43:90</div><div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div><div> RX packets:4753 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:2900 errors:0 dropped:0 overruns:0 carrier:0</div><div> collisions:0 txqueuelen:1000</div><div> RX bytes:909736 (909.7 KB) TX bytes:438083 (438.0 KB)</div><div><br></div><div>lo Link encap:Local Loopback</div><div> inet addr:127.0.0.1 Mask:255.0.0.0</div><div> UP LOOPBACK RUNNING MTU:65536 Metric:1</div><div> RX packets:160 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:160 errors:0 dropped:0 overruns:0 carrier:0</div><div> collisions:0 txqueuelen:1</div><div> RX bytes:11840 (11.8 KB) TX bytes:11840 (11.8 KB)</div><div><br></div><div>vethOP7FMJ Link encap:Ethernet HWaddr fe:9f:5a:06:f9:c3</div><div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div><div> RX packets:213 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:117 errors:0 dropped:0 overruns:0 carrier:0</div><div> collisions:0 txqueuelen:1000</div><div> RX bytes:18845 (18.8 KB) TX bytes:15729 (15.7 KB)</div></div><div><br></div><div><br></div><div><br></div><div><b>lxc profile show default</b></div><div><br></div><div><div>name: default</div><div>config: {}</div><div>description: Default LXD profile</div><div>devices:</div><div> eth0:</div><div> name: eth0</div><div> nictype: bridged</div><div> parent: br0</div><div> type: nic</div></div><div><br></div><div><br></div><div><br></div><div>The container:</div><div><br></div><div><b>/etc/network/interface</b></div><div><br></div><div><div># source /etc/network/interfaces.d/*.cf<wbr>g</div><div><br></div><div>auto eth0</div><div>iface eth0 inet static</div><div><span style="white-space:pre-wrap"> </span>address 10.9.4.11</div><div><span style="white-space:pre-wrap"> </span>network 10.9.4.0</div><div><span style="white-space:pre-wrap"> </span>broadcast 10.9.4.63</div><div><span style="white-space:pre-wrap"> </span>gateway 10.9.4.54</div><div><span style="white-space:pre-wrap"> </span>dns-nameservers 8.8.8.8</div></div><div><br></div><div><br></div><div><br></div><div>What else can I do ???</div><div><br></div><div>thanks</div><span><font color="#888888"><div>Andrea</div><div><br></div><div><br></div><div><br></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainer<wbr>s.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.o<wbr>rg/listinfo/lxc-users</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr">Mathew Pang</div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a><br></blockquote></div><br></div>