the first nic is by default. So you don't want to add a new nic, you can override the first one.
have a look at this: https://superuser.com/questions/957631/how-to-force-vagrant-to-have-a-single-bridged-network-interface Alvaro On Mon, Nov 20, 2017 at 1:55 AM, <[email protected]> wrote: > When I add this line to my vagrantfile: > > config.vm.network "public_network", bridge: "vmnet0" > > vagrant creates *second* adapter which is bridged. > Both primary and secondary adaters seems to work fine in this > configuration. > I do not want second adapter I want the primary one to be bridged. > > How do I configure this? > > Vagrantfile to test: > > # -*- mode: ruby -*- > # vi: set ft=ruby : > > Vagrant.configure("2") do |config| > config.vm.box = "StefanScherer/windows_2016_docker" > > config.vm.network "public_network" > config.vm.provider :vmware_workstation do |v| > v.gui = true > end > end > > > > Cheers, > Andrew > > -- > 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/f564595c-48f5-4dc3-ae48-067f09b2da0f%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/f564595c-48f5-4dc3-ae48-067f09b2da0f%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/CAHqq0ezWPozZ42754SoeEweDbiko-pmpWyjPvy3QqMiYzhjhgA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
