The 10.0.2.15 is the default network Virtualbox sets up to allow access to the virtual box i.e. vagrant ssh. Vagrant is just a proxy for what Virtualbox is doing under the hood.
You might have something like this in your Vagrant file: remote.vm.provider "virtualbox" do |v| v.customize ["modifyvm", :id, "--memory", mem] v.customize ["modifyvm", :id, "--cpus", cpus] v.customize ['modifyvm', :id, '--natnet1', '10.0.15.0/24'] end v.customize ['modifyvm', :id, '--natnet1', '10.0.15.0/24'] set's the internal Virtualbox network to 10.0.15.0. This can be modified to be anything you'd like v.customize ['modifyvm', :id, '--natnet1', ' 10.0.16.0/24'], v.customize ['modifyvm', :id, '--natnet1', '192.168.0/24'], etc. But this is Vagrant telling Virtualbox what to do. If you want to remove this Vagrant convenience device/network, this is the place to do so. https://www.vagrantup.com/docs/networking/public_network.html#default-router Explains how to deal with what is listening and where by altering routes. Which appears to be the most popular option as pointed out here - https://github.com/hashicorp/vagrant/issues/8601#issuecomment-302655791 You may want to add something like: # remove default route remote.vm.provision "shell", run: "always", inline: "ip route del default" On Thu, Jan 9, 2020 at 5:31 PM Phillip White <phil...@gmail.com> wrote: > Did you ever get this figured out? I have a similar issue with Vagrant in > that the network starts up great if starting it within VirtualBox but as > soon as Vagrant starts it it wants to add a NAT interface and then adds > another interface assigning it a 10.0.2.15 IP. It seems to me that you > can't instruct Vagrant to "bridge" with DHCP or static without it also > adding a NAT interface. > > > > On Friday, May 23, 2014 at 9:16:18 AM UTC-6, synack wrote: >> >> The vagrant box is ubuntu and my host is a mac. I'm going to try a >> provision script for boot up and see it works. >> >> On Thursday, May 22, 2014 5:48:58 PM UTC-4, Alvaro Miranda Aguilera wrote: >>> >>> >>> On Fri, May 23, 2014 at 2:45 AM, synack <synd...@gmail.com> wrote: >>> >>>> 10.0.24.1 >>> >>> >>> hello, >>> >>> Yes this is the thing i was trying to explain in my first email. >>> >>> Seems there is a parameter, you can try before going the guest path. >>> >>> use_dhcp_assigned_default_route >>> >>> but according to this, mitchell push for shell provisioner or guest side >>> >>> https://github.com/mitchellh/vagrant/pull/1663 >>> >>> >>> >>> so I am not sure if can be done by vagrant (a way that works) >>> >>> simple approach will be remove with an script in say /etc/rc.local the >>> default gw and put the route you want. >>> >>> What OS do you use? >>> >>> -- > 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 vagrant-up+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/ed62fa02-0495-4fe6-998b-c95b0a38eeb1%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/ed62fa02-0495-4fe6-998b-c95b0a38eeb1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Dan Morgan 617.444.9251 -- 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 vagrant-up+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CANsmJYFN2tB3Cp4t55qJUM4BtUxfuV%3Doe9EEJvdHr%2BJq0Jtnkw%40mail.gmail.com.