You can add them to dnsmasq itself using the the /jffs/configs/dnsmasq.conf.add file. Just add/remove entries llike this:Is it possible to do this from the command line? I would like to be able to program routers with devices to be pinned to static LAN IPs.
You can add them to dnsmasq itself using the the /jffs/configs/dnsmasq.conf.add file. Just add/remove entries llike this:
dhcp-host=aa:bb:cc:dd:ee:ff,192.168.111.50
and then restart dnsmasq:
service restart_dnsmasq
Is there any advantage to assigning IP addresses through the command line?
I have always done it the first way through LAN>DHCP>IP assignment and it works for me. The only problem I have with that is that I have to enter the IP assignments on every router individually if I want them the same. Doing a hard factory reboot requires that I have to enter the IP assignments manually again. It is somewhat tedious when you have 40+ assignments to do on multiple routers. Could this be done with a script that I only have to do once and can copy to each router without having to manually reenter it each time?
Thanks, I didn't catch this thread when it was posted. A very useful utility.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!