Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3748
  • 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
Become a Leader in Data Analytics

Gain the power to turn raw data into better business decisions and outcomes in your industry. Transform your career future by earning your MS in Data Analytics. WGU’s MSDA program curriculum features IT certifications from Oracle and SAS.  

 
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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