Skip Links

Network World

Brad Reese

How to install a text file configuration into a Cisco router

By Brad Reese on Tue, 04/29/08 - 10:54am.
Newsletter Signup

Cisco How-To Tutorials

This How-To Tutorial maybe helpful when you have a configuration that needs to be copied from a file, or from one Cisco router to another.

This procedure is described in the Microsoft Hyperterminal Terminal Emulation Software.

You may wish to install a text file configuration into a Cisco router by performing these steps.

Note: If the configuration is already uploaded, go directly to step 8.

1. 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.

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

2. To force the router to return the entire response at once, rather than a screen at a time, issue the terminal length 0 command.

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

3. On the HyperTerminal menu, select Transfer > Capture Text.

The Capture Text window appears

4. Name this file config.txt 5. To dismiss the Capture Text window and begin the capture, click Start. 6. Issue the show running-config command and allow time for the router to complete its response. 7. To end the screen capture, select Transfer > Capture Text > Stop on the HyperTerminal menu. 8. Open the config.txt file you created in any text editor, such as Notepad or Wordpad. 9. Search for and remove any line that starts with AAA.

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

10. For each interface that is followed by shutdown, leave it as it is. 11. For all other interfaces, issue the no shutdown command, as shown in this example:

!
interface Serial0/0
no ip address
no ip directed-broadcast
no shutdown
!

12. Save the file. 13. Connect to the router that needs the configuration. 14. Open the config.txt file. 15. Highlight the entire contents of the config.txt file.

To accomplish this, drag the cursor from before the first character to after the last character in the file while holding down the left mouse button.

If you are using Notepad, select Edit > Select All from the menu.

16. Copy the selected text to the Windows clipboard.

To copy, you can either select Edit > Copy from the text editor's menu, or hold down the CTRL key and simultaneously press the C key.

17. Switch to the HyperTerminal window and issue the configure terminal command at the Router# prompt and select Enter. 18. Paste the configuration file into the router by selecting Edit > Paste to Host on the HyperTerminal menu. 19. After the configuration has finished pasting, and the router brings you back to the configuration prompt, issue the copy running-config startup-config command.

This writes the configuration into memory.

20. To return to the Router# prompt, issue the exit command.

View more Cisco How-To Tutorials

Contact Brad Reese
http://www.BradReese.Com

Brad's Top 5 Story Picks
# 1. Cisco skills shortage is baloney, expert says
# 2. Q & A with the ex-Cisco star who joined ethernet fabric switching startup, Woven Systems
# 3. Earth Day message from BradReese.Com
# 4. Vyatta: Cisco's product line remains locked up tighter than Fort Knox
# 5. Help on the way for SMB telephony reseller margins being squeezed to death by Cisco
Story Archives Brad Reese on Cisco Story Archives

Cisco Repair

Cisco Resumes

Cisco Power Supplies

2008 Cisco Salary Rates

  

Welcome, visitor. Register Log in
About Brad Reese on Cisco

Brad Reese cofounded BradReese.Com Cisco Refurbished, which enables affordable networks globally by assuring customer satisfaction with guaranteed one year warranties on both Cisco Repair as well as Refurbished Cisco.

Don't be shy, contact Brad Reese online or call him Toll Free:

866-864-0506

International callers may wish to call Brad by dialing:

850-364-4115

Archives
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
Categories
A classic scam to defraud Cisco's SMARTnet program
America's Best profile written by Useem regarding Chambers' success
Avian Securities Senior Telecom Research Analyst - Catharine Trebnick
Breakingviews.com correspondent - Robert Cyran
CCIE
Careers
Charlie Giancarlo - Managing Director of Silver Lake Partners and Skype investor
Cisco
Cisco ASR 9000 architecture
Cisco ISR G2 Module Support
Cisco Integrated Services Router Generation 2 (ISR G2) Model Comparison
Cisco Integrated Services Routers Generation 2 Portfolio
Cisco Unified Communications Support for Microsoft Windows 7
Cisco is pushing their ASR 9000 at very competitive prices
Cisco is warning Unified Communications customers about NOT successfully offering support for Microsoft Windows 7
Cisco technical star Jonathan Rosenberg
Cisco will have no liability for any delay in delivery
Data Center
Douglas Smith - Cofounder and President of Network Instruments
Expand visibility of NetFlow-dependent NBAD and compliance applications
GigaStor captures and converts packets in NetFlow data flows
Index Venture partner Danny Rimer
Jonathan Rosenberg - a Cisco Fellow in Cisco's Voice Technology Group
Juniper MX960 lab test results
LANs / WANs
Mark Roberts - Polycom vice president of partner marketing
Michael Useem - Professor of Management
Microsoft
NetFlow
NetFlow add-ons
NetFlow overhead can overtax infrastructure
Network Behavior Anomaly Detection (NBAD)
Network Management
Non-NetFlow capable devices are blind to local traffic
Produce NetFlow about any device
SMB
Security
Selection committee member for America's Best Leaders
September 2009 vs. October 2009 Worldwide CCIE Count Comparison
Silver Lake Managing Director - Egon Durban
Skype's cofounders Niklas Zennstrom and Janus Friis
Software
The Charlie angle is to keep Dave Roux on track
The new Cisco ISR G2 portfolio is priced as follows
VoIP / Convergence
What are the benefits of GigaStor NetFlow Agent?
What’s new on the Cisco ISR G2 models vs. the old ISR models?
Windows 7
Windows 7 just not worth an all-out urgent effort by Cisco to support
Wireless / Mobile
eBay CEO - John Donahoe
sFlow
sFlow and NetFlow provides extended visibility
On The Web
Twitter