Closed macrokernel closed 9 years ago
Oh, just to repeat what I said on the other issue... Are you trying to ping from the Docker host itself? Or form another machine?
Hi Jérôme,
I am trying to ping from the Docker container (10.4.1.121). The hosts I am trying to ping are:
10.4.1.121 - Docker host
10.4.1.1 - Router on the physical network
OK!
"After adding a macvlan interface to the container, I cannot ping the container from the host, or the host from the container"
This is (unfortunately) normal. This is linked to how macvlan interfaces work. However, from the container, you should be able to ping other hosts on the network and vice versa.
If you can't ping from another host, then you have a problem. If your Docker host is a VM, you might have to enable switching of unknown addresses (see https://github.com/jpetazzo/pipework#notes).
"After creating a new macvlan interface on the host, and moving the host IP address to the macvlan interface, I lose connectivity"
You should see a short loss of connectivity (due to the MAC address change) but then everything should be back to normal.
Do you have details on your host?
Hi Jérôme,
My Docker host runs on a ESXi VM. Thanks for pointing at the promiscuous mode in virtualization host network configuration. It all works fine after I have enabled promiscuous mode on the virtual switch.
Best regards, Sergey
Cool! I wish I knew an easy way to detect that :)
Hi Jérôme,
I am having troubles using pipework on CentOS 6.6. I have installed iproute from OpenStack and updated all packages.
When I start a container with the following command, it runs without any error, but it cannot access network through eth0: pipework eth0 $(docker run -d mycontainer /bin/bash) 10.4.1.121/24
Network settings inside the container:
Routes:
ping 10.4.1.120, ping 10.4.1.1 - Destination Host Unreachable.
When I run the following commands on the Docker host, the host looses network connection:
The resulting interfaces:
Routes:
Can you please help?