there is not enough information to help. should it connect over private_network?
what are the output of route -n ip addr show can you ping 8.8.8.8 ? perhaps you need to replace the dns? can be many reasons why doesnt work, if you could share a repo over github to reproduce will be easier to have a look. Alvaro. On Mon, Nov 20, 2017 at 11:26 AM, <[email protected]> wrote: > > > 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 > <https://groups.google.com/d/msgid/vagrant-up/e31e7b26-0713-4b69-b749-d27c82d50b08%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- 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/CAHqq0ezpDC8Mwy_76vdB_iXsGeCcjhKC18t3UFA0J49Zms8qMw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
