Static IP Address Binding List Backup

Is it possible to do a backup of my long Static IP Address Binding List? This would be very useful when reseting router or installing new firmware from scratch so that there will not be a need to rebuild my entire IP binding list again. Thanks in advance for any help

stored in /etc/config/dhcp

config host ‘xxxxxxxxxx’
option mac ‘xx:xx:xx:xx:xx’
option ip ‘192.168.8.28’
option name ‘client28’

2 Likes

Many thanks indeed for the rapid reply. I am not familiar with the advanced settings and so would greatly appreciate it if someone could guide me as to how to be able to access that list and also how to save a backup of it if possible. Thank you again.

no step by step but you can search here or the interent.

in unix style os
connect to router using ssh client
cat /etc/config/dhcp
copy and paste into your own file.

2 Likes

Many thanks indeed for the explanation. Much appreciated

Managed to succefully get the list by SSH to router using PuTTY but how do I restore back to the router? Sorry for being a complete noob but never used linux commands previously.

Nevermind, found solution using WinSCP using this article if anyone else is interested:

https://docs.gl-inet.com/en/2/app/ssh/#:~:text=Launch%20PuTTY,-Click%20PuTTY%20in&text=You%20will%20see%20the%20following,sessions%2C%20and%20Save%20your%20content.

Thanks again rp201rp for your help.

great! now do remeber you dont need everything in the file but just the four lines that begin with "config host ‘xxxxxxxxx’ for each static address. do note sometimes they can be anywhere in the file. when you want to restore to a new config just copy and reboot

2 Likes