Start Host-Only Network Adapter DHCP Server Syntax
-
raymondjpg
- Posts: 6
- Joined: 24. May 2015, 06:39
Start Host-Only Network Adapter DHCP Server Syntax
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
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
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Start Host-Only Network Adapter DHCP Server Syntax
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" --enableHyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
raymondjpg
- Posts: 6
- Joined: 24. May 2015, 06:39
Re: Start Host-Only Network Adapter DHCP Server Syntax
Thanks. If I do that I get an error "The host network interface with the given name could not be found..."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
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Start Host-Only Network Adapter DHCP Server Syntax
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" --enableHyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
raymondjpg
- Posts: 6
- Joined: 24. May 2015, 06:39
Re: Start Host-Only Network Adapter DHCP Server Syntax
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..."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
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Start Host-Only Network Adapter DHCP Server Syntax
What is the output of:
Code: Select all
vboxmanage list hostonlyifsHyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
raymondjpg
- Posts: 6
- Joined: 24. May 2015, 06:39
Re: Start Host-Only Network Adapter DHCP Server Syntax
Name: VirtualBox Host-Only Ethernet Adapternoteirak wrote:What is the output of:Code: Select all
vboxmanage list hostonlyifs
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
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Start Host-Only Network Adapter DHCP Server Syntax
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" --enableHyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
raymondjpg
- Posts: 6
- Joined: 24. May 2015, 06:39
Re: Start Host-Only Network Adapter DHCP Server Syntax
Thanks for trying. That syntax returns "DHCP server does not exist".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
I have now restored the PC to an earlier state, with DHCP server enabled on the host adapter.