Set static leases in dnsmasq.conf

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
giles02134
DD-WRT User


Joined: 25 Feb 2007
Posts: 142

PostPosted: Sat Feb 03, 2024 12:28    Post subject: Set static leases in dnsmasq.conf Reply with quote
I am using dnsmasq for dhcp.
For unknown reasons, I am no longer able to add static leases through the GUI. When I enter a static lease in the GUI, and then click "Save" or "Apply Settings", the info I just entered simply disappears.

I know that it is possible to add static leases by entering the info in the /tmp/dnsmasq.conf file, but I'm not sure how to do it. I've seen a number of different methods described.

Might someone point me to the best way to add static leases through the command shell? I have ten that I'd like to configure.

Much appreciated in advance.

_________________
Router: Linksys WRT1900ACSv2
Modem: Verizon Fios
DD-WRT v3.0-r44048 std (08/02/20)
ISP: Verizon Fios
NAS: ReadyNas314
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Sat Feb 03, 2024 12:49    Post subject: Reply with quote
The trick is that you cannot save empty lines in the GUI.

Therefore just add 1 new empty line, fill in the line and save.

No empty lines can be saved

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
giles02134
DD-WRT User


Joined: 25 Feb 2007
Posts: 142

PostPosted: Sat Feb 03, 2024 12:54    Post subject: Reply with quote
Yes - that I know.
However, even after deleting empty lines, saving, and re-entering info for a static lease, the info won't save.

_________________
Router: Linksys WRT1900ACSv2
Modem: Verizon Fios
DD-WRT v3.0-r44048 std (08/02/20)
ISP: Verizon Fios
NAS: ReadyNas314
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12922
Location: Netherlands

PostPosted: Sat Feb 03, 2024 12:58    Post subject: Reply with quote
giles02134 wrote:
Yes - that I know.
However, even after deleting empty lines, saving, and re-entering info for a static lease, the info won't save.


You are running an almost four year old build so who knows

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
giles02134
DD-WRT User


Joined: 25 Feb 2007
Posts: 142

PostPosted: Sat Feb 03, 2024 13:13    Post subject: Reply with quote
Yes - I'm aware. Razz
I've been hesitant to upgrade because the connectivity issues with Apple stuff.
Perhaps it's time I took the plunge, and do a clean install without saving prior settings.

Thanks,
Greg

_________________
Router: Linksys WRT1900ACSv2
Modem: Verizon Fios
DD-WRT v3.0-r44048 std (08/02/20)
ISP: Verizon Fios
NAS: ReadyNas314
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12922
Location: Netherlands

PostPosted: Sat Feb 03, 2024 13:38    Post subject: Reply with quote
giles02134 wrote:
Yes - I'm aware. Razz
I've been hesitant to upgrade because the connectivity issues with Apple stuff.
Perhaps it's time I took the plunge, and do a clean install without saving prior settings.

Thanks,
Greg



Be aware that recent builds switched to Kernel 6.1 which is a WIP, so research carefully maybe you want to use the last K4.X build?

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum