Use NVRAM for client lease DB

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
squibT
DD-WRT User


Joined: 09 Jul 2006
Posts: 71
Location: Nanaimo BC Canada

PostPosted: Tue Jul 25, 2006 13:19    Post subject: Use NVRAM for client lease DB Reply with quote
Under Services, DHCP server...you can check off Use NVRAM for client lease DB...what is the purpose of this setting...other than the obvious....where would the DB be located if you did not check this off...or would there be no DB created at all?

squibT
Sponsor
cyberde
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1488
Location: the Netherlands

PostPosted: Tue Jul 25, 2006 13:26    Post subject: Reply with quote
Sounds to me it saves the db on nvram (duh) which would save your leases even when the router is rebooted or loses power.
_________________
Firmware: DD-WRT v24-sp2 (latest available) mega
WRT320N

Donater




Joined: 01 Jan 1970
Posts:

PostPosted: Tue Jul 25, 2006 13:36    Post subject: Reply with quote
Doesn't seem to be working in the 07/24 release of V23 SP2 anyway. I noticed that nvram now contains "static_leases" and the server is no longer looking at /tmp/dnsmasq.conf. When I tried to change it back to the former mode it just throws an error on saving the Services.asp page. This has apparently been corrected, so I'll try again after today's build becomes available.

http://www.dd-wrt.com/dd-wrtv2/bugtracker/view.php?id=1531&nbn=3#bugnotes
lawnmowerguy1
Donator


Joined: 06 Jun 2006
Posts: 163

PostPosted: Tue Jul 25, 2006 18:22    Post subject: Reply with quote
it would store the leases in the nvram instead of the temporary ram, however it seems this feature is unstable at the monent
squibT
DD-WRT User


Joined: 09 Jul 2006
Posts: 71
Location: Nanaimo BC Canada

PostPosted: Tue Jul 25, 2006 19:16    Post subject: Reply with quote
Thanx lawnmowerguy1 and rickross,

It seems the 07/24 release does not report clients for me...release renew doesnt have any affect on the router report...maybe rebooting a client may. I cant enable SSHd either...just get an "error on page" that refers to 'dhcpd_usenvram' is null or not an object when I check off SSHd and hit Save...strange...but it is Beta so I cant complain....

squibT
anectine17
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1535
Location: Idaho

PostPosted: Tue Jul 25, 2006 19:36    Post subject: Reply with quote
I'm using the 5/16/06 build of SP1. Under DHCP Server, I have the option to check "Use JFFS2 for client lease DB". It is currently disabled. With that in mind, where are my leases stored now? On the NVRAM? They seem to be plenty stable and survive resets, etc, but is there a better place to store them? Should I enable storage on JFFS2? Move them to my Samba share? If so, how would I go about moving them there? Or should I leave well enough alone? I'll be migrating to SP2 here shortly, so will that offer different options? This is a bit confusing. Any help is appreciated. Thanks.

Alden

_________________
Clear 4G Wimax.
Linksys WRT54G-TM w/14929 std-nokaid, fan-cooled, 2 GB SD mod, Primary Router.
Linksys WRT54G v.3 w/15230 std-nokaid, Client Bridge.
Linksys E2000 w/15200 "Big"
Linksys WRT54G v.4
La Fonera 2100, fan-cooled
Linksys WRT54G v.3.1
Linksys WRT54G v.1.1
Linksys WRT54GS v.1
2x Linksys WRT54G v.2.2

Peacock Thread - READ THOROUGHLY
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5771

PostPosted: Tue Jul 25, 2006 20:31    Post subject: Reply with quote
squibT wrote:
..release renew doesnt have any affect on the router report...maybe rebooting a client may.


Just set:
Code:
nvram set dhcpd_usenvram=0
nvram commit
bbrewerg
DD-WRT Novice


Joined: 16 Jun 2006
Posts: 25

PostPosted: Wed Jul 26, 2006 1:59    Post subject: Reply with quote
this hasn't been fixed has it? i downloaded the 7-24 release and still see the problem. it's marked as "fixed" in the bugtracker.

i can set the dhcpd_usenvram=1 as suggested above... but i need to do more than just that (ie enter my MAC, hostname, IP for dhcpd, turn on ssh, etc...
skywalker
DD-WRT User


Joined: 12 Dec 2006
Posts: 68
Location: USA

PostPosted: Tue Mar 13, 2007 3:36    Post subject: Reply with quote
I am just curious, what is the benefit to using the "Use NVRAM for client lease DB" option? Turning it off frees up a large chunk of memory. OK, so with this option turned off, the lease database is lost on reboot. What is the benefit for storing the lease database so the client does not have to renew its IP when the router reboots?
skywalker
DD-WRT User


Joined: 12 Dec 2006
Posts: 68
Location: USA

PostPosted: Sat Mar 17, 2007 0:20    Post subject: Reply with quote
skywalker wrote:
I am just curious, what is the benefit to using the "Use NVRAM for client lease DB" option?


Hummm, how interesting that there are members of this forum that use this option, but have no idea why they are using this option. OK. so after a few days of evaluatiing whether or not to use this option, I will reply to my own post:

What is the benefit of storing the lease database in nvram? There is no benefit. When the router reboots the lease database is lost. Big deal! So the client has to renew its lease with the DHCP server and may be issued a different IP address. Big deal! The benefit in NOT enabling this option? You save a large chunk of memory.
anectine17
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1535
Location: Idaho

PostPosted: Sat Mar 17, 2007 9:51    Post subject: Reply with quote
Perhaps there is a benefit to storing the Client Lease Data Base in the NVRAM, or JFFS (the other option) if you have static IP leases. Anyone played around with that? If the DB isn't stored, do the static leases get reassigned after reboot? We'll have to see!
_________________
Clear 4G Wimax.
Linksys WRT54G-TM w/14929 std-nokaid, fan-cooled, 2 GB SD mod, Primary Router.
Linksys WRT54G v.3 w/15230 std-nokaid, Client Bridge.
Linksys E2000 w/15200 "Big"
Linksys WRT54G v.4
La Fonera 2100, fan-cooled
Linksys WRT54G v.3.1
Linksys WRT54G v.1.1
Linksys WRT54GS v.1
2x Linksys WRT54G v.2.2

Peacock Thread - READ THOROUGHLY
skywalker
DD-WRT User


Joined: 12 Dec 2006
Posts: 68
Location: USA

PostPosted: Sat Mar 17, 2007 21:20    Post subject: Reply with quote
Ahh, I finally see the light. Smile Idea I guess the only reason why anyone would need to enable this option is for static address allocation, otherwise it is a waste of memory if all you have is dynamic clients.
Deas
DD-WRT Novice


Joined: 16 Feb 2007
Posts: 45

PostPosted: Sat Mar 17, 2007 22:34    Post subject: Reply with quote
hello,

this feature is useless for small home-lan´s and i can explan you why.

a client lease db holds the ip, mac addresses and lease time of all clients having a dynamic ip address. when the router reboots this db is lost. so if you are in a very big lan with many clients it can easily happen that client gets an ip address that was already assignet to a different client before the reboot. you can fix this by rebooting all clients or wait until the lease time is over.

static leases are stored elsewhere - not in the client lease db.

brgds Deas
jsmiddleton4
DD-WRT User


Joined: 18 Mar 2007
Posts: 444

PostPosted: Sun Jun 03, 2007 15:30    Post subject: Reply with quote
I've been trying to answer this for myself. I know its an old post. But is this the case? Is storing the client lease db in either place practially useless for home lans?
_________________
Jim
Netgear R7000
Kong's 24800M OC to 1200,800
Previously:
Asus RT-N66U
Linksys E3000
Linksys WRT54GS Version 2.1
Buffalo WHR-HP-G54
Linksys WRT54G Version 1.1
eywong
DD-WRT User


Joined: 21 Jul 2010
Posts: 120
Location: USA

PostPosted: Mon Apr 18, 2016 22:25    Post subject: Reply with quote
This issue seems to persist in r29440 for Asus RT-AC68U. In my case, with "Use NVRAM for client lease DB" checked, my wl0.1 clients do not get a DHCP-assigned IP address; they get address 169.254.x.y.

ftp://ftp.dd-wrt.com/betas/2016/04-11-2016-r29440/asus-rt-ac68u/

http://www.dd-wrt.com/phpBB2/viewtopic.php?p=1027845#1027845
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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