Page 1 of 1

NAT Default Network

Posted: 13. Dec 2010, 17:20
by Hugo Serrano
Hello.

I need to change the default network created in the Guests when using NAT.

By default, my Guests have one IP from network 10.0.2.0/24
It happens that's one of our private network. So the VM's can't access to that network.

I need to change that, so when I create a new machine it wont have one IP form that network.
Whit this command: VBoxManage modifyvm "VM name" --natnet1 "192.168/16" I can change the default IP to the "VM name" machine, but if I create a new one it will have the IP in 10.0.2.0/24 network (I didn't tested this, but it's what it seems that will happen).

Is there a way to make this permanent?

Thanks!

Regards!

Re: NAT Default Network

Posted: 13. Dec 2010, 18:39
by Hachiman
Hugo Serrano wrote:I need to change that, so when I create a new machine it wont have one IP form that network.
Whit this command: VBoxManage modifyvm "VM name" --natnet1 "192.168/16" I can change the default IP to the "VM name" machine, but if I create a new one it will have the IP in 10.0.2.0/24 network (I didn't tested this, but it's what it seems that will happen).

Is there a way to make this permanent?
Short answer is no. VBoxManage modifyvm affects only one vm you point in second argument, chosen default value.

Re: NAT Default Network

Posted: 13. Dec 2010, 20:18
by Hugo Serrano
Ok! Thanks for the answer.

And keep the suggestion for a future release! :-)

Regards!