cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5032
Views
5
Helpful
14
Replies

How to backup startup config from router to tftp server?

ESTE
Level 1
Level 1

Is the destination filename the IOS image when executing commands?

1 Accepted Solution

Accepted Solutions

You have to find a way where you can offload this config to reachable IP, then you setup a TFTP and upload.

 

Other option you need to consider-  since you able to SSH to device, log console and safe the config other option you can get the running and startup config to local PC.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

14 Replies 14

Thank you Luis, it helps. The below command string list "Name of configuration file to write". Would this file the IOS image file or something different?

 

Router# copy nvram:startup-config tftp:

Remote host[]? 192.0.0.1
Name of configuration file to write [rtr2-confg]? rtr2-config-b4upgrade

you can directly do that command :

 

copy nvram:startup-config tftp://192.0.0.1/rtr2-config-b4upgrade

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I am SSH into a remote router. Can I still use that command to retrieve the startup config as a backup?

yes you can do SSH and test it. let us know any issues or errors.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Below is the output.

.....
%Error opening tftp://10.x.x.x/rtr2-config-b4upgrade (Timed out)

 

I'm using a tftp server on a windows PC and trying to backup the startup config from a remote router before I upgrade the IOS image in the near future.

1. are you able to ping from remote router ip address of tftp server 10.x.x.x

2. what TFTP Server you running ( do you see any Windows FW in place which is blocking).

3. can you port output from router dir nvram:

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Can't ping from remote router to tftp server.

I'm using Tftpd64 as my server

Directory of nvram:/
  247  -rw-        4514                    <no date>  startup-config
  248  ----        3580                    <no date>  private-config
  249  -rw-        4514                    <no date>  underlying-config
    1  -rw-        2945                    <no date>  cwmp_inventory
    4  ----         238                    <no date>  persistent-data
    5  -rw-          17                    <no date>  ecfm_ieee_mib
    6  -rw-           0                    <no date>  ifIndex-table

Can't ping from remote router to tftp server.  <-- so from router you do not have reachability.

 

So you need to fix this, 10.x.x.x is none routable IP address, so it was NATed in DSL router to reach public Internet.

 

you need to setup DSL router port fowarding to your PC.

example : public IP x.x.x.x port forward tftp server to your PC

then you need to use Public IP address of DSL 

then you can try below :

 

copy nvram:startup-config tftp://x.x.x.x/rtr2-config-b4upgrade  ( where x.x.x.x DSL current Public IP address)

before doing all excises check DSL Public IP rechable from router (some providers block though)

 

 

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I will try it and reply. Thank you.

DSL Public IP not reachable from router.

You have to find a way where you can offload this config to reachable IP, then you setup a TFTP and upload.

 

Other option you need to consider-  since you able to SSH to device, log console and safe the config other option you can get the running and startup config to local PC.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

We have a secure VM to remote router. I was able to access that and get the startup config and flash memory through tftp server.

Thank you for your help!

The router I'm backing up the startup config for is remote.