Opened 17 years ago

Closed 15 years ago

Last modified 14 years ago

#652 closed defect (fixed)

DHCP doesn't work for FreeBSD guests

Reported by: techie Owned by:
Component: network Version: VirtualBox 1.5.0
Keywords: Cc:
Guest type: BSD Host type: other


Guest FreeBSD on Win2000 host can't get any DHCPOFFER from VirtualBox when Network configured in "Host Interface" mode. Static address works ok to communicate with host machine.

Attachments (1)

FailedDHCP (1.4 KB ) - added by Jim Powers 16 years ago.
WireShark trace of Failed DHCP attempt

Download all attachments as: .zip

Change History (11)

comment:1 by webograph, 17 years ago

i can confirm that for windows nt 4 guest in linux host, with host side network card bridged via tun/tap into the rest of the network and nt4's auto-detected "AMD PCNET PCI Ethernet-Adapter" (german) in the guest.

(on the same vm, dhcp works for booting from lan; nt4 with statically configure ip works as well)

comment:2 by markrian, 17 years ago

I've encountered this with a Windows 2000 guest OS, Debian etch host OS. I have gotten DHCP working a couple of times pretty randomly - I have no idea how :(

comment:3 by Frank Mehnert, 17 years ago

For having DHCP work with a host interface you have to make sure that there is a DHCP server is running and that there are free leases available. DHCP will not work out-of-the-box, you have to install a DHCP server yourself. A network traffic dump with wireshark for the host interface would be helpful. webograph, especially from you, the whole dump of the host interface could help to isolate the problem.

comment:4 by Jim Powers, 16 years ago

I am having a similar problem, host Gentoo Linux:

$ uname -a Linux phoenix 2.6.23-gentoo-r3 #4 SMP Tue Jan 22 15:49:08 EST 2008 i686 Genuine Intel(R) CPU 1400 @ 1.83GHz GenuineIntel GNU/Linux

VirtualBox 1.5.4_OSE

Guest Windows 2003 Server

The guest used to be able to use a host bridge network up until I installed .NET 2.0 Service Pack 1 then after rebooting I can only NAT.

I followed these directions for setting up the bridge:

Like I said, bridged network DID work, then suddenly stopped. I have a capture via WireShark that I will attach to this bug report.

by Jim Powers, 16 years ago

Attachment: FailedDHCP added

WireShark trace of Failed DHCP attempt

comment:5 by Frank Mehnert, 16 years ago

Summary: DHCP doesn't work for guestDHCP doesn't work for FreeBSD guests

There is a known problem with FreeBSD when accessing the network card VirtualBox is emulating. The current workaround is to use the other PCNet network type -- select PCNet PCI II (Am79C970A) as type for the network card.

comment:6 by Karthik, 16 years ago

Can anyone please update the FAQ to include "DHCP doesn't work for FreeBSD guests" Many thanks

comment:7 by Frank Mehnert, 16 years ago


comment:8 by Frank Mehnert, 16 years ago

Component: othernetwork
Guest type: otherBSD

comment:9 by Technologov, 15 years ago

Is this still relevant ?

( I doubt it because both NAT and Host networking changed so very much )

Besides, there is no more Win2000 host. Dropped in v1.6


comment:10 by Sander van Leeuwen, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use