How to remove DHCP reservation from removed interface?

Started by revnelson, March 05, 2020, 07:17:26 AM

Previous topic - Next topic
I had an IoT VLAN interface that I have since replaced with a different interface. The initial interface has been removed. As you can see in the image, the interface column is empty for those entries on the Services>DHCPv4>Leases table. They don't show up at the bottom of the IOT DHCP Server page. I created a new interface on the same VLAN with the same DHCP settings as the initial interface and they still didn't show up on the DHCP Server page.

Is there a file I can edit through the CLI to remove these manually? They weren't listed in var/dhcpd/var/db/dhcpd.leases* and clearing those and restarting didn't help either.

Just download the configuration, remove the old entries and reimport just the dhcp section or edit /etc/config.xml directly and reconfigure dhcp.
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

Thank you for your reply!

Unfortunately there didn't seem to be any such file at /etc/config.xml as I got this returned:
cat: /etc/config.xml: No such file or directory

However, downloading the configuration, editing those parts out, and restoring from that edited configuration seems to have worked. I got an error from OPNSense on restore, but after rebooting those entries are gone from the Services>DHCPv4>Leases page.


Right, it's /conf directory.
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR