DHCP reservation via commands w/mega 21061

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
ironmanco
DD-WRT Novice


Joined: 02 Jul 2011
Posts: 25

PostPosted: Mon Feb 16, 2015 5:46    Post subject: DHCP reservation via commands w/mega 21061 Reply with quote
I'm having some real issues getting DHCP reservations to work. According to the
wiki I'm using the command format that is listed under "starting with build 13832".

I get 3 reservations created but only one populated (other two are blank). Furthermore, I can't modify anything via the gui once I run the script below. In order to delete the leases and get the gui back to functional I have to run commands that set the leasenum to 0.

In all honesty, it would be great to move to the build that allowed linefeeds (post 21676 build) but according to the e4200 wiki the most current stable load is 21061.

Here's the script:

nvram set static_leasenum=3
nvram set static_leases="00:11:22:33:44:55=foobar5=192.168.1.5 00:11:22:33:44:56=foobar6=192.168.1.6 00:11:22:33:44:57=foobar7=192.168.1.7"
Sponsor
jackykoning
DD-WRT User


Joined: 15 May 2013
Posts: 243
Location: The Nederlands

PostPosted: Mon Feb 16, 2015 16:06    Post subject: Re: DHCP reservation via commands w/mega 21061 Reply with quote
ironmanco wrote:

nvram set static_leasenum=3
nvram set static_leases="00:11:22:33:44:55=foobar5=192.168.1.5 00:11:22:33:44:56=foobar6=192.168.1.6 00:11:22:33:44:57=foobar7=192.168.1.7"


try this:
Code:

nvram set static_leasenum=3
nvram set static_leases="00:11:22:33:44:55=foobar5=192.168.1.5= 00:11:22:33:44:56=foobar6=192.168.1.6= 00:11:22:33:44:57=foobar7=192.168.1.7="



I did a nvram get static_leases.

there are 4 arguments so 4 x =
space separates the entry's.

_________________
Hi Smile
2x Netgear R7800
ironmanco
DD-WRT Novice


Joined: 02 Jul 2011
Posts: 25

PostPosted: Mon Feb 16, 2015 16:10    Post subject: Reply with quote
I'll give it a try. I'm also in the process of upgrading to a build that will support the linefeed config.

So - what is the 4th argument meant to do?
Display posts from previous:    Page 1 of 1
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