Vagrant private_network can’t ping

When I create Vagrant virtual machine with private networking, I can’t ping to IP address of the VM. The only way to connect the VM is by using the “vagrant ssh” command.

In my Vagrantfile, I had

To fix the problem, first verify you have vboxnet0 network interface with the command

If the state of the vboxnet0 network interface is DOWN, make it UP with the command

Go to VirtualBox > File > Host Network Manager or press CTRL + H

VirtualBox Host Network manager

Verify vboxnet0 is set properly. You can delete it and create it again using “Host Network Manager”, which will fix any problem with the network.

Make sure the IP you specify in Vagrantfile is in the same range set for the vboxnet0 interface in VirtualBox Host Network manager.

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *