I had a similar issue, just with the private network setup and the static IP. The IP address I used for months (
192.168.10.10) was suddenly unreachable, although I was able to access the virtual machine with
Changing the static IP to
192.168.10.192 solved the problem. The solution here was to change the IP so it doesn't collide with any other machine on the same network.
Here you can find the following notes:
It is up to the users to make sure that the static IP doesn't collide with any other machines on the same network.
While you can choose any IP you'd like, you should use an IP from the reserved private address space. These IPs are guaranteed to never be publicly routable, and most routers actually block traffic from going to them from the outside world.
For some operating systems, additional configuration options for the static IP address are available such as setting the default gateway or MTU.
Warning! Do not choose an IP that overlaps with any other IP space on your system. This can cause the network to not be reachable.
In Vagrantfile you can configure the static IP like this
Vagrant.configure("2") do |config|
config.vm.network "private_network", ip: "192.168.10.192"
Or, in case you're using Homestead like I do, just update your
Homestead.yaml configuration file:
# the rest of the configuration...
And a quick note for the end - my issue possibly wasn't identical as the one here, but since I stumbled upon this question, probably other users will too.