SwampKracker
Senior Member
No factory reset required from the 376.49_3 to 376.49_4, especially if you already did a factory reset when upgrading to 376.49_3.
Yes it does appear to be a bug.
The programmers are just subtracting the "IP Pool Starting Address" from the ending address (+1) without thinking that some people might be manually assigning IPs outside of the pool.
It would be pretty tricky to calculate an accurate number for dhcp-lease-max because some of the assignments might be within the pool and some might be outside it.
As most people use a subnet mask of 255.255.255.0 I think that always setting dhcp-lease-max to 253 (or 100) would be sensible. Or just delete the line completely and let it default to 1000.
sed -i 's|^dhcp-lease-max.*|dhcp-lease-max=255|' /etc/dnsmasq.conf
To be honest I've not found that actual code that makes that calculation. I'm just inferring it from what has been reported.Ouch....must be something that was recently added it used to be set to 255 in other versions to account for the /24 subnet max. Nice find.
if ((i = nvram_get_int("dhcpd_lmax")) > 0)
if ((i = get_dhcpd_lmax()) > 0)
Yes what this is stating is that your DHCP pool doesn't have any more addresses available to lend or that you used a static address for multiple devices and their first device grabbed the IP address. Can you describe how you setup your DHCP configuration in your router?
Please see attachment.
376.49_4 has been uploaded to Mediafire.
Originally Posted by RMerlin View Post
376.49_4 has been uploaded to Mediafire.
Ok...can you check the dnsmasq.conf file and see the value of this parameter:
dhcp-lease-max=
You will have to telnet/ssh into the router, the file is located in the /etc directory.
If you look back in the posts in this thread there appears to be a defect where the calculation of this configuration setting has changed which has been experienced by a myself and another with our static assignment.
I can telnet in, however I don't know the commands well enough to find that information.
type this command:
cat /etc/dnsmasq.conf
This will list the contents to your terminal session.
ra-param=br0,10,600
enable-ra
quiet-ra
dhcp-range=lan,::,constructor:br0,ra-stateless,64,600
dhcp-option=lan,option6:23,[::]
dhcp-lease-max=253
dhcp-authoritative
quiet-dhcp
quiet-dhcp6
admin@RT-N66U-9C50:/tmp/home/root#
It looks like the code was reverted in 376.49 without an actual fix being applied. Here is the original work around from 376.48_1 :Regarding dhcp-lease-max the history for 376.49 (21-Dec-2014) mentions
- CHANGED: Reverted to Asus's max-lease number calculation
for dnsmasq
The commit is
https://github.com/RMerl/asuswrt-merlin/commit/1c1eaaa7b1a6410ea0e8cec57e2876b2f139e7c5
Thank you!
No problem updating 376.49_3 to 376.49_4 without factory reset?
I still believe that the automatic calculation of the value is erratic...
Ouch....must be something that was recently added it used to be set to 255 in other versions to account for the /24 subnet max. Nice find.
It's a very good release , but:
-there is a typo in hxxp://192.168.1.1/AdaptiveQoS_WebHistory.asp on header "Adaptive QoS - Web Histroy"
- hxxp://192.168.1.1/Main_TrafficMonitor_realtime.asp - ethernet WAN graph doesn't work - runs flat all the time.
It looks like the QoS FAQ link is broken too:
http://www.asus.com/us/support/Knowledge-searchV2/?keyword=ASUSWRT QoS
It looks like the code was reverted in 376.49 without an actual fix being applied. Here is the original work around from 376.48_1 :
"dhcpd: temporary fix since Asus's max-lease calculation introduced in 2769 is broken - hardcoding 253 for now to replicate previous releases, will be properly fixed later."
https://github.com/RMerl/asuswrt-merlin/commit/08e71a334150226bb7ac8ccfae701bacb99b5ee8
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!