How to enable DHCPSERVER in Virtualbox

Discussions about using Windows guests in VirtualBox.
Post Reply
Krishgeek
Posts: 6
Joined: 23. Sep 2011, 20:02
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Windows XP

How to enable DHCPSERVER in Virtualbox

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to enable DHCPSERVER in Virtualbox

Post 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.
Post Reply