Solved

How backup Cisco router configuration?

Posted on 2008-06-25
4
4,448 Views
Last Modified: 2010-04-21
Hi everyone. I am in process of working on our DSR plan. One of the components is storing our routers config files offsite so in case of a disaster (router explodes) I would be able to take those backup config files and load them into a new router (similar model that would be compatible). For some reason I have not been able to get the FTP to work and I was trying to avoid having to spend the money on the TFTP option. I read that it might be possible to copy the running config into notepad and just use that. So I putty'ed in to the router, ran a "show run", and then copied all the config info into notepad. In case of disaster would I be able to use this file to import the configurations into a new cisco router?

Thank you
0
Comment
Question by:amait
  • 2
4 Comments
 

Accepted Solution

by:
CaptainInsaneO earned 75 total points
Comment Utility
Yes, that should work for you. I've done this myself, one thing to note however is that if you have a MOTD, it could mess up your configuration when you paste it back into your router's CLI.

As a side note, if you don't want to spend money on a TFTP solution, SolarWinds offers free TFTP: http://www.solarwinds.com/products/freetools/free_tftp_server.aspx

This is the only TFTP solution I use at my company and it has worked for years.
0
 
LVL 23

Assisted Solution

by:that1guy15
that1guy15 earned 50 total points
Comment Utility
What money would you would you need to spend on the TFTP option? There are plenty of free tftp applications/servers available online. The one i use is Solar Winds .

http://www.solarwinds.com/products/freetools/free_tftp_server.aspx

As for the show run it will show you what is configured on your router but you will not be able to just copy and paste it back in since it does not show the full commands needed. You would still need to manually type in the configurations. Your best bet is backing up your startup-config with a tftp server and then storing that off site.
0
 

Author Closing Comment

by:amait
Comment Utility
Thanks guys. I'm not clear on the point distribution etiquette, you both answered pretty much at the same time. I gave a little extra to CaptainInsane since he was first by a hair. Plus that1guy15 provided some additional info. I hope this is ok.
0
 

Expert Comment

by:CaptainInsaneO
Comment Utility
As some clarification, I found this on Cisco's website. This should be exactly what you're looking for:

A terminal emualation program can be used to back up and restore a configuration. This is a description of the procedure using Microsoft Hyperterminal Terminal Emulation software:

If the configuration needs to be copied from another router, connect to that router through the console or Telnet.

At the Router> prompt, issue the enable command, and provide the required password when prompted.

The prompt changes to Router#, which ndicates that the router is now in privileged mode.

Issue the terminal length 0 command in order to force the router to return the entire response at once, rather than one screen at a time.

This allows you to capture the configuration without extraneous --more-- prompts generated when the router responds one screen at a time.

On the HyperTerminal menu, choose Transfer > Capture Text.

The Capture Text window appears.

Name this file "config.txt."

Click Start in order to dismiss the Capture Text window and begin the capture.

Issue the show running-config command, and allow time for the router to complete its response. You will see:

Building configuration...followed by the configuration.

On the HyperTerminal menu, choose Transfer > Capture Text > Stop in order to end the screen capture.

Open the config.txt file you created in any text editor, such as Notepad or Wordpad.

Search for and remove any line that starts with "AAA".

Note: This step is to remove any security commands that could lock you out of the router.

Save the file.

Connect to the router that needs the configuration.

Open the config.txt file.

Highlight the entire contents of the config.txt file.

You can do this by dragging the cursor from before the first character to after the last character in the file while holding down the left mouse button. Alternatively, if you use Notepad, you can choose Edit > Select All from the menu.

Copy the selected text to the Windows clipboard.

You can either choose Edit > Copy from the text editor menu, or hold down the CTRL key and simultaneously press the C key in order to perform the copy.

Switch to the HyperTerminal window, and issue the configure terminal command at the Router# prompt. Then press Enter.

Paste the configuration file into the router by selecting Edit > Paste to Host on the HyperTerminal menu.

After the configuration has finished pasting and the router brings you back to the configuration prompt, issue the copy running-config startup-config command in order to write the configuration into memory.

Issue the exit command in order to return to the Router# prompt.

Verify
Use the show running-config command to confirm that the configuration file has been copied to the destination router.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

It happens many times that access list (ACL) have to be applied to outgoing router interface in order to limit some traffic.This article is about how to test ACL from the router which is not very intuitive for everyone. Below scenario shows simple s…
This article is a guide to configure bridging on Cisco Routers.  This is something I never knew was possible until after making a few phone calls to Cisco.  Using bridging saved our company money by not requiring us to purchase a new switch.  Bridgi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now