How to backup and restore router configuration via TFTP

Backup and restore router configuration via TFTP

Backup hardware’s configuration is the one important routine for network engineers so that when the hardware break down you can recover the failed system within an acceptable time. To backup the configuration, one effective way is to use TFTP to backup and restore configuration between remote hosts.

In the example below, I’ll show how to backup and restore configurations between TFTP Server and Cisco’s router. The TFTP Server will use Cisco TFTP Server software.

Configure TFTP Server

  1. Download Cisco TFTP Server from cisco.com or old version at here. Run setup file to install the software on the computer that will be a TFTP Server (the computer that connected to Cisco router on Ethernet port).
    Cisco TFTP Server setup file
  2. After installed, you’ll see Cisco TFTP Server shortcut on desktop.
    Cisco TFTP Server icon
  3. Open Cisco TFTP Server. You’ll see the window as below that means you have finished setup TFTP Server. You must leave this window open to send/receive configuration with Router.
    Cisco TFTP Server window
  4. You can customize TFTP Server root directory (the directory to keep configuration files) by click View -> Options on menu bar.
    Change root directory

Backup running configuration from a router to the TFTP Server

  1. Connect cable from the router to the TFTP Server. Assign IP on both and ensure that you can ping each other. In this example, the TFTP Server has IP address 192.168.11.10 and the router is 192.168.11.1
  2. Connect to the router.
    Telnet to router
  3. Type ‘copy running-config tftp:’ (without quote).
  4. Enter the IP address of the remote host (the TFTP Server). In this example, it is 192.168.11.10
  5. Enter the destination filename to save the configuration to. Or you can enter to accept the value in the bracket[].
    Copy configuration to TFTP Server
  6. You’ll see the file that has been created and the status on TFTP Server is updated.
    A backup file was created
    The status on TFTP Server was updated
  7. The file contain the running configuration of the router.
    Content of the file that was created

Restore startup configuration from a file on TFTP Server

  1. Connect cable from the router to the TFTP Server. Assign IP on both and ensure that you can ping each other. In this example, the TFTP Server has IP address 192.168.11.10 and the router is 192.168.11.1
  2. Connect to the router.
  3. Enter the IP address of the remote host (the TFTP Server)
  4. Enter the source filename for restore to startup configuration.
  5. The destination is startup-config.
  6. Now the configuration file has been restored to startup-configuration.
    Restore startup configuration from a file on TFTP Server

Summary

The example above shows only one common way to backup and restore the configurations but there are other ways like FTP, HTTP, etc so that you can try which way will suit you best.

14 Comments

  1. satish kumar April 8, 2008
  2. linglom April 11, 2008
  3. aman sankasya April 25, 2008
  4. Dharmendar Kumar November 3, 2008
  5. Augustine November 15, 2008
  6. Niaz Mohammad Ramaki January 15, 2009
  7. anil singh ran January 24, 2009
  8. Ionut Popovici July 13, 2010
  9. my router ip address February 15, 2011
  10. Alemayahu September 9, 2011
  11. Frost Queen October 13, 2011
  12. veeregowda February 1, 2012
  13. Anand March 21, 2012
  14. gaurav kumar August 13, 2015

Leave a Reply

%d bloggers like this: