Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
How to remove DHCP reservation from removed interface?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to remove DHCP reservation from removed interface? (Read 2137 times)
revnelson
Newbie
Posts: 7
Karma: 0
How to remove DHCP reservation from removed interface?
«
on:
March 05, 2020, 07:17:26 am »
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
Code:
[Select]
var/dhcpd/var/db/dhcpd.leases*
and clearing those and restarting didn't help either.
Logged
hbc
Hero Member
Posts: 501
Karma: 47
Re: How to remove DHCP reservation from removed interface?
«
Reply #1 on:
March 05, 2020, 11:00:34 am »
Just download the configuration, remove the old entries and reimport just the dhcp section or edit
/etc/config.xml
directly and reconfigure dhcp.
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR
revnelson
Newbie
Posts: 7
Karma: 0
Re: How to remove DHCP reservation from removed interface?
«
Reply #2 on:
March 08, 2020, 09:25:46 am »
Thank you for your reply!
Unfortunately there didn't seem to be any such file at /etc/config.xml as I got this returned:
Code:
[Select]
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.
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: How to remove DHCP reservation from removed interface?
«
Reply #3 on:
March 08, 2020, 01:11:14 pm »
It's /conf/config.xml
Logged
hbc
Hero Member
Posts: 501
Karma: 47
Re: How to remove DHCP reservation from removed interface?
«
Reply #4 on:
March 08, 2020, 10:10:59 pm »
Right, it's
/conf
directory.
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
How to remove DHCP reservation from removed interface?