NAT Default Network

This is for discussing general topics about how to use VirtualBox.
Post Reply
Hugo Serrano
Posts: 2
Joined: 13. Dec 2010, 17:09
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Ubuntu

NAT Default Network

Post 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!
Hachiman
Posts: 94
Joined: 18. Dec 2008, 21:04
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Solaris, NetBSD

Re: NAT Default Network

Post 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.
--
Kind regards
Sr. Software Engineer
Oracle Corporation
Vasily Levchenko

PS. Happy VBoxing.
Hugo Serrano
Posts: 2
Joined: 13. Dec 2010, 17:09
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: NAT Default Network

Post by Hugo Serrano »

Ok! Thanks for the answer.

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

Regards!
Post Reply