How to add multiple network interfaces to a Vagrant box?

24 views
Skip to first unread message

Nilashish Chakraborty

unread,
Jun 13, 2019, 5:32:18 AM6/13/19
to Vagrant
Hello all,

I'm running a vagrant box with VirtualBox as provider. My requirement is to have multiple interfaces, all set to "Internal Network". Can anybody help me with this?

Thanks.

Alvaro Miranda Aguilera

unread,
Jun 17, 2019, 1:12:25 PM6/17/19
to vagra...@googlegroups.com
hello

you can repeat the network configuration multiple times

ie

config.vm.network "private_network", ip: "192.168.50.4"
config.vm.network "private_network", ip: "192.168.51.4"
config.vm.network "private_network", ip: "192.168.52.4"

--
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/1d2b69ef-72b5-483d-b51c-7a60c7b1a1c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Nilashish Chakraborty

unread,
Jul 29, 2019, 2:35:21 AM7/29/19
to vagra...@googlegroups.com
Hi Alvaro,

That's exactly what I needed. Thanks!

Reply all
Reply to author
Forward
0 new messages