OK, I have fixed the code & added a check in the export function to validate that the NVRAM entries being exported do not conflict with any existing DHCP IP address assignments that were added *after* the initial installation but *before* starting the "Export from NVRAM." This was necessary to avoid ending up with entries having the same MAC and/or IP addresses in the mix. However, this check is only for F/W 386.4 & later versions.
I've also added code to check that there are no conflicts between any NVRAM "dhcp_staticlist" entries (if set) and the DHCP client files data sent from the WebGUI page.
I'll submit a GitHub PR within the next ~20 minutes after I run a few more tests.
@Jack Yaz has merged the changes/fixes described above into the YazDHCP '
develop' branch.
For those who are having issues with the "
duplicate dhcp-host IP address" messages, you can switch from the current
master 1.0.5 version to the
develop 1.0.6 version with the following command:
Bash:
/jffs/scripts/YazDHCP develop
If you're already on the
develop branch, update with the following command:
Bash:
/jffs/scripts/YazDHCP forceupdate
Once updated successfully, you should see the "
x. Export nvram to YazDHCP" menu option from the CLI if the NVRAM "
dhcp_staticlist" variable is set to non-empty values. If so, run the export and then you can check if the "duplicate" messages are still coming from dnsmasq.
If you don't want to run the "export NVRAM" option, you can instead go to the YazDHCP webGUI page ("LAN - DHCP Server") and, without changing anything, simply click on the "Apply" button. This also triggers a check for MAC & IP address duplicates due to NVRAM settings.