Subscribe Subscribe | Subscribe Comments RSS
Subscribe in Bloglines

Add to netvibes
Add to Google Reader or Homepage

I just wrote about backup and restore of Cisco Router and Switches using a TFTP Server & HyperTerminal Emulator program. Let's now backup Cisco Switches and Routers using a FTP Server.

To backup a Cisco Router or Switch to a FTP server, the FTP server should be reacheable from the router or switch.

Logon to the Router/switch and enter the Privilege Exec mode using the enable password.

Enter Global Configuration mode

ciscorouter# conf term

Configure FTP User

ciscorouter(config)# ip ftp username confback

ciscorouter(config)# ip ftp password ciscopass

Copy Running-Config to FTP Server

ciscorouter# copy running-config ftp:
Address or name of remote host []? 192.168.1.100
Destination filename [ciscorouter-confg]? confback20080130
Writing confback20080130 !
1234 bytes copied in 5.341 secs (311 bytes/sec)

That copies the running-config onto a file on the FTP Server.

Restore Config from FTP Server

Before restoring from the FTP Server, remove lines that start with "AAA" to remove security commands that may lock you out.

Now, logon to the router and enter the Privilege Exec mode.

ciscorouter# copy ftp: running-config

Address or name of remote host [192.168.1.100]?
Source filename [confback20080130]?
Destination filename [running-config]?
Accessing ftp://192.168.1.100/backup_cfg_for_router
Loading confback20080130 !
[OK - 1030/4096 bytes]
1030 bytes copied in 13.213 secs (78 bytes/sec)

This restores the backed up config to the running-config. Verify using a "sh run". If all is OK, save the running-config to the startup-config.

ciscorouter# sh run

ciscorouter# wr mem
Building Configuration
[OK]

8 Comments so far »

  1. by John Rattray, on September 11 2008 @ 3:35 am

     

    Ever tried the syntax where you supply the username:password@ftp-host/directory/filename , i.e. you don’t configure the username and password separately ? I have and so far haven’t got it to work…

  2. by Chris, on March 17 2009 @ 2:03 pm

  3. by Daveson, on August 1 2010 @ 3:53 am

     

    Hi,
    What if the other server (ftp server ) has a user name and password, how can I includ them in the commands
    Best

  4. by Suresh, on September 5 2010 @ 3:52 am

     

    Hey guys can someone tell me how to take a backup of multiple switches at the same time.

  5. by Basti, on July 20 2011 @ 5:40 am

     

    @Daveson
    First of all you have to write the “userame” and “password” down in the cisco switch which you have taken for the ftp-server before.

    two steps:

    c-switch>enable
    c-switch#conf t
    c-switch(config)#ip ftp username deutschland
    c-switch(config)#ip ftp password berlin

  6. by Alemayahu, on September 10 2011 @ 3:56 am

     

    ALL SIR GOOD UNDERSTANDING ABOUT YOUR FTP SERVER TO BACKUP&
    RESTORE CONFLAGRATION ALSO PLEAS AIDING OTHER INFORMATION ABUT FTP.
    THANK YOU.

  7. by mpp4manu, on September 13 2011 @ 2:51 pm

     

    The Cisco IOS FTP client is very crude. In fact, we’ve discovered that Cisco IOS versions 12.2 and 12.3 do not work with vsftpd on Solaris 8 servers, but do work with the legacy Solaris FTP server, which has its own set of issues.

    There is some sort of protocol problem when using vsftpd. I’m not sure what and I haven’t been able to test on other operating systems, but the version I compiled on Solaris 8 is the most recent version.

    A search of the web reveals that this is a known issue that Cisco finally addressed in 12.4

  8. by Carsten, on November 24 2011 @ 3:32 am

     

    mppmanu, is the IOS VSFTPD incompability issue confirmed by Cisco ?

    Br,
    /C

Comment RSS · TrackBack URI

Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment: