Project

General

Profile

Actions

Bug #13556

closed

"Clear all DHCP leases" button breaks ability to view DHCP leases

Added by Bubba Sparxxx over 2 years ago. Updated over 2 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
DHCP (IPv4)
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.6.x
Affected Architecture:
amd64

Description

After doing a fresh install of pfsense 2.6.0 on top of Protectli Vault FW4B, everything seemed to be going well.

Then I was trying to make a static mapping for one of my devices. After adding it and restarting the DHCP server, I still saw the old IP getting used, instead of the one I mapped out.

So, I decided to try and hit "Clear all DHCP leases". Everything seemed to go fine.

However, afterwards, it shows 0 DHCP leases. I deleted my static entry and restarted. Still 0 (even though multiple devices are connected).

I tried that old IP that I was changing with my mapping - and the old leased IP for that device was still working. So, DHCP is working, but it's just not showing anything in Status -> DHCP Leases.

Furthermore, I now see these error messages in the associated logs:

dhclient 7753 Cannot open or create pidfile: No such file or director

There were none of these before I hit this button.

Any advice is most appreciated. Otherwise I'm just going to re-install from scratch and pray I never hit that button again.

Actions #1

Updated by Jim Pingle over 2 years ago

  • Status changed from New to Not a Bug

That action stops the daemon, removes the lease database, then starts it again. Entries are not automatically added back in until a client makes a DHCP request, which could take hours.

It's not a bug, it did exactly what it was told to do, and as clients eventually restart or renew their leases the data will start to repopulate.

Actions

Also available in: Atom PDF