Deleting a DHCP Lease



  • I am having a play with the new DHCP pools. I have a test pfSense with its WAN on my real LAN. On the real pfSense I want to delete the DHCP lease for the test pfSense WAN (10.49.32.237 in the screenshot). Then I am hoping that, based on my new DHCP pool settings on the real pfSense, the test pfSense will get an IP in a particular pool.
    But when I press the "x" button, the display thinks for a few seconds, refreshes, but the lease is still there.
    I will have a look at the code quickly - but is there a known issue with deleting leases?
    Both test and real pfSense are on:

    2.1-BETA0 (i386)
    built on Mon Sep 17 17:36:40 EDT 2012 
    ```![leases.jpg](/public/_imported_attachments_/1/leases.jpg)
    ![leases.jpg_thumb](/public/_imported_attachments_/1/leases.jpg_thumb)


  • Found the problem. Pull request https://github.com/bsdperimeter/pfsense/pull/224
    Now I can delete old offline dynamic leases.



  • @phil.davis:

    Found the problem. Pull request https://github.com/bsdperimeter/pfsense/pull/224
    Now I can delete old offline dynamic leases.

    Thanks.  I just bumped into this problem myself…your fix works great for me.

    Bruce.


Locked