On Monday, November 20, 2017 at 10:44:56 AM UTC+1, Alvaro Miranda Aguilera 
wrote:
>
>
> are you doing a macOS guest and you want to override the default gw there?
>

The guest is a Linux VM. The relevant part of my provision script is:

route add default gw 192.168.222.1
eval "$(route -n | awk '{ if ($8 =="enp0s3" && $2 != "0.0.0.0") print "route 
del default gw " $2; }')"

192.168.222.1 is the host IP address. The guest uses a private network; 
from the Vagrant file:

c.vm.network "private_network", ip: "192.168.222.10"

This all works on a Linux host. On a macOS host the guest is not able to 
connect to the internet after the default gw was changed.

 

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/e31e7b26-0713-4b69-b749-d27c82d50b08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to