how to backup static leases in dd wrt

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


Joined: 04 Sep 2006
Posts: 17

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: 9029

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 * ddwrt-ovpn-split-advanced.sh * ddwrt-ovpn-kill-switch.sh * ddwrt-ovpn-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: 17

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: 5105
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 48646 WAP
TP-Link WR1043NDv2 -DD-WRT 49326 Gateway,DNS,AP Isolation,Ad-Block,Firewall,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 -DD-WRT 48971 Gateway,DNS,Ad-Block,Firewall,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 -Gargoyle OS 1.13.0b AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear R7800 --DD-WRT 49326 Gateway,DNS,AD-Block,AP&Net Isolation,VLAN's,Firewall,DoT,Vanilla
Netgear R9000 --DD-WRT 49049 Gateway,DNS,AD-Block,AP Isolation,Firewall,Forced DNS,DoT,2,4Ghz only,Vanilla
Broadcom
Netgear R7000 ---DD-WRT 49059 Gateway,DNS,AD-Block,Firewall,Forced DNS,VLAN's,DoT,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby for DNS over TLS I DNSCrypt v2 by mac913
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 12610
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".
_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware‽
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is‽
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
Ger482
DD-WRT Novice


Joined: 04 Sep 2006
Posts: 17

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 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