According to 

this 
https://stackoverflow.com/questions/35208188/how-can-i-define-network-settings-with-vagrant/35211086#35211086
and this https://github.com/hashicorp/vagrant/issues/2093

it looks like it's impossible.

Can you confirm please?

On Monday, 20 November 2017 22:47:42 UTC+13, Alvaro Miranda Aguilera wrote:
>
> 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, <andr...@gmail.com <javascript:>> 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 vagrant-up+...@googlegroups.com <javascript:>.
>> 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 vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/8fbbff70-9a9a-4c55-a968-15ff66db6e11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to