Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign default interface #61

Open
codeapart opened this issue Oct 20, 2016 · 0 comments
Open

Assign default interface #61

codeapart opened this issue Oct 20, 2016 · 0 comments

Comments

@codeapart
Copy link

How can I assign a default bridge interface? I added the following line to the Vagrant file:
config.vm.network "public_network", bridge: 'en2: Wi-Fi (AirPort)'

but when it boots up it still asks me for the interface to bridge to:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'rasmus/php7dev' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Available bridged network interfaces:

  1. en2: Wi-Fi (AirPort)
  2. en0: Ethernet 1
  3. en1: Ethernet 2
  4. p2p0
    ==> default: When choosing an interface, it is usually the one that is
    ==> default: being used to connect to the internet.
    default: Which interface should the network bridge to? 1
    ==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
    default: Adapter 3: bridged
    default: Adapter 4: bridged
    ==> default: Forwarding ports...
    default: 80 (guest) => 8000 (host) (adapter 1)
    default: 443 (guest) => 44300 (host) (adapter 1)
    default: 3306 (guest) => 33060 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
    ==> default: Running 'pre-boot' VM customizations...
    ==> default: Booting VM...
    ==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    ==> default: Machine booted and ready!
    [default] GuestAdditions 5.0.26 running --- OK.
    ==> default: Checking for guest additions in VM...
    ==> default: Setting hostname...
    ==> default: Configuring and enabling network interfaces...
    ==> default: Mounting shared folders...
    default: /vagrant => /Volumes/Scratch/VMs/lca
    ==> default: Machine already provisioned. Run vagrant provision or use the --provision
    ==> default: flag to force provisioning. Provisioners marked to run always will still run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant