Static IP setting, in LUCI why not directly on active leases

Searching high and low, found such guides:

but none mention any way to edit the Active leases DIRECTLY, and just change/set static IP directly on the list of active leases. most other firmware ddwrt/tomato/linksys allow editing the active lease without poping up a blank page to enter all data.. is that possible on openwrt? doesn’t sound too hard to implement..

Yes, on the first page when you login to OpenWrt:

1 Like

oh, wow, sorry, missed that! still, not possible to EDIT (change IP/name), or INVALIDATE..

finally did it via ssh remove in /tmp/dhcp.leases and restart dnsmasq..

Thanks!!

Yes it is:

  • Hit the button
  • Close (do not select Save or Apply Unchecked)
  • Browse to Network > DHCP and DNS > Static Leases
  • EDIT as desired :wink:
  • Save & apply

No clue what this means. If you mean the non-standard process of the router erasing a valid lease that it issued, then no. There's an extensive discussion on that in another thread.

1 Like

It is not possible to invalidate because DHCP doesn't have such provisions. This is not unique to OpenWrt (which uses Dnsmasq as the DHCP server) -- all DHCP servers have the same limitation.

To be clear, some systems may allow you to delete the DHCP lease from the lease table, but it doesn't actually invalidate the lease. The client can continue using the IP address until the lease expiration. This means that deleting the lease from the table on the router simply frees it up to be given to another client, but this can be problematic if the same address is then granted to another host since this could cause an address collision.

3 Likes

right, that’s what i meant, to remove, ok, read the other thread, thanks friends for the super fast reply!!

the “edit” is not very trivial, but how you described, appears to work..

1 Like

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.