1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NVram Export for DHCP Enable Switch

Discussion in 'Tomato Firmware' started by Trexx, Dec 26, 2011.

  1. Trexx

    Trexx Network Guru Member

    First off a big THANK YOU to Toastman for all his hard work and numerous posts.

    Through them I have been able to create an export Nvram script that has 99% of the update firmware automated. The one piece I can't figure out, is which nvram parameter covers the "DHCP Enabled" checkbox?

    Could someone please help me out? With my update this morning to the lastest toastman release, that appears to be the only parameter that didn't get set.

    Thanks,
    Trexx
     
  2. Toastman

    Toastman Super Moderator Staff Member Member

    nvram set lan_proto="dhcp"
     
  3. occamsrazor

    occamsrazor Network Guru Member

    @Trexx - can you share your script please?
     
  4. Trexx

    Trexx Network Guru Member

    Sure....

    Here is what I use to dump my config file out via Tools/System. The output I use to reload my settings post upgrade/nvram erase.

    nvram export --set nvram set | grep clkfreq=
    nvram export --set nvram set | grep cstats=
    nvram export --set nvram set | grep ddnsx0=
    nvram export --set nvram set | grep dhcp_
    nvram export --set nvram set | grep dhcpd_
    nvram export --set nvram set | grep http_
    nvram export --set nvram set | grep https_enable=
    nvram export --set nvram set | grep lan_hostname=
    nvram export --set nvram set | grep lan_ipaddr=
    nvram export --set nvram set | grep lan_proto=
    nvram export --set nvram set | grep portforward=
    nvram export --set nvram set | grep qos_
    nvram export --set nvram set | grep rrule
    nvram export --set nvram set | grep rstats_
    nvram export --set nvram set | grep sshd_
    nvram export --set nvram set | grep wan_dns
    nvram export --set nvram set | grep wan_domain
    nvram export --set nvram set | grep wan_hostname=
    nvram export --set nvram set | grep wan_proto=
    nvram export --set nvram set | grep wl0_

    Add the following to commands to the end of the output from above and you are good to go.

    nvram commit
    reboot

    This works for me, but there maybe other values that need to be added depending on what features you are using (VPN, etc.).

    Trexx
     
  5. Trexx

    Trexx Network Guru Member

    Thanks Toastman.

    One other question, is there a way to export the IPTraffic value under Static DHCP properties?

    Thanks,
    Trexx
     
  6. busy

    busy Networkin' Nut Member

    Administration > IP Traffic Monitoring > Included IPs

    nvram set cstats_include

    Administration > IP Traffic Monitoring > Excluded IPs

    nvram set cstats_exclude
     
  7. Trexx

    Trexx Network Guru Member

    Thanks Busy
     

Share This Page