How to bind my private_network ip with eth0?

12 views
Skip to first unread message

scj...@gmail.com

unread,
Mar 29, 2018, 7:25:20 AM3/29/18
to Vagrant
Hi,

I'm using Vagrant 1.9.5 with VirtualBox 5.1.30 to run a Centos 7 box.
I'm trying to set up my "private_network" or "public_network" with eth0, but when i try a vagrant up, i get default order " Adapter 1: nat,  Adapter 2: hostonly(or bridge)" .
How to config my vagrant file to solve this problem?

Thanks

Alvaro Miranda Aguilera

unread,
Mar 29, 2018, 10:48:58 AM3/29/18
to vagra...@googlegroups.com
hello that is not a problem.

thats how vagrant work.

by default, when you add a network will be on top of the NAT one.


what you want to do that out of the box experience doesn't work ?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/08682b58-af11-428b-a586-c7a1d037a120%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Alvaro Miranda Aguilera

unread,
Mar 30, 2018, 5:19:33 AM3/30/18
to scj7508, vagra...@googlegroups.com
there is no easy way to change the other.

If just works, I will say leave it as is for now.


It can be done, you can use vbox_manage to change the type of the nic, but is out of the scope on how we use it/test it.

Can be done for sure!

Alvaro.


On Fri, Mar 30, 2018 at 2:56 AM, scj7508 <scj...@gmail.com> wrote:
yes , it does work.
I just want to find some easier way to change the defaut order.
Thanks.



发自我的小米手机
在 Alvaro Miranda Aguilera <kik...@gmail.com>,2018年3月29日 22:48写道:

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

scj7508

unread,
Mar 30, 2018, 11:55:29 AM3/30/18
to kik...@gmail.com, vagra...@googlegroups.com
yes , it does work.
I just want to find some easier way to change the defaut order.
Thanks.



发自我的小米手机
在 Alvaro Miranda Aguilera <kik...@gmail.com>,2018年3月29日 22:48写道:

hello that is not a problem.

thats how vagrant work.

by default, when you add a network will be on top of the NAT one.


what you want to do that out of the box experience doesn't work ?
On Thu, Mar 29, 2018 at 1:25 PM, <scj...@gmail.com> wrote:
Hi,

I'm using Vagrant 1.9.5 with VirtualBox 5.1.30 to run a Centos 7 box.
I'm trying to set up my "private_network" or "public_network" with eth0, but when i try a vagrant up, i get default order " Adapter 1: nat,  Adapter 2: hostonly(or bridge)" .
How to config my vagrant file to solve this problem?

Thanks

--
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.



--
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/CAHqq0ex0MuXvVyW%3DRthK%3D-XxNHKRRTXAi2GxL%2BUMx_-AcbtjxQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages