From: Lonnie Mendez <lmendez19@austin.rr.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel][PATCH] Built-in DHCP server
Date: Tue, 20 Feb 2007 08:22:14 -0600 [thread overview]
Message-ID: <1171981334.4091.55.camel@vaio> (raw)
In-Reply-To: <001301c754a4$f10d5120$0464a8c0@athlon>
On Tue, 2007-02-20 at 13:09 +0900, Kazu wrote:
> Hi,
>
> After I used TAP device by -net nic -net tap,ifname=mytap and I tried to use
> user mode network by -net nic -net user, a Windows XP guest doesn't get
> IP address from a built-in DHCP server.
>
> It is fixed by an attached patch.
>
> DHCPRELEASE and DHCPNACK are introduced.
>
> DHCPRELEASE code is borrowed from VirtualBox. Windows 2000/XP tries to call
> DHCPREQUEST and get old IP address when it boots. I made a code to reply
> DHCPNACK to the request. Then the Win2k/XP called DHCPDISCOVER and try to
> get a new IP address.
>
> I tested Windows 98SE/2000/XP, Knoppix 3.8, Morphix, Fedora Core 3 and
> RedHat 7.2 guest.
> There is not problem except RH7.2. It can get IP address but it is
> 10.0.2.16. dhcpcd in RH7.2 tries to call DHCPDISCOVER two times. So it
> consumes two entries in the built-in DHCP server. It seems that it is a bug
> of dhcpcd in RH7.2.
This is nice. One regression noticed is windows 98 SE with the ne2k_isa
card. It used to obtain an ip address at boot time without this patch -
now it obtains a garbage address 169.x.x.x. Works great with ne2k_pci.
next prev parent reply other threads:[~2007-02-20 14:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-20 4:09 [Qemu-devel][PATCH] Built-in DHCP server Kazu
2007-02-20 14:22 ` Lonnie Mendez [this message]
2007-02-21 8:01 ` Kazu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1171981334.4091.55.camel@vaio \
--to=lmendez19@austin.rr.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).