[Ewrt-devel] nvram variables

A. Brandon Psmythe
Wed Aug 4 13:22:38 PDT 2004


Changing the NVRAM variable does not force a change in the various 
settings.  And all a commit does is make the change to the NVRAM 
permanent so as to last through a reboot.  When the box reboots, upon 
startup it reads the NVRAM variables and

For example changing the gw via NVRAM won't change the routing table on 
the box.  To do that you'll need to use the "route [{add|del|flush}]" 
command.

When you make the changes via the web interface, the backend is "smart 
enough" to not only commit the changes to NVRAM, but also run the route 
command, or whatever command it needs to to enact the change immediately.

-bp
-A. Brandon Psmythe
ProStructure Consulting             http://www.prostructure.com
Network and Security Consulting           phone: (503) 288-1566
                "Crafting Connectivity that Matters"


Tejas Kokje wrote:
> Hello,
> 
> Can anybody tell me why changes made by altering nvram variables not reflected even when I use nvram commit.
> 
> I changed the wan gateway using    nvram set wan_gateway=<some new gateway>
> Then I did nvram commit. Even then I am able to access internet. Ideally, internet access should have halted due to non existent gateway.
> 
> The changes are reflected only when I reboot the router.
> 
> I am using Jim Buzbee's Batbox linux on Linksys WRT54GS series routers.
> 
> Thanks 
> Tejas
> 
> 
> 
> 
> 
> Tejas Kokje
> Graduate Student (Computer Science)
> University of Southern California
> URL : http://www-scf.usc.edu/~kokje
> Registered Linux User #: 337673
> 


More information about the Ewrt-devel mailing list