Router Configurations Backup and Restore using FTP and TFTP Method

Posted: 1 Jun 2020 in CCNA
Tags: ,

Learn to take Backup of your Routers or Switch using FTP Server or TFTP Server.In this lab i have shown how to take backup of your routers configuration using FTP server as well as using TFTP server. I have also shown how to configure FTP server on Router.

We will also learn to take backup or Routers RAM data and ROM data both using FTP and TFTP methods.

we will learn the easy process of restore data from FTP server or TFTP server back to Router.

 

 

Router Configurations Backup and Restore using FTP and TFTP Method.

Step 1: Assign IP Address and do some Basic Configuration on Router just For Testing Purpose.

so i have assigned hostname on router,also created username and password and configured telnet on router. also setup enable password on router.

Router(config)#int fa0/0


Router(config-if)#ip add 1.0.0.1 255.0.0.0


Router(config-if)#no shut


Router(config-if)#


Router(config-if)#exit


Router(config)#host ISP


ISP(config)#enable password ccna


ISP(config)#username cisco password redhat


ISP(config)#username usa password washington


ISP(config)#line vty 0 4


ISP(config-line)#login local


ISP(config-line)#exit

 

Step 2: Configure FTP server and TFTP Server

 

here in Our Case 1.0.0.100 is our FTP Server with username satish and password tiwary

While 1.0.0.200 is our TFTP Server.

TFTP Server

Step3: Configure FTP Server on Cisco Router

 

ISP#config t


Enter configuration commands, one per line. End with CNTL/Z.


ISP(config)#


ISP(config)#ip ftp username satish


ISP(config)#ip ftp password tiwary

 

Step 4: Router Configuration Backup using FTP server

Using below command i will save the router configuration over ftp server so that whenever we need the data we can restore back it from the server.

 

isp#copy run ftp:


Address or name of remote host []? 1.0.0.100


Destination filename [isp-confg]?


Writing running-config...


[OK - 701 bytes]

 

 Router Configuration Backup using TFTP server

 

isp#copy run tftp:

Address or name of remote host []? 1.0.0.200

Destination filename [isp-confg]?

Writing running-config....!!

[OK - 701 bytes]

701 bytes copied in 3.068 secs (228 bytes/sec)

 

 

Step 5: Delete Startup-configuration data or DATA saved on Router ROM

 

ISP#erase startup-config

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]y[OK]

Erase of nvram: complete

%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram

 

ISP#show start

startup-config is not present

ISP#

 

Step 6: Delete Running-Config data or Data saved on Router RAM

ISP#reload

 

 

  Restore Router Configuration From FTP Server

 

Step 1:Assign ip address on router interface and enable the port.

 

Router(config)#int fa0/0

Router(config-if)#ip add 1.0.0.1 255.0.0.0

Router(config-if)#no shut

 

Step2: Restore back router configuration  Data From FTP Server

 

Router#copy ftp: run

Router#copy ftp: running-config

Address or name of remote host []? 1.0.0.100

Source filename []? isp-confg

Destination filename [running-config]?

Accessing ftp://1.0.0.100/isp-confg...

[OK - 701 bytes]

701 bytes copied in 0 secs

 

Step4: You can also Restore Router configuration from TFTP server

 

isp#copy tftp: run

Address or name of remote host []? 1.0.0.200

Source filename []? isp-confg

Destination filename [running-config]?

Accessing tftp://1.0.0.200/isp-confg...

Loading isp-confg from 1.0.0.200: !

[OK - 701 bytes]

701 bytes copied in 0.001 secs (701000 bytes/sec)

 

 

Also Learn to take Backup or Routers ROM data using FTP Server

 

isp#copy startup-config ftp:

Address or name of remote host []? 1.0.0.100

Destination filename [isp-confg]? s1-confg

Writing startup-config...

[OK - 701 bytes]

701 bytes copied in 0.051 secs (13000 bytes/sec)

 

Also Learn how to take Backup or Routers ROM data using TFTP Server

 

isp#copy startup-config tftp:

Address or name of remote host []? 1.0.0.200

Destination filename [isp-confg]? s1-confg

Writing startup-config...!!

[OK - 701 bytes]

701 bytes copied in 0 secs
Advertisement

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.