How do you terminate a DHCP lease in OpenWrt?
+0
−0
I am testing some DHCP stuff, and I want to manually end a lease so I don't have to wait hours for them to expire.
How can I do this with OpenWrt?
1 answer
+0
−0
There is not a way to do this from the Web UI (LuCI). Instead:
- SSH into the router
- Delete the corresponding line from
/tmp/dhcp.leases
However, note that this is not enough to get a new IP. Clients tend to request a renewal of the IP they had before, and the router will grant it if it does not conflict with settings (eg. outside IP range). To get a new IP you need to do steps on the client: https://linux.codidact.com/posts/289619
0 comment threads