Reply to Message

View discussion in a popup

Replying to:
holzhey
Contributor
Contributor

Can not ping Docker Container (in VMWARE WORKSTATION 16 PRO) from HOST (UBUNTU 18.04)

Hello Community Member
I Can not ping Docker Container (in VMWARE WORKSTATION 16 PRO) from HOST (UBUNTU 18.04). both in same machine.

from the HOST IP ROUTE ADD is already done and i can ping the subnet and the route. But the containers i am not able to ping.

> sudo ip route add 192.168.70.0/24 via 172.20.1.47dev enp0s31f6

In VM also i have done

> sudo sysctl net.ipv4.conf.all.forwarding=1

> sudo iptables -P FORWARD ACCEPT

I am able to ping the bridge 192.168.70.129 (interface between HOST and VM) but not able to ping the conatiners inside the VM  (192.168.7.132).

Any advises please

 

Thanks

Labels (2)
Reply
0 Kudos