Vagrant Ubuntu Precise guest, two NICs

542 views
Skip to first unread message

jvc26

unread,
May 8, 2012, 11:38:41 AM5/8/12
to vagra...@googlegroups.com
I have made a new base box for Ubuntu Precise 64 Server, with some basic packages installed. I'm quite keen to have two NICs on this box, one bridged for external access, and one internal for development purposes (accessing nginx etc). Is this possible with vagrant? I've looked at the docs but can't find a way to simultaneously declare two different NICs? Assuming that they can both be declared, what should be put in /etc/network/interfaces in the guest to bring both up?

Thanks for your help,

J

Mike

unread,
May 8, 2012, 3:21:14 PM5/8/12
to vagra...@googlegroups.com
It looks like you should be able to do this in your Vagrantfile like this:

config.vm.network :hostonly, "10.123.123.10", :adapter => 1
config.vm.network :bridged, :adapter => 2

-M

jvc26

unread,
May 9, 2012, 12:39:14 PM5/9/12
to vagra...@googlegroups.com
On Tuesday, 8 May 2012 20:21:14 UTC+1, miketheman wrote:
It looks like you should be able to do this in your Vagrantfile like this:

config.vm.network :hostonly, "10.123.123.10", :adapter => 1
config.vm.network :bridged, :adapter => 2


Brilliant - didn't know there was an :adapter option - thanks for your help!

J
Reply all
Reply to author
Forward
0 new messages