After years of using Clearos 5.x with the DHCP server set to provide leases for unlimited time, I have run out of IP addresses.
How can I manually release specific IP addresses?
I do not want to set the lese time very low.
Thanks,
Joe
How can I manually release specific IP addresses?
I do not want to set the lese time very low.
Thanks,
Joe
In DHCP Server
Share this post:
Responses (5)
-
Accepted Answer
-
Accepted Answer
Joe1 wrote:
Sorry about the paths. I don't use 5.x any more.
I set the lease time to 4 weeks but that did not release any addresses yet, so I edited the file that you mentioned and that did it for me..
The path on ClearOS 5 was actually. /var/misc/dnsmasq.leases.
Thanks,
Joe
Nick Howitt wrote:
Leases are held in /var/lib/dnsmasq/dnsmasq.leases. You may need to stop dnsmasq before you edit the file.
[edit]
From the webconfig you can set the lease time to 4 weeks (in 6.x. I don't know about 5.x). If this is not enough, you can manually edit /etc/dnsmasq.d/dhcp.conf.
[/edit]
I don't think changing the changing the lease time will have any effect on existing leases. The first parameter in the leases file is the expiry date/time in Unix epoch format and this will already have been written to file. Setting the lease time will only affect new or renewing leases. -
Accepted Answer
-
Accepted Answer
I set the lease time to 4 weeks but that did not release any addresses yet, so I edited the file that you mentioned and that did it for me..
The path on ClearOS 5 was actually. /var/misc/dnsmasq.leases.
Thanks,
Joe
Nick Howitt wrote:
Leases are held in /var/lib/dnsmasq/dnsmasq.leases. You may need to stop dnsmasq before you edit the file.
[edit]
From the webconfig you can set the lease time to 4 weeks (in 6.x. I don't know about 5.x). If this is not enough, you can manually edit /etc/dnsmasq.d/dhcp.conf.
[/edit] -
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »