I have an multi vm vagrant enviroment with 3 vms. The problem is, that they have to communicate with each other. How can I setup my vagrantfile, so that one script from VM1 can curl to the VM2?
This config setting is not working:
VM1: config.vm.network "private_network", ip: "192.168.50.4"
VM2: config.vm.network "private_network", ip: "192.168.50.5"
In VM1:
curl 192.168.50.5
The result is, that I can not connect to the other VM. If I try to ping the other VM it seems,that host is unreachable. Can someone help?