I've got a simple Vagrant Ubuntu virtual machine setup using Virtual Box, running on a Mac.
I'm using private networking, configured with a static private IP like so:
Vagrant.configure("2") do |config| config.vm.network :private_network, ip: "10.11.12.13" end
This works fine, except for when I switch back and forth between wifi and my wired network. When I do, I can't seem to connect to the VM with it's static IP address anymore. I've tried halting and restarting the VM, and even destroying and recreating the VM, to no avail.
Is there some way to reset the network connection so the private IP comes back? I'm fine with directly accessing it in VirtualBox, or whatever. The only way I can make it work it appears is to actually reboot my entire machine right now.