how to backup static leases in dd wrt

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Ger482
DD-WRT Novice


Joined: 04 Sep 2006
Posts: 47

PostPosted: Fri Dec 31, 2021 22:31    Post subject: how to backup static leases in dd wrt Reply with quote
Hi all I have about 16 static leases on my asus u68 router running Firmware: DD-WRT v3.0-r47942 std .I have very little knowledge of the firmware and would like to know how to backup static leases so I don't need to reinstall on updating firmware. thanks for any advice.
Sponsor
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Sat Jan 01, 2022 3:50    Post subject: Reply with quote
The following link is specifically for FT (FreshTomato), but the same principles apply for DD-WRT ...

https://www.linksysinfo.org/index.php?threads/move-dnsmasq-conf-hosts-from-one-router-to-another.75817/post-319022

... only the specific variables are different.

nvram get static_leases
nvram get static_leasenum

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
Ger482
DD-WRT Novice


Joined: 04 Sep 2006
Posts: 47

PostPosted: Sat Jan 01, 2022 4:02    Post subject: Reply with quote
thank you eibgrad for the reply. will give it a try.

well I downloaded Winscp and was able to copy the dnsmasq.conf to a text file.I hope I can just edit it when I load new firmware.
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6410
Location: UK, London, just across the river..

PostPosted: Sat Jan 01, 2022 8:03    Post subject: Reply with quote
log in via SSh/telnet (command line) i use program called 'Putty' and issue this command

cat /tmp/dnsmasq.conf

than find those lines in this format(xx.xx.. must be their mac address)
dhcp-host=xx:xx:xx:xx:xx:xx,PC2,192.168.1.100,infinite
dhcp-host=xx:xx:xx:xx:xx:xx,PC1,192.168.1.101,infinite

mouse select those and ctrl+c

than save those to txt file...
you can directly copy/paste those lines in this format to GUI in the Additional Dnsmasq Options on Service page and
save & apply

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55460 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55460 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Sat Jan 01, 2022 16:16    Post subject: Reply with quote
You don't need to use CTRL+C to copy from PuTTY, just highlight the text. You can also right-click on the window bar and select "copy all".
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Ger482
DD-WRT Novice


Joined: 04 Sep 2006
Posts: 47

PostPosted: Mon Jan 03, 2022 18:53    Post subject: Reply with quote
thanks for the answers I now have the backup. Very Happy
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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