How to export static DHCP adresses?

Discussion in 'Tomato Firmware' started by Citygott, Dec 8, 2011.

  1. Citygott

    Citygott Addicted to LI Member

    im using "Tomato Firmware v1.28.9054 MIPSR2-beta K26 USB vpn3.6"
    it runs nicely, besides that my 3G modem doesnt work.....
    im running it on a Linksys WRT610N v2.

    i need my "static DHCP" config saved, cause i dont want to configure it by hand, if a upgrade to shibby mod or toastman.

    is there any way to save my DHCP config and VPN config and recover it on any other "tomato" based fw?

    i think, it does not work to use "save config" and "restore config" between different fw releases, or am i doing wrong?
  2. TrueBlueBlooded

    TrueBlueBlooded Addicted to LI Member

  3. Citygott

    Citygott Addicted to LI Member

    No i dowloaded the NVRAM dump of my old router.
    i can open it with an editor, i use proton, and copy&paste the configs (static DHCP/ VPN) i need into the NVRAM Dump of the upgraded Tomato Router.
    But: how do i upload the NVRAM dump back to the router? Sry. for my silly question....

    i have Tomato Firmware v1.28.9054 MIPSR2-beta K26 USB vpn3.6 on my router and i want to upgrade to a newer build. I think i´ll give the shibby mod a try! ;-)
  4. TomatoE2000

    TomatoE2000 Networkin' Nut Member

    Tools->System.paste and execute.
    else telnet into router as root and execute it.make sure you do a nvram commit at the end of it
  5. Citygott

    Citygott Addicted to LI Member

    "Tools-System" doesnt exist in my "older" TomatoUSB build!
    Ill guess it is included in any newer shibby/toastman/teddybear builds??
    am i right?

    1.export nvram of the old router
    2.flash router with new build
    3. export nvram
    4. copy&paste some part of config included in my old setup to the new NVRAM Dump
    5. go to Tools-System, paste and execute.

  6. crashnburn

    crashnburn Network Guru Member

    I am wondering about this also? Any thoughts? Did it work?
  7. Planiwa

    Planiwa Network Guru Member

    No, that's a bit confused. One needs to understand that "nvram export --set" produces executable commands.
    One can then take the (very few) relevant and safe ones from the old environment and run them in the new environment.

    Please do not say "dump"; that's something else. We are talking about commands.

    I replaced a WRT54GL running 1.25 ND with an RT-N16 running 1.28.7494 MIPSR2-Toastman-VLAN-RT K26 USB VPN-NOCAT.

    For the dhcpd_static settings in particular:

    On old router:
    nvram export --set |grep dhcpd_
    This should give you one line like:

    nvram set dhcpd_static="11:22:33:44:55:66<<Plantahi<1>..."
    Copy this and paste it to new router's command line interface.

    But beware ...

    On 1.25 the format was actually:

    nvram set "dhcpd_static=11:22:33:44:55:66:<<Plantahi>..."
    Note the two differences:

    1. The new format is nvram set foo="bar" (was nvram set "foo=bar").
    2. The new format has a <1> (because 2 MAC addresses for one LAN-IP now).

    Neither of these should be problems, in this case, but this illustrates that you should examine each nvram set command rather than blindly running it, because changes do happen between versions.

    Finally, the fact that Citygott writes "Tools-System" doesnt exist in my "older" TomatoUSB build!" makes me wonder whether s/he knows to use telnet or ssh to access the shell (command line interface) on the (old) router. Because if not, the benefit of exporting executable "nvram set" commands cannot be realized.
  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