jpetazzo / pipework

Software-Defined Networking tools for LXC (LinuX Containers)
Apache License 2.0
4.21k stars 727 forks source link

ping not working #209

Closed n89 closed 7 years ago

n89 commented 7 years ago

I have started using the pipework which looks interesting. I an trying to create a network with n number of nodes and m number of links.

For the same I created 2 containers running ubuntu and joined them using pipework to a bridge. docker run --name ubuntu1 --network=host -dit ubuntu docker run --name ubuntu2 --network=host -dit ubuntu pipework br1 ubuntu1 10.10.0.1/24 pipework br1 ubuntu2 10.10.0.1/24

but I am unable to ping ubuntu2 from ubuntu1 and vice versa. Although i could ping internet from both the containers (because of docker0 I guess). The routing entries are like:

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 172.17.0.1 0.0.0.0 UG 0 0 0 eth0 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

I am unable to add extra routing entries. Please let know what could be the possible reason for this and if you could help.