<div dir="ltr">Please show your /etc/network/interfaces for more clues. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 19, 2016 at 1:34 PM, mierdatutis mi <span dir="ltr"><<a href="mailto:mmm286@gmail.com" target="_blank">mmm286@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><div><div><div><div>Hi,<br></div>I've configured a container with ubuntu and my host with ubuntu also. My idea is that they are in same lan with statics ip's.<br></div>For these I've configured macvlan.<br><br></div>In my host I have:<br><br>eth0 Link encap:Ethernet direcciónHW 30:f9:ed:da:2c:b8<br> Direc. inet:192.168.1.114 Difus.:192.168.1.255 Másc:255.255.255.0<br> Dirección inet6: fe80::32f9:edff:feda:2cb8/64 Alcance:Enlace<br> Dirección inet6: fd24:887f:6114::79b/128 Alcance:Global<br> Dirección inet6: fd24:887f:6114:0:441f:9607:<wbr>913a:3b8e/64 Alcance:Global<br> Dirección inet6: fd24:887f:6114:0:32f9:edff:<wbr>feda:2cb8/64 Alcance:Global<br> ACTIVO DIFUSIÃN FUNCIONANDO MULTICAST MTU:1500 Métrica:1<br> Paquetes RX:30464 errores:0 perdidos:0 overruns:0 frame:0<br> Paquetes TX:9846 errores:0 perdidos:0 overruns:0 carrier:0<br> colisiones:0 long.colaTX:1000<br> Bytes RX:6585056 (6.5 MB) TX bytes:2023150 (2.0 MB)<br><br>lo Link encap:Bucle local<br> Direc. inet:127.0.0.1 Másc:255.0.0.0<br> Dirección inet6: ::1/128 Alcance:Anfitrión<br> ACTIVO BUCLE FUNCIONANDO MTU:65536 Métrica:1<br> Paquetes RX:589 errores:0 perdidos:0 overruns:0 frame:0<br> Paquetes TX:589 errores:0 perdidos:0 overruns:0 carrier:0<br> colisiones:0 long.colaTX:1<br> Bytes RX:56632 (56.6 KB) TX bytes:56632 (56.6 KB)<br><br>lxcbr0 Link encap:Ethernet direcciónHW 00:00:00:00:00:00<br> Direc. inet:10.0.3.1 Difus.:10.0.3.255 Másc:255.255.255.0<br> Dirección inet6: fe80::f487:feff:fe14:4c16/64 Alcance:Enlace<br> ACTIVO DIFUSIÃN MULTICAST MTU:1500 Métrica:1<br> Paquetes RX:99 errores:0 perdidos:0 overruns:0 frame:0<br> Paquetes TX:109 errores:0 perdidos:0 overruns:0 carrier:0<br> colisiones:0 long.colaTX:1000<br> Bytes RX:5960 (5.9 KB) TX bytes:14169 (14.1 KB)<br><br>mvlan0 Link encap:Ethernet direcciónHW 42:88:57:d3:41:49<br> Dirección inet6: fe80::4088:57ff:fed3:4149/64 Alcance:Enlace<br> Dirección inet6: fd24:887f:6114:0:4088:57ff:<wbr>fed3:4149/64 Alcance:Global<br> Dirección inet6: fd24:887f:6114:0:a42b:578c:<wbr>9386:1273/64 Alcance:Global<br> ACTIVO DIFUSIÃN FUNCIONANDO MULTICAST MTU:1500 Métrica:1<br> Paquetes RX:9496 errores:0 perdidos:0 overruns:0 frame:0<br> Paquetes TX:255 errores:0 perdidos:0 overruns:0 carrier:0<br> colisiones:0 long.colaTX:1<br> Bytes RX:588463 (588.4 KB) TX bytes:25527 (25.5 KB)<br><br>wlan0 Link encap:Ethernet direcciónHW b8:76:3f:f9:23:21<br> DIFUSIÃN MULTICAST MTU:1500 Métrica:1<br> Paquetes RX:0 errores:0 perdidos:0 overruns:0 frame:0<br> Paquetes TX:0 errores:0 perdidos:0 overruns:0 carrier:0<br> colisiones:0 long.colaTX:1000<br> Bytes RX:0 (0.0 B) TX bytes:0 (0.0 B)<br><br></div>And in my config lxc container:<br><br>more config<br>lxc.include = /usr/share/lxc/config/ubuntu.<wbr>common.conf<br>lxc.rootfs = /var/lib/lxc/clusterb2/rootfs<br>lxc.mount = /var/lib/lxc/clusterb2/fstab<br>lxc.utsname = clusterb2<br>lxc.arch = amd64<br>lxc.network.type = macvlan<br>lxc.network.macvlan.mode = bridge<br>lxc.network.flags = up<br>lxc.network.link = mvlan0<br><a href="http://lxc.network.name" target="_blank">lxc.network.name</a> = eth0<br>lxc.network.hwaddr = 00:16:3e:41:11:65<br>lxc.network.mtu = 1500<br>lxc.network.ipv4 = 192.168.1.112<br>lxc.start.auto = 0<br>lxc.loglevel = 0<br>lxc.network.ipv4.gateway = 192.168.1.1<br><br></div>I can ping to internet servers and to gateway, but I can't ping between host and guest.<br><br></div>Any help please? Many thanks and sorry for my English!<br><br><div><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></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>