How do I ask a question or two via this email so I can begin a dialouge?

On 1/26/2017 9:40 AM, leaf-user-requ...@lists.sourceforge.net wrote:
> Send leaf-user mailing list submissions to
>       leaf-user@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.sourceforge.net/lists/listinfo/leaf-user
> or, via email, send a message with subject or body 'help' to
>       leaf-user-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>       leaf-user-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of leaf-user digest..."
>
>
> Today's Topics:
>
>     1. Re: saving dnsmasq.leases on reboot (David M Brooke)
>     2. Re: saving dnsmasq.leases on reboot (Andrew)
>     3. Re: saving dnsmasq.leases on reboot (Erich Titl)
>     4. Re: saving dnsmasq.leases on reboot (Bob von Knobloch)
>     5. Re: saving dnsmasq.leases on reboot (Erich Titl)
>     6. Re: saving dnsmasq.leases on reboot (Bob von Knobloch)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 26 Jan 2017 13:18:47 +0000
> From: David M Brooke <l...@davidmbrooke.co.uk>
> Subject: Re: [leaf-user] saving dnsmasq.leases on reboot
> To: Bering List <leaf-user@lists.sourceforge.net>
> Message-ID: <d37ae4e7-2c01-4f19-bd33-7b2f4b099...@davidmbrooke.co.uk>
> Content-Type: text/plain; charset=utf-8
>
>
>> On 26 Jan 2017, at 09:22, Mark Berndt <l...@mechtron.com.au> 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.
> An old file will probably contain expired leases, so it probably won?t work 
> the way you want.
> However, an old file is no worse than no file at all, so not a particular 
> concern.
>
>> 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.
> To Eric?s point from before, using Static Leases (via dhcp-host= in 
> /etc/dnsmasq.conf)
> ensures a device is given the same IP address consistently, but dnsmasq 
> doesn?t seem
> to add the host to DNS unless there?s an *active* DHCP lease in effect.
> So you need to *also* add an entry in /etc/hosts, for the address you know 
> will get allocated.
>
> Or we add some facility to save a defined list of ?emphemeral data? files on 
> a reboot...
>
>> 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
>>>>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 26 Jan 2017 15:28:35 +0200
> From: Andrew <ni...@seti.kr.ua>
> Subject: Re: [leaf-user] saving dnsmasq.leases on reboot
> To: leaf-user@lists.sourceforge.net
> Message-ID: <4aa08ed9-ffe7-aea7-fb91-03c46990f...@seti.kr.ua>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> 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: leaf-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/leaf-user
>> Support Request -- http://leaf-project.org/
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 26 Jan 2017 14:48:34 +0100
> From: Erich Titl <erich.t...@think.ch>
> Subject: Re: [leaf-user] saving dnsmasq.leases on reboot
> To: leaf-user@lists.sourceforge.net
> Message-ID: <63d553f2-d92c-a41f-0952-0d031e4f6...@think.ch>
> Content-Type: text/plain; charset="utf-8"
>
> Hi
>
> Am 26.01.2017 um 14:18 schrieb David M Brooke:
> ...
>> To Eric?s point from before, using Static Leases (via dhcp-host= in 
>> /etc/dnsmasq.conf)
>> ensures a device is given the same IP address consistently, but dnsmasq 
>> doesn?t seem
>> to add the host to DNS unless there?s an *active* DHCP lease in effect.
> Set a very short lease time for these important devices. If dnsmasq does
> not support this then think about another dhcp daemon and add the leases
> to /etc/hosts automagically. This here makes me feel like dnsmasq's dhcp
> capabilities show some shortcomings, but then.
>
> cheers
>
> Erich
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/pkcs7-signature
> Size: 1928 bytes
> Desc: S/MIME Cryptographic Signature
>
> ------------------------------
>
> Message: 4
> Date: Thu, 26 Jan 2017 16:09:27 +0100
> From: Bob von Knobloch <b...@vknobloch.de>
> Subject: Re: [leaf-user] saving dnsmasq.leases on reboot
> To: leaf-user@lists.sourceforge.net
> Message-ID: <537cef88-5c94-40d8-c7b8-7e115cbca...@vknobloch.de>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> On 26/01/17 14:48, Erich Titl wrote:
>> Hi
>>
>> Am 26.01.2017 um 14:18 schrieb David M Brooke:
>> ...
>>> To Eric?s point from before, using Static Leases (via dhcp-host= in
>>> /etc/dnsmasq.conf)
>>> ensures a device is given the same IP address consistently, but
>>> dnsmasq doesn?t seem
>>> to add the host to DNS unless there?s an *active* DHCP lease in effect.
>> Set a very short lease time for these important devices. If dnsmasq does
>> not support this then think about another dhcp daemon and add the leases
>> to /etc/hosts automagically. This here makes me feel like dnsmasq's dhcp
>> capabilities show some shortcomings, but then.
>>
>> cheers
>>
>> Erich
> Look at the dnsmasq option (from the manpage):
>
> -K, --dhcp-authoritative
>       Should be set when dnsmasq is definitely the only DHCP server on a
> network. For DHCPv4, it changes the behaviour from strict RFC compliance
> so that DHCP requests on unknown leases from unknown hosts are not
> ignored. This allows new hosts to get a lease without a tedious timeout
> under all circumstances. It also allows dnsmasq to rebuild its lease
> database without each client needing to reacquire a lease, if the
> database is lost. For DHCPv6 it sets the priority in replies to 255 (the
> maximum) instead of 0 (the minimum).
>
> Maybe this could help?
>
> Cheers,
>
> Bob


------------------------------------------------------------------------------
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: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to