Simple select MAC adress for static IP

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Generic Questions
Author Message
Speedys
DD-WRT Novice


Joined: 28 Feb 2010
Posts: 6

PostPosted: Tue Mar 26, 2019 19:34    Post subject: Simple select MAC adress for static IP Reply with quote
Hello,

I would like to have some static IP leases.
To do that i have to write down the mac adress and then write it into the static leases table.
Is there no simpe way to do this, via selecting via dropdown menu?
Sponsor
SurprisedItWorks
DD-WRT User


Joined: 04 Aug 2018
Posts: 216
Location: Appalachian mountains, USA

PostPosted: Wed Mar 27, 2019 23:29    Post subject: Reply with quote
Don't know a nice menu way, but instead of typing the MAC addresses into the little boxes in the gui, you can add lines like this (assuming you are using DNSMasq) in the DNSMasq Additional Configuration box:

dhcp-host=XX:XX:XX:XX:XX:XX,NameToUse,192.168.1.YYY,720m

replacing MAC address XX:XX:XX:XX:XX:XX, NameToUse, and IP address 192.168.1.YYY as appropriate. I have a 24 hour lease specified at the end, but I believe I have seen people put "infinite" in that spot.

You still have to research the MAC addresses (I use the GUI info under the Status tab along with the system log) and type stuff out, but at least you can use a proper text editor.

Be careful not to put Windows-style CRLF line endings into the GUI box. I forget which, notepad or wordpad, is the one that can be convinced to stick to linux-style LF line endings, but it's an easy google.

_________________
Five of the Linksys WRT1900ACSv2, on r39144 and r38159. On various: VLANs, client-mode travel router, two DNSCrypt DNS servers (incl Quad9), multiple VAPs, USB/NAS, OpenVPN client (random NordVPN server).

VLANs on the WRT1900ACSv2 and other two-CPU Linksys/Marvell routers:
https://www.dd-wrt.com/phpBB2/viewtopic.php?p=1091367

DNSCrypt for Quad9 DNS and/or multiple servers and/or missing DNSCrypt enable button: Sun Jan 06, 2019 post at
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318094
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Generic Questions 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