OK, so I thought I could modify dhcpcd.conf and add:
leasetime 86400
But this has had no effect. Is there somewhere else I'm supposed to be looking to make this change?
I'll start a new thread, since this has morphed into a different sort of question.
This has to be done on the DHCP server side. The way to do this depends on your router. In most canned devices, there is an option in the web interface.
The option which you used simply instruct a client to request a particular leasetime, however, if the server sets this variable on its own, the request will be ignored.
]]>leasetime 86400
But this has had no effect. Is there somewhere else I'm supposed to be looking to make this change?
I'll start a new thread, since this has morphed into a different sort of question.
]]>$ /usr/sbin/dhcpcd -U wlan0
broadcast_address=10.0.0.255
dhcp_lease_time=86400 <--- 24 hours, modified in dnsmasq.conf
dhcp_message_type=5
dhcp_rebinding_time=75600 <--- haven't set
dhcp_renewal_time=43200 <--- haven't set
dhcp_server_identifier=10.0.0.1
domain_name=home
domain_name_servers=10.0.0.1
ip_address=10.0.0.11 <--- client IP
network_number=10.0.0.0
routers=10.0.0.1
subnet_cidr=24
subnet_mask=255.255.255.0
As a sidenote, why do you need such short lease time? It is typically used on large networks (like university) where users come in and leave very often.
]]>Jan 24 12:10:49 isaac-laptop dhcpcd[1101]: wlp2s0: renewing lease of 192.168.0.11
Jan 24 12:10:50 isaac-laptop dhcpcd[1101]: wlp2s0: acknowledged 192.168.0.11 from 192.168.0.1
Jan 24 12:10:50 isaac-laptop dhcpcd[1101]: wlp2s0: leased 192.168.0.11 for 3600 seconds
Jan 24 12:40:51 isaac-laptop dhcpcd[1101]: wlp2s0: renewing lease of 192.168.0.11
Jan 24 12:40:52 isaac-laptop dhcpcd[1101]: wlp2s0: acknowledged 192.168.0.11 from 192.168.0.1
Jan 24 12:40:52 isaac-laptop dhcpcd[1101]: wlp2s0: leased 192.168.0.11 for 3600 seconds
Jan 24 13:10:52 isaac-laptop dhcpcd[1101]: wlp2s0: renewing lease of 192.168.0.11
Jan 24 13:10:53 isaac-laptop dhcpcd[1101]: wlp2s0: acknowledged 192.168.0.11 from 192.168.0.1
Jan 24 13:10:53 isaac-laptop dhcpcd[1101]: wlp2s0: leased 192.168.0.11 for 3600 seconds
Why is it renewing the lease every thirty minutes (1800 seconds) but saying that it is being leased for 3600 seconds?
]]>