Hi, I accidentally deleted all static leases that I entered in this annoying Web-GUI list.
I tried to delete/reorder the list via telnet an nvram commands which then resulted in an empty list.
Time to start anew list without using the annoying HTML list.
I saw some examples in the forum using the "Additional Dnsmasq Options" to set static leases. But parts of the screenshot where blacked out. Because I don't want to create another mess in my dnsmasq config I politely ask you for a clear example how to enter multiple static leases to that box. _________________ Riesige Gepanzerte Luftschiffe
Joined: 28 Nov 2012 Posts: 17 Location: Dresden, Germany
Posted: Fri Jul 23, 2021 9:28 Post subject:
Okay, looked for dnsmasq general config and found
Code:
dhcp-host=xx:xx:xx:xx:xx:xx,bunker,192.168.1.100
should be sufficient.
And it seems to work but there is my smartphone which seems to get an address defined in the dnsmasq default range between 192.168.1.100-149 although I explicitly set it static (smartphone,192.168.1.14):
Furthermore it is always helpful if you state router model and build number (again see forum guidelines)
I have transferred this to the appropriate forum
About your question make sure the MAC address of the phone stays the same.
Modern phones randomize their MAC addresses, you can disable that in the phones settings.
Furthermore if a phone already has a MAC address it will keep that until you disable the connection or the lease expires.
However you did not set a lease time, I think it then defaults then to 1 hour.
For my setup I specify 1440 minutes so it will look like:
Joined: 28 Nov 2012 Posts: 17 Location: Dresden, Germany
Posted: Fri Jul 23, 2021 10:48 Post subject:
Thank you very much for your hints.
After I did the following:
delete the lease in the web interface
delete the AP in the smartphone and turn of wifi and phone
reboot DDWRT
turn on smartphone and wifi, reenter AP password
the smartphone got the correct ip address 192.168.1.14 assigned.
Just dis/enabling wifi on smartphone OR reboot the router was not enough. Maybe it was the combination of both that helped.
An option to disable random mac address is not available on my smartphone, even in advanced settings but I know that option on my tablet. _________________ Riesige Gepanzerte Luftschiffe
For br0, it defaults to what you set in Basic Setup. For unbridged interfaces and other bridges, it defaults to the time you set for the corresponding DHCP server in the DHCPD section at the bottom of the Networking page. _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.