Page 1 of 1

How to enable DHCPSERVER in Virtualbox

Posted: 27. Sep 2011, 09:13
by Krishgeek
Hi,

Can anyone please help me how to enable DHCP server for internal network. I have tried to do that from host system as per below but no luck.

C:\Program Files\Oracle\VirtualBox>vboxmanage dhcpserver add --netname intnet --ip 192.168.10.1 --netmask 255.255.255.0 --lowerip 192.168.10.10 --upperip 192.168.10.10 --enable

I didn't got any error but i have IP to guest system as well.

Please suggest.

Re: How to enable DHCPSERVER in Virtualbox

Posted: 27. Sep 2011, 14:22
by Perryg
First you are going to need more than one IP address for the Internal network or you will not be able to add the second guest.
You can test the dhcp server with this line VBoxManage list dhcpservers to ensure that it is running.