docker overlay ping is not available
kernel version 4.4
system version centos7.2
docker:18
consul both machines have binding information. No problem
after the creation of the docker container, the ip of the two containers is 10.0.0.3 10.0.0.4
my suspicion is that the ip of eth1 in the container is 172.18.0.1 and 172.22.0.1 respectively.
the gateway in the route routing table is not accessible, so I cannot ping, so I try to modify the ip of the docker network card in the host
service docker stop
< H1 > Delete docker Firewall Filter rules < / H1 >iptables-t nat-F POSTROUTING
< H1 > Delete docker default gateway configuration < / H1 > ip link set dev docker0 down
ip addr del 172.18.0.1 16 dev docker0
ip addr add 172.22.0. 1According 16 dev docker0
ip link set dev docker0 up
ip addr show docker0
service docker start
iptables-t nat-L-n
but it doesn"t work, it doesn"t work. After restarting docker, the ip of the host will still return to 172.18.0.1 and cannot be modified.
really doesn"t know how to solve it. Ask the god for help!