Page 1 of 1
Start Host-Only Network Adapter DHCP Server Syntax
Posted: 24. May 2015, 06:45
by raymondjpg
Host is Win 7 64 bit fully patched.
Command VBoxManage dhcpserver modify --ifname HostInterfaceNetworking-Virtualbox Host-Only Ethernet Adapter --enable returns "Syntax error: unhandled parameter: Host-Only"
Can someone please advise the correct syntax for starting that DHCP server.
TIA
Re: Start Host-Only Network Adapter DHCP Server Syntax
Posted: 25. May 2015, 17:23
by noteirak
You need to put the interface name between quotes since it contains spaces, like this:
Code: Select all
VBoxManage dhcpserver modify --ifname "HostInterfaceNetworking-Virtualbox Host-Only Ethernet Adapter" --enable
Re: Start Host-Only Network Adapter DHCP Server Syntax
Posted: 26. May 2015, 07:13
by raymondjpg
noteirak wrote:You need to put the interface name between quotes since it contains spaces, like this:
Code: Select all
VBoxManage dhcpserver modify --ifname "HostInterfaceNetworking-Virtualbox Host-Only Ethernet Adapter" --enable
Thanks. If I do that I get an error "The host network interface with the given name could not be found..."
Re: Start Host-Only Network Adapter DHCP Server Syntax
Posted: 26. May 2015, 10:48
by noteirak
After checking the syntax, ifname already expects a Host-Only name, so please try this:
Code: Select all
VBoxManage dhcpserver modify --ifname "Virtualbox Host-Only Ethernet Adapter" --enable
Re: Start Host-Only Network Adapter DHCP Server Syntax
Posted: 26. May 2015, 14:37
by raymondjpg
noteirak wrote:After checking the syntax, ifname already expects a Host-Only name, so please try this:
Code: Select all
VBoxManage dhcpserver modify --ifname "Virtualbox Host-Only Ethernet Adapter" --enable
Thanks to you as well, but using that syntax I still get that error "The host network interface with the given name could not be found..."
Re: Start Host-Only Network Adapter DHCP Server Syntax
Posted: 26. May 2015, 18:16
by noteirak
Re: Start Host-Only Network Adapter DHCP Server Syntax
Posted: 27. May 2015, 02:22
by raymondjpg
noteirak wrote:What is the output of:
Name: VirtualBox Host-Only Ethernet Adapter
GUID: 20c858ab-161a-45f7-8b15-e70b2f66ed35
DHCP: Disabled
IPAddress: 192.168.35.1
NetworkMask: 255.255.255.0
IPV6Address: fe80:0000:0000:0000:9128:8332:c3ef:b61e
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 08:00:27:00:c4:b8
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
Re: Start Host-Only Network Adapter DHCP Server Syntax
Posted: 28. May 2015, 11:28
by noteirak
Try this. If it still doesn't work then I am out of ideas...
Code: Select all
VBoxManage dhcpserver modify --netname "HostInterfaceNetworking-Virtualbox Host-Only Ethernet Adapter" --enable
Re: Start Host-Only Network Adapter DHCP Server Syntax
Posted: 29. May 2015, 01:01
by raymondjpg
noteirak wrote:Try this. If it still doesn't work then I am out of ideas...
Code: Select all
VBoxManage dhcpserver modify --netname "HostInterfaceNetworking-Virtualbox Host-Only Ethernet Adapter" --enable
Thanks for trying. That syntax returns "DHCP server does not exist".
I have now restored the PC to an earlier state, with DHCP server enabled on the host adapter.