DHCP assigned IPs for the primary interface

10 views
Skip to first unread message

Charles Llewellyn

unread,
Mar 9, 2016, 4:10:16 PM3/9/16
to Vagrant
Hi,

Apologies if this has been answered before....I have had good hunt but couldn't find a solution.

Is it possible to tell vagrant to assign the primary NAT address via DHCP from virtualbox? It seems its possible to do this outside vagrant.

Cheers

Charlie

Alvaro Miranda Aguilera

unread,
Mar 9, 2016, 7:46:50 PM3/9/16
to vagra...@googlegroups.com
Hello,

This is how its designed. first nic in virtualbox will be set to NAT on vagrant up.

You can use public or private network to add 2nd nic for other IP assigment.

and using a shell provisioner you can override the default gw if you require send all the traffic over a public network.

Can you share a bit more on whats the issue you are having with the current setup?

Thanks
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/198d1422-9f09-4d22-ad7d-2d9cf6a4a364%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages