VBoxManage modifyvm "Ubuntu" --natdhcpserver1 10.0.6.1 is not a valid command / argument

This is for discussing general topics about how to use VirtualBox.
Post Reply
w277ac
Posts: 1
Joined: 23. Dec 2017, 23:13

VBoxManage modifyvm "Ubuntu" --natdhcpserver1 10.0.6.1 is not a valid command / argument

Post by w277ac »

Hi I am a long time VirtualBox user but recently found my self using the NAT Networking a lot recently for lab simulations.

My host is Ubuntu 16.04
My VM Setup Includes
Ubuntu (x2)
Centos 6.9 (x2)
PFSense

Host has VirtualBox 5.2.4 (The Latest Version as of December 23rd 2017) All Machines Have the Latest Guest Additions.
What I am looking to do is have all default networking set to 10.0.6.1 including DHCP, DNS, GATEWAY. I looked here at the virtualbox documentation and went to the #changenat on chapter 9 section.

So Far it seems virtualbox has 10.0.6.1 - 10.0.6.4 reserved for it's own NAT Networking including Tftp, Dhcp, Dns, Wins , Gateway and I want to have 10.0.6.1 do all of what the first 4 are doing by default with virtualbox.

Command's I have tried I are:
Which show up in the documentation for Virtualbox but each presents an Error.

Code: Select all

VBoxManage modifyvm "Ubuntu" --nattftpserver1 10.0.6.1 is not a valid command / argument
VBoxManage modifyvm "Ubuntu" --natdnsserver1 10.0.6.1 is not a valid command / argument
VBoxManage modifyvm "Ubuntu" --natdhcpserver1 10.0.6.1 is not a valid command / argument
VBoxManage modifyvm "Ubuntu" --natgwserver1 10.0.6.1 is not a valid command / argument

VBoxManage modifyvm "Centos 6.9" --nattftpserver1 10.0.6.1 is not a valid command / argument
VBoxManage modifyvm "Centos 6.9" --natdnsserver1 10.0.6.1 is not a valid command / argument
VBoxManage modifyvm "Centos 6.9" --natdhcpserver1 10.0.6.1 is not a valid command / argument
VBoxManage modifyvm "Centos 6.9" --natgwserver1 10.0.6.1 is not a valid command / argument

VBoxManage modifyvm "PFSense" --nattftpserver1 10.0.6.1 is not a valid command / argument
VBoxManage modifyvm "PFSense" --natdnsserver1 10.0.6.1 is not a valid command / argument
VBoxManage modifyvm "PFSense" --natdhcpserver1 10.0.6.1 is not a valid command / argument
VBoxManage modifyvm "PFSense" --natgwserver1 10.0.6.1 is not a valid command / argument
(Ubuntu) is my Machine name
(Centos 6.9) is my Machine name
(PFSense) is my Machine name

How can I change the DHCP and DNS and GW and GW on my NAT Network on NAT Network Subnet 10.0.6.0/24 on 10.0.6.1.

I have looked at all available documentation and I am struggling to find a solution to this.
Last edited by socratis on 24. Dec 2017, 10:44, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VBoxManage modifyvm "Ubuntu" --natdhcpserver1 10.0.6.1 is not a valid command / argument

Post by socratis »

w277ac wrote:I have looked at all available documentation and I am struggling to find a solution to this.
You should have a searchable PDF included with your installation. Take advantage of that fact and use it to search the PDF for those terms. You can always download the PDF version from the Downloads area as well.

So, let's see them one by one: So, it seems that you have two non-existent options, and two for which you have the wrong arguments. I'm not sure where you got these from...
w277ac wrote:So Far it seems virtualbox has 10.0.6.1 - 10.0.6.4 reserved for it's own NAT Networking
Not unless your "NAT" network is assigned to your 5th (fifth) network card. If NAT is assigned to the 1st NIC you get 10.0.2.x, to the 2nd NIC you get 10.0.3.x, to the 3rd NIC you get 10.0.3.x, etc.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: VBoxManage modifyvm "Ubuntu" --natdhcpserver1 10.0.6.1 is not a valid command / argument

Post by Martin »

(even 'natdhcpserver<1-N>' doesn't exist as parameter in VBoxManage)
Post Reply