Vagrant gets the instructions top to botton. So in the first snippet code, you are adding 2 networks, first one with a fixed ip, so will ask for a bridge, second one will be dhcp on airport.
on the OS , will end with eth0, eth1, eth2. good catch .. won't happen again :) On Fri, Oct 24, 2014 at 10:21 AM, Steven <[email protected]> wrote: > For somebody with no knowledge of ruby the documentation is misleading as > I did: > > > config.vm.network "public_network", ip: '192.168.1.100' > config.vm.network "public_network", bridge: 'en0: Wi-Fi (AirPort)' > > when it must be: > > config.vm.network "public_network", ip: '192.168.1.100', bridge: 'en0: > Wi-Fi (AirPort)' > > > > Am Mittwoch, 22. Oktober 2014 18:01:24 UTC+2 schrieb Steven: >> >> The documentation (here >> <https://docs.vagrantup.com/v2/networking/public_network.html>) states >> that a default network interface can be selected by putting this into the >> Vagrantfile: >> >> config.vm.network "public_network", bridge: 'en1: Wi-Fi (AirPort)' >> >> >> So I put it into the config like this: >> >> config.vm.network "public_network", bridge: 'en0: Wi-Fi (AirPort)' >> >> But at "vagrant up" I'm still asked to choose the bridge from the list: >> >> ==> default: Available bridged network interfaces: >> 1) en0: Wi-Fi (AirPort) >> 2) en1: Thunderbolt 1 >> 3) en2: Thunderbolt 2 >> 4) p2p0 >> 5) awdl0 >> 6) bridge0 >> >> How do you set a default bridge? Or is this a bug? >> > -- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- 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]. For more options, visit https://groups.google.com/d/optout.
