Gui option to backup and restore only the Static DHCP leases

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

Post Reply
thecrazy
Posts: 20
Joined: Mon Aug 09, 2010 11:33 pm

Gui option to backup and restore only the Static DHCP leases

Post by thecrazy »

I have allways have issues with backing up and restoring the settings of the routers. I have a WNDR3700 and they seem especially susceptible to this...

Anyways, I thought it would be great to an option to backup and restore ONLY the dhcp leases and make it so it would ALLWAYS keep its compatibility between each new version.

I dont really care if I have to setup the router from scratch but with 50+ entries in my DHCP I dont want to retype that all the time.

Thanks.

PS.: in the mean time, im sure there is a file I could edit via an ssh session, would anyone care to point me in the right direction?

Thanks again.

tehpensfan
Posts: 16
Joined: Thu Oct 31, 2013 10:35 am

Re: Gui option to backup and restore only the Static DHCP le

Post by tehpensfan »

There are two files that you need:

Code: Select all

/etc/ethers
/etc/hosts
ethers contains the MAC addresses and IP addresses
hosts contains the ip addresses and hostnames

I was able to find the files by adding an ip/MAC mapping via the web and then using:

Code: Select all

ls -latr
in the /etc and /etc/config directories to figure out which files had been modified as the files most recently modified will be shown at the end of the listing.

I didn't find the file that has the setting to ignore traffic from the host that has a static mapping that tries to connect with a different ip address but that was pretty easy to set from the web ui.
-
1 x WRT54GL v1.1 Gargoyle 1.5.6
1 x TL-WR740N v4.23 Gargoyle 1.6.2
1 x TL-WR740N v4.26 Gargoyle 1.5.11
1 x TL-WR740N v4.26 Gargoyle 1.8.1
1 x TL-WDR3600 v1.3 Gargoyle 1.5.11

Post Reply