|
Re: Problem when WinXP firewall is activated (d oes not reply to ping): msg#00018network.dns.dnsmasq.general
Raphaël Huck wrote: As I understand it, the client should try an arping before using the Set the (rather misnamed) --leasefile-ro flag. That actually stops dnsmasq from using a lease file at all. Instead it relies a script which gets run at start-up and whenever a lease changes, to maintain the lease database. Dnsmasq needs to be pointed at this script using the --dhcp-script option. Using this mechanism, it is possible to store the lease database in any storage system (a SQL database, for instance). The dnsmasq distribution has a sample script (in contrib/wrt/lease_update.sh) which uses the "nvram" command to keep the lease database in the router's non-voltile memory. This is exactly what you need. Is it always safe to reload an old lease file on reboot?Yes. On a system which doesn't maintain system time over a reboot, dnsmasq needs to be compiled with HAVE_BROKEN_RTC set to cope with its idea of time changing over a reboot. This likely to be the case on a WRT-class router.
As far as I can see, the only order of events which could get to the situation you see is: Linux box has lease on 192.168.1.20 router reboots (and clears leasefile) Windows box takes a lease and gets 192.168.1.20 If the ARP check had worked during the windows box lease-aquisition, it would have seen the Linux box on 192.168.1.20, and taken an alternative address. Cheers, Simon. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Problem when WinXP firewall is activated (d oes not reply to ping): 00018, Raphaël Huck |
|---|---|
| Next by Date: | Re: Any plans on adding ability to store cachetodisk?: 00018, Simon Kelley |
| Previous by Thread: | RE: Problem when WinXP firewall is activated (d oes not reply to ping)i: 00018, Raphaël Huck |
| Next by Thread: | Re: Problem when WinXP firewall is activated (d oes not reply to ping): 00018, Raphaël HUCK |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |