Project

General

Profile

Actions

Bug #8120

closed

Unable to disable DHCP Server on interface when DNS Resolver "DHCP Registration" is enabled

Added by Braden McGrath about 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DHCP (IPv4)
Target version:
Start date:
11/23/2017
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.2
Affected Architecture:
All

Description

Subject covers this pretty clearly I think, but I'll elaborate with my repro steps. I chose "all" for affected arch because this smells like a "universal" bug, but I'm running on amd64.

  1. Start with a running 2-interface system, typical WAN/LAN configuration. LAN has DHCP Server enabled, and DNS Resolver is configured with both "DHCP Registration" and "Static DHCP" options enabled. (Not sure if the "Static DHCP" matters, but that's what I had so including for completeness.)
  2. Now, add a new interface, I'll use the default "OPT1" name here.
  3. Add Static IPv4 address to OPT1.
  4. DHCP Server was automatically enabled for OPT1 for me. I don't like this behavior, but that might belong in another bug report? It may also be due to stale config remnants, as I have had an OPT1 interface in the past but it has been gone for quite a while.
  5. Attempt to disable DHCP server, and get an error that "DHCP Registration must be disabled from DNS Resolver page before disabling DHCP server". This is super confusing, since I don't want to disable DHCP Registration at all... I just want to shut off DHCP on one interface.

I was able to work-around by disabling the suggested option in DNS Resolver and Saving but not "Applying" it, then going back over to DHCP Server, disabled on OPT1 and Saved, and then went back and fixed DNS config...
I would expect to be able to disable DHCP on a single interface without DNS being upset about that and requiring other changes. I could understand it complaining if I was disabling the last DHCP pool on the system, but that was not the case here.

Actions

Also available in: Atom PDF