What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

DHCP Reservations

Smokindog

Senior Member
I've followed this firmware (and used) multiple DD-WRT variants going back to the RT-N16.

I have most every client in my environment as a DHCP reservation because I just like being able to look at the IP range and know if it's a TV or a laptop or, ... It's just the way I like things.

I had written my own scripts back at that time to preserve and reload my DHCP reservations. It produced a "CSV type file" that could be edited to add/delete/change and my script only read in the fields "pertinent to the router/firmware" it ran on. Since I haven't really touched it in years, it's way out of date and was DD-WRT specific.

More recently I've used the backup scripts in migration mode but even that can have some issues across models and firmware origins/revs. (https://www.snbforums.com/threads/user-nvram-save-restore-utility-r26-2.19521/).

I'm looking for something really target at just the DHCP reservations and being able to "inject them" into most any DD-WRT variant.

Right now I'd really like to go back and forth between stock and Merlin to check out AiMesh progress and limitations but this one thing keeps me "cautious".

I'd REALLY like to do clean installs (I guess that's M&M) but that would mean manually restoring more than 60 reservations each time I "migrate".

I did spend some time searching and have come up empty.

Is there anything more surgical and "portable" than the above mentioned tool? My current routers are AC68, and AC3100 and I am running stock with AiMesh enabled at the moment. As spares I've got N66, AC66, and AC1900 (unmentionable ;) ) I'm ready to revert back to Merlin and AP mode nodes as I believe AiMesh still needs some spit and polish!!!!

THANKS IN ADVANCE and thanks for all the great firmware!
 
If you don't mind losing webui integration, you could append them to dnsmasq.conf, using a dnsmasq.conf.add file.

Otherwise, backing up and restoring the dhcp_staticlist nvram would be the proper way to do it, although 60 entries might be too many to fit.
 
If you don't mind losing webui integration, you could append them to dnsmasq.conf, using a dnsmasq.conf.add file.

Otherwise, backing up and restoring the dhcp_staticlist nvram would be the proper way to do it, although 60 entries might be too many to fit.
THANK YOU SO MUCH.

Your suggestion is exactly where I'm positioned :)

I've always been stymied why some config items like this weren't better covered and then I have to always remind myself that we're not "normal users".

Thank you again for all that you do. Now what about that AC19.. ONLY KIDDING!

PS - the number of reservations is why my original script parsed the NVRAM variables and created a "hosts like" text file for saving and restoring. It was a common and recognizable format and worked rather well for adding and changing configurations. Maybe I'll revisit my scripts someday in the near future.
 
Last edited:
Bear in mind that dnsmasq.conf.add is a "Merlin" enhancement. It won't have any effect in other firmware varieties.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top