Hi. The best solution will be set shall renew time and big lease time - but it seems like dnsmasq doesn't support renew time specifying...
You may try to use some persistent-mounted partition that will store your leases (not a perfect solution, but it's suitable if this isn't a boot partition). Or you can try to add persistent IP records to dnsmasq config. On 26.01.2017 11:22, Mark Berndt wrote: > On Tue, 24 Jan 2017 03:35:17 PM John Sager wrote: >> I think he wants to save it before every reboot rather than manually. > yes, that is correct - I want to be able to save the ephemeral data that is > not permanent configuration. > >> That would need a crafted script to save it (probably from local.stop), and >> then reload it on boot up & make sure dnsmasq picked it up. You could put >> the script in /root as everything there is saved to configdb.lrp. However if >> the router just died on a power failure then you would end up with an old >> leases file when it rebooted. Would that be a problem? > I don't really see a problem with an old file, because the dhcp is fairly > stable here. > > The problem I get now is that I have no leases after a router reboot which > seriously effects my semi-permanent devices such as IP cameras, phone etc. I > can't set them to a really short lease, because if the router is down I lose > access to them. > > many thanks > > Marko > > >> John >> >> On 24/01/17 14:48, Erich Titl wrote: >>> Hi >>> >>> Am 23.01.2017 um 22:46 schrieb Mark Berndt: >>>> On Thu, 19 Jan 2017 04:52:57 PM Erich Titl wrote: >>>>> Am 19.01.2017 um 02:24 schrieb Mark Berndt: >>>>>> When I reboot my leaf system, /var/lib/misc/dnsmasq.leases is lost. >>>>>> >>>>>> I added it to my local config so it is saved, but of course this only >>>>>> happens when save the config. >>>>>> >>>>>> What is the best way to preserve this information between reboots? >>>>> The easiest way is to add it to /vart/lib/lrpkg/local.local >>>>> >>>>> cheers >>>>> >>>>> ET >>>> Thanks John & ET. >>>> How do I save the config from the command line, I want to put it in the >>>> stop script. Is it possible to just save the local data, not the whole >>>> config?> >>> What is local data if not the config. >>> >>> To save from the command line have a look at the apkg parameters. >>> >>> cheers >>> >>> ET >>> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > ------------------------------------------------------------------------ > leaf-user mailing list: [email protected] > https://lists.sourceforge.net/lists/listinfo/leaf-user > Support Request -- http://leaf-project.org/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ------------------------------------------------------------------------ leaf-user mailing list: [email protected] https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/
