-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removing an interface does not remove the dhcp entry #3382
Comments
|
3df9968 should fix the issue (validate if interface is active and dhcpd is enabled). |
|
the same is probably true for dhcpv6 as well |
|
missed the IPv6 page, I'll check. |
|
Wouldn't it be nice to remove the DHCP configuration for an interface after removing the interface? |
|
We don't have a mechanism in place to clean those sections, it would be confusing if we do this in some sections for some components. I rather keep it like it is now. |
So the error is: "DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface."
Well it's not enabled.
After googling that I found this: https://forum.netgate.com/topic/42997/can-t-enable-dhcp-relay
So I made a config backup and searched for dhcp and found:
That opt2 config with the enabled dhcp entry is from an old removed interface. So apparently removing an interface does not remove the dhcp entry and after that you can't remove the matching dhcp entry.
I tried working around the issue by enabling dhcp on another interface and then removing it again. Still the same entry remains.
After downloading the config and editing it, as mentioned in the linked URL, the problem was gone.
The text was updated successfully, but these errors were encountered: