This post is a bit of a ‘note to self’. I am tinkering with Vagrant boxes today trying to flesh out some ansible
and I need to get the boxes to talk to each other locally. I know about the vagrant multi-machine setup, but I was
already partly committed to having 2 individual boxes set up before I discovered it.
So, the trick is, set the network configuration in your
Vagrantfile to “private_network”:
With the IPs set differently it seems to work, and the host is accessible as well. Note that my host subnet is
Probably not the right way, but it works for now.