Hoang Nhi Nguyen wrote:
> Problem: client xyz requests an address, dnsmasq gives it an IP, say
> 192.168.1.1. My dnsmasq is configured so that after giving out that
> address to the client,  "dhcp-host=192.168.1.1,xyz" is added to the
> configuration file. Now if I change that line to a new IP address,
> say "dhcp-host=192.168.1.2,xyz", and the client does a "release" and
> "renew", the server doesn't reply. Packet capture shows the client
> requesting 192.168.1.1 in the DHCP Discover message, and no response
> from the server.
> 
> My question is, what is the default behaviour when the client requests
> an IP different from the one specified for it in dhcp-host? 

dnsmasq will reply with a DHCPOFFER for the configured address, it
overrides the one the client requests.

I'm confused that there's "no response from the server". is it logging
the DHCPDISCOVER? under nearly all circumstances it will either reply
with a DHCPDISCOVER or log an error message at the end of the
DHCPDISCOVER log line.

> What should
> I do if I want dnsmasq to give the client a specific IP next time it
> requests one?
> 
> "dhcp-authoritative" is not set. I don't know if it matters in this
> case, just throwing it out there.

I doesn't make any difference at the DISCOVER stage, it might  do later
on in the DHCPREQUEST/DHCPACK exchange.

> 
Cheers,

SImon.

Reply via email to