Page 1 of 1

VBoxManage, dhcpserver, hub & guest

Posted: 11. Nov 2011, 16:40
by stuffduff
Hi,

Running 4.1.6

Host Windows 7-64, extensions installed
Guest Centos 6-64, additions installed

I have an ethernet hub connected to the host ethernet port.

I need to provide a dhcp service to devices on the hub, accessible from the guest.

I'm guessing that it takes a combination of VBoxManage, dhcpserver and a bridged connection, but I just haven't been able to get it to work.

Is there something that needs to be done on the guest to support it beyond the additions?

I've tried bridging the connections on the Windows side, but I can't tell if VB dhcp is seeing the hub, and the guest doesn't seem to see the VBox dhcp either.

"The "dhcpserver" commands allow you to control the DHCP server that is built into VirtualBox. You may find this useful when using internal or host-only networking. (Theoretically, you can enable it for a bridged network as well, but that will likely cause conflicts with other DHCP servers in your physical network.)" Since there is only the hub, there can't be a conflict.

In Windows I set a bridge between the hardware NIC and the VBox NIC, set the IP to 192.168.0.1, netmask 255.255.255.0, gateway 192.168.0.255 (although the gateway goes nowhere) left the DNS servers blank.

Ran the command on Windows:

VBoxManage dhcpserver add –netname tabletop –ip 192.168.0.1 –netmask 255.255.255.0 –lowerip 192.168.0.10 –upperip 192.168.0.20 –enable

In VBox settings for the VM I changed auto eth2 to Bridged Adapter, MAC Bridge Miniport PM: Allow All & Checked Cable Connected.

Brought up the VM. Went to Windows, released & renewed the IP and the Bridge got the assigned address 192.168.0.1.

Guest still sees nothing.

Has anyone done this? Any suggestions sincerely appreciated!

Thanks a 10E6,

Sean