I believe the host in question is 19.
uci set dhcp.@host[19].leasetime='3m'
uci set dhcp.DMZ.preferred_lifetime='3m'
uci set dhcp.DMZ.ra_useleasetime='1'
uci commit dhcp
service dnsmasq restart
service odhcpd restart
I believe the host in question is 19.
uci set dhcp.@host[19].leasetime='3m'
uci set dhcp.DMZ.preferred_lifetime='3m'
uci set dhcp.DMZ.ra_useleasetime='1'
uci commit dhcp
service dnsmasq restart
service odhcpd restart
Yes. I already thought, I might have to change the leasetime, but was unsure if this had any unwanted consequences like interrupts or similar.. Are there any?
And could you please explain to me what ra_lifetime
, ra_mininterval
and ra_maxinterval
are used for and if changing them makes any difference?
If I understand leasetime
correctly, it's the time that the router reserves the IP for the client when it reconnects. Also the client will always renew its IP after leasetime/2
.
If the host renews the lease in time, there aren't any.
ra_lifetime is how long the RA is valid, max and min intervals are how often the router should send unsolicited RAs.
Yes, it is the same with DHCPv4.
And does setting the ra_* values make any difference at all if I have a short leasetime anyways?
The clients will send anyway Router Solicitations if the RA expires for them and the router will reply to them.
You can adjust the min and max interval to send the RAs unsolicited and avoid some excessive traffic.
I did some reading and think I understood the difference now. The RA settings are for SLAAC and the leases are for DHCPv6. Correct?
For the sake of simplicity yes.
Okay, got it. Thanks a lot for your tremendous patience and help! I think, I got a grasp of these things now and this thread can finally be closed