Download router configurations via TFTP

In a previous post, I've described how you can turn your router into a TFTP server. As you can configure the router to serve any file residing on it, you can also pull startup and running configuration from it with TFTP, providing that you configure:
tftp-server nvram:startup-config
tftp-server system:running-config

Warning: Due to total lack of any security features in TFTP protocol, use this functionality only in lab environment.

5 comments:

  1. So show running-config may be substituted by more tftp://local.ip.addr/system:running-config ?
  2. Nope, due to TFTP server limitations (or maybe its a 'security' feature) you cannot include the path. So you have to use tftp://local-ip-addr/running-config or tftp://local-ip-addr/startup-config :)
  3. I'm loading my OSes in my lab that way using the loopback adapter...
    didn't want to spend the money on more flash... =)

    boot-start-marker
    boot system tftp://192.168.201.10/c3620-ik9o3s7-mz.123-23.bin
    boot-end-marker
    interface Loopback0
    ip address 192.168.201.10 255.255.255.255
    tftp-server slot0:c3620-ik9o3s7-mz.123-23.bin
  4. Is it possible to use internal tftp for serving static-bindings file for dhcp-pool?

    Example:
    static-bindings is saved on flash (Soho97 in this case), and configuration

    tftp-server flash1:static-bindings

    (dhcp pool conf.)
    origin file tftp://local-ip-addr/static-bindings
  5. @Anonymous: why would you want to do that? Isn't it simpler to specify origin file flash:static-bindings?
Add comment
Sidebar