Static IPs via VboxBridge bridge

31 views
Skip to first unread message

Marius Ciepluch

unread,
Jun 16, 2013, 4:21:18 AM6/16/13
to vagra...@googlegroups.com
Hey folks,

I have an issue with the Vagrant public and private networking settings in the Vagrantfiles (Version 1.2.2-2) 

I use VirtualBox as my provider, and a Gentoo2013 box, which is init'ed, import'ed and up'ed. 
I want an external static IPv4, so I chose bridged networking

config.vm.network :public_network, :bridge => "eth0:1"
# setting the brdige to eth0:1 doesn't work

I have multiple IPs (IPv4) and I need to assign one external IP to each VM I up.
How is that done?

I tried a provisoner with shell, and /bin/ifconfig eth1 217.11.52.231 netmask 255.255.255.0 - but that doesn't work... I think NAT routes need to be set?
Also VBoxManage controlvm gentoo_1371315896 nic bridged eth0:1  isn't working.

So... how do you guys do that?

Best,
Marius
Reply all
Reply to author
Forward
0 new messages