Anyway to save static DCHP/port forwards/QOS before clearing NVRAM?

Discussion in 'Tomato Firmware' started by bloodien0se, May 25, 2009.

  1. bloodien0se

    bloodien0se Addicted to LI Member

    I'm about to upgrade to 1.24, and of course want to do an NVRAM clearing as well, but I don't feel like putting in all my static DCHP configs, port forwards, and QOS settings again. Is there a way to save these, clear the NVRAM, and restore them after?
  2. nvtweak

    nvtweak LI Guru Member

    According to Jon, you don't need to clear the nvram unless he specifically stated to do so.

    But yes, if you wanted to, you could save your custom nvram variables in a script and run it from telnet or SSH after you cleared the nvram.
  3. Kiwi8

    Kiwi8 LI Guru Member

    Yeah backing up these three tedious settings would be very helpful for me too.

    Can any of the Tomato programmers help to highlight which are the NVRAM values to backup for the static DHCP, port forwards and QOS?

    Thanks in advance.
  4. bogderpirat

    bogderpirat Network Guru Member

    QoS settings:

    nvram show | grep qos_

    qos rules (most volume there i'll presume) are in "qos_orules":

    nvram get qos_orules

    reverting after clearing:

    nvram set qos_orules="whatever<was<there<<before"

    note that if the line is exceedingly long, you'll not be able to enter it all. you can circumvent this by using quotation marks as i did above, if you do so and type a backslash "\", then go to a new line using enter, the command is not executed, but you get another line to enter the rest of the variable's contents. this can be repeated.

    other variables are:
    static dhcp assignments: dhcpd_static
    port forwarding table: portforward
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice