[lxc-users] no ping between host and lxc container
Claudio Kuenzler
ck at claudiokuenzler.com
Tue Dec 20 07:24:09 UTC 2016
Please show your /etc/network/interfaces for more clues.
On Mon, Dec 19, 2016 at 1:34 PM, mierdatutis mi <mmm286 at gmail.com> wrote:
> Hi,
> 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.
> For these I've configured macvlan.
>
> In my host I have:
>
> eth0 Link encap:Ethernet direcciónHW 30:f9:ed:da:2c:b8
> Direc. inet:192.168.1.114 Difus.:192.168.1.255
> Másc:255.255.255.0
> Dirección inet6: fe80::32f9:edff:feda:2cb8/64 Alcance:Enlace
> Dirección inet6: fd24:887f:6114::79b/128 Alcance:Global
> Dirección inet6: fd24:887f:6114:0:441f:9607:913a:3b8e/64
> Alcance:Global
> Dirección inet6: fd24:887f:6114:0:32f9:edff:feda:2cb8/64
> Alcance:Global
> ACTIVO DIFUSIÃN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
> Paquetes RX:30464 errores:0 perdidos:0 overruns:0 frame:0
> Paquetes TX:9846 errores:0 perdidos:0 overruns:0 carrier:0
> colisiones:0 long.colaTX:1000
> Bytes RX:6585056 (6.5 MB) TX bytes:2023150 (2.0 MB)
>
> lo Link encap:Bucle local
> Direc. inet:127.0.0.1 Másc:255.0.0.0
> Dirección inet6: ::1/128 Alcance:Anfitrión
> ACTIVO BUCLE FUNCIONANDO MTU:65536 Métrica:1
> Paquetes RX:589 errores:0 perdidos:0 overruns:0 frame:0
> Paquetes TX:589 errores:0 perdidos:0 overruns:0 carrier:0
> colisiones:0 long.colaTX:1
> Bytes RX:56632 (56.6 KB) TX bytes:56632 (56.6 KB)
>
> lxcbr0 Link encap:Ethernet direcciónHW 00:00:00:00:00:00
> Direc. inet:10.0.3.1 Difus.:10.0.3.255 Másc:255.255.255.0
> Dirección inet6: fe80::f487:feff:fe14:4c16/64 Alcance:Enlace
> ACTIVO DIFUSIÃN MULTICAST MTU:1500 Métrica:1
> Paquetes RX:99 errores:0 perdidos:0 overruns:0 frame:0
> Paquetes TX:109 errores:0 perdidos:0 overruns:0 carrier:0
> colisiones:0 long.colaTX:1000
> Bytes RX:5960 (5.9 KB) TX bytes:14169 (14.1 KB)
>
> mvlan0 Link encap:Ethernet direcciónHW 42:88:57:d3:41:49
> Dirección inet6: fe80::4088:57ff:fed3:4149/64 Alcance:Enlace
> Dirección inet6: fd24:887f:6114:0:4088:57ff:fed3:4149/64
> Alcance:Global
> Dirección inet6: fd24:887f:6114:0:a42b:578c:9386:1273/64
> Alcance:Global
> ACTIVO DIFUSIÃN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
> Paquetes RX:9496 errores:0 perdidos:0 overruns:0 frame:0
> Paquetes TX:255 errores:0 perdidos:0 overruns:0 carrier:0
> colisiones:0 long.colaTX:1
> Bytes RX:588463 (588.4 KB) TX bytes:25527 (25.5 KB)
>
> wlan0 Link encap:Ethernet direcciónHW b8:76:3f:f9:23:21
> DIFUSIÃN MULTICAST MTU:1500 Métrica:1
> Paquetes RX:0 errores:0 perdidos:0 overruns:0 frame:0
> Paquetes TX:0 errores:0 perdidos:0 overruns:0 carrier:0
> colisiones:0 long.colaTX:1000
> Bytes RX:0 (0.0 B) TX bytes:0 (0.0 B)
>
> And in my config lxc container:
>
> more config
> lxc.include = /usr/share/lxc/config/ubuntu.common.conf
> lxc.rootfs = /var/lib/lxc/clusterb2/rootfs
> lxc.mount = /var/lib/lxc/clusterb2/fstab
> lxc.utsname = clusterb2
> lxc.arch = amd64
> lxc.network.type = macvlan
> lxc.network.macvlan.mode = bridge
> lxc.network.flags = up
> lxc.network.link = mvlan0
> lxc.network.name = eth0
> lxc.network.hwaddr = 00:16:3e:41:11:65
> lxc.network.mtu = 1500
> lxc.network.ipv4 = 192.168.1.112
> lxc.start.auto = 0
> lxc.loglevel = 0
> lxc.network.ipv4.gateway = 192.168.1.1
>
> I can ping to internet servers and to gateway, but I can't ping between
> host and guest.
>
> Any help please? Many thanks and sorry for my English!
>
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161220/0acc4f3c/attachment.html>
More information about the lxc-users
mailing list