Page 1 of 1

Gui option to backup and restore only the Static DHCP leases

Posted: Fri Nov 15, 2013 11:03 am
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.

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

Posted: Wed Nov 20, 2013 3:25 pm
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.