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 ?

    ReplyDelete
  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 :)

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  5. @Anonymous: why would you want to do that? Isn't it simpler to specify origin file flash:static-bindings?

    ReplyDelete

You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.

Ivan Pepelnjak, CCIE#1354, is the chief technology advisor for NIL Data Communications. He has been designing and implementing large-scale data communications networks as well as teaching and writing books about advanced technologies since 1990. See his full profile, contact him or follow @ioshints on Twitter.