• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3971
  • Last Modified:

How to import text file into Cisco router config.

I have a text file of a Cisco router config that I would like to import without having to type out all of the commands.  Is there an easy way to do this?  Thanks!
0
tstech248
Asked:
tstech248
1 Solution
 
that1guy15Commented:
Most telnet and SSH clients support copy and paste. As long as the commands that are being pasted in are supported you will be good to just copy and paste straght into the command line
0
 
tstech248Author Commented:
Do I have to wipe the current config?
0
 
damalanoCommented:
yes. Do a write erase.
Connect via console
say no to initial setup. and do a conf t
don't paste everyting at once but part by part.
Make sure to do a no shut on the interfaces you need.

good luck
0
IT Degree with Certifications Included

Aspire to become a network administrator, network security analyst, or computer and information systems manager? Make the most of your experience as an IT professional by earning your B.S. in Network Operations and Security.

 
tstech248Author Commented:
Does doing a wr erase reset all passwords on it?
0
 
dathhoCommented:
Which model?
If you have ASDM the easiest, most accurate way is to use the built in file manager whereby you can transfer files from/to http, https, ftp server or browse your local computer, or flash.
0
 
damalanoCommented:
yes it wil erase the passwords
default is cisco cisco or blank
0
 
damalanoCommented:
if you don't want to erase you can put some pieces in but chance is that you get wromg statements
0
 
PugglewuggleCommented:
The easiest thing to do is run a TFTP server on your computer and then run a copy tftp startup-config on the device while it is running as normal. Just fill in the questions asked with the correct info and it will copy the config from your PC to the startup-config file on the device.
Then, issue a reload noconfirm command on the device and it will restart and load the config you just transferred with no mucking around with copying, pasting, and formatting, and stuff like that.
Very quick, very easy, and 100% accurate.
Cheers! Let me know if you have any questions!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now