<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Arial"><br>
Hi,<br>
<br>
I'm running dnsmasq 2.52 on OpenWRT with, among other options:<br>
<br>
-l /etc/dnsmasq/dhcpd.leases<br>
--dhcp-range=lan,192.168.8.50,192.168.8.200,255.255.255.0,1440h<br>
<br>
1440h = 60 days = 2 months, that's the default lease expiration<br>
<br>
from my backup, which was made some few hours before the supposed
problem i'll post in this message, i have:<br>
<br>
root@sede:~/backup/a/etc/dnsmasq# grep b8:94 dhcpd.leases <br>
1270407878 00:16:44:b8:94:e3 192.168.8.87 noteludy 01:00:16:44:b8:94:e3<br>
root@sede:~/backup/a/etc/dnsmasq# <br>
<br>
the timestamp, converted to human-readable date, would be
04/04/2010 @ 14:04 ..... which means the lease was NOT expired yet and
was generated last week when i was running with 30 days expire time
which was later changed to 60 days. Despite of that change from 30 to
60, lease is NOT expired yet.<br>
<br>
the machine with that MAC address 'arrived' on the network which
the ip address of another network and tried to renew it. dnsmasq
correctly denied it, because that address is not on the actual lan it's
running. Anyway, after denying it, dnsmasq provided a new address from
its range, not honoring the lease present on the leases file which was
still valid and NOT expired.<br>
<br>
<br>
root@sede:~/backup/a/etc/dnsmasq# logread | grep 00:16:44:b8:94:e3<br>
Mar 8 11:26:54 sede daemon.info dnsmasq-dhcp[10347]: DHCPREQUEST(eth1)
192.168.1.101 00:16:44:b8:94:e3 <br>
Mar 8 11:26:54 sede daemon.info dnsmasq-dhcp[10347]: DHCPNAK(eth1)
192.168.1.101 00:16:44:b8:94:e3 wrong address<br>
Mar 8 11:26:54 sede daemon.info dnsmasq-dhcp[10347]: DHCPREQUEST(eth1)
192.168.1.101 00:16:44:b8:94:e3 <br>
Mar 8 11:26:54 sede daemon.info dnsmasq-dhcp[10347]: DHCPNAK(eth1)
192.168.1.101 00:16:44:b8:94:e3 wrong network<br>
Mar 8 11:27:03 sede daemon.info dnsmasq-dhcp[10347]:
DHCPDISCOVER(eth1) 00:16:44:b8:94:e3 <br>
Mar 8 11:27:03 sede daemon.info dnsmasq-dhcp[10347]: DHCPOFFER(eth1)
192.168.8.80 00:16:44:b8:94:e3 <br>
Mar 8 11:27:03 sede daemon.info dnsmasq-dhcp[10347]:
DHCPDISCOVER(eth1) 00:16:44:b8:94:e3 <br>
Mar 8 11:27:03 sede daemon.info dnsmasq-dhcp[10347]: DHCPOFFER(eth1)
192.168.8.80 00:16:44:b8:94:e3 <br>
Mar 8 11:27:03 sede daemon.info dnsmasq-dhcp[10347]: DHCPREQUEST(eth1)
192.168.8.80 00:16:44:b8:94:e3 <br>
Mar 8 11:27:03 sede daemon.info dnsmasq-dhcp[10347]: DHCPACK(eth1)
192.168.8.80 00:16:44:b8:94:e3 noteludy<br>
Mar 8 11:27:03 sede daemon.info dnsmasq-dhcp[10347]: DHCPREQUEST(eth1)
192.168.8.80 00:16:44:b8:94:e3 <br>
Mar 8 11:27:03 sede daemon.info dnsmasq-dhcp[10347]: DHCPACK(eth1)
192.168.8.80 00:16:44:b8:94:e3 noteludy<br>
root@sede:~/backup/a/etc/dnsmasq# <br>
<br>
<br>
<br>
shouldnt dnsmasq provide the IP present on its lease file, given
the fact that lease was still valid ???<br>
<br>
<br>
</font></font>
<pre class="moz-signature" cols="72">--
        Atenciosamente / Sincerily,
        Leonardo Rodrigues
        Solutti Tecnologia
        <a class="moz-txt-link-freetext" href="http://www.solutti.com.br">http://www.solutti.com.br</a>
        Minha armadilha de SPAM, NÃO mandem email
        <a class="moz-txt-link-abbreviated" href="mailto:gertrudes@solutti.com.br">gertrudes@solutti.com.br</a>
        My SPAMTRAP, do not email it
</pre>
</body>
</html>