Alex
Alex

Reputation: 2047

How to add NAT interface as eth1 instead of eth0

I have a box where the order of network interfaces matters. The firewall and certain services are explicitly bound to eth0 which is meant to be the actual network interface.

When we setup a test VM using Vagrant, that eth0 adapter becomes the NAT adapter. Now I can parameterize all references to eth0 in our Puppet modules but that would add quite a bit of complexity that I would like to avoid.

How can I configure Vagrant to add a private network on eth0 and the NAT adapter on eth1?

Upvotes: 3

Views: 1530

Answers (1)

m1keil
m1keil

Reputation: 4575

eth0 is always NAT interface according to Mitchell. I know it's possible to rename interfaces in Linux, not sure if it's possible with Virtualbox.

Upvotes: 2

Related Questions