Solved

How to recover a config from TFTP when the router config won't allow connection to tftp?

Posted on 2003-11-23
8
640 Views
Last Modified: 2013-11-29
I have a config file stored on a TFTP server.  

What if I make changes to the configuration, then do a copy run start and a reload and the new configuration is so messed up I don't have network access to the TFTP server?

How do I get the old config file from the TFTP server into the router.

The TFTP server is in the same room as the router and a console connection is possible between the two machines.

(This hasn't happened to me and I don't expect it to, but I do want to be ready for worst-case-scenario).
0
Comment
Question by:gateguard
  • 3
  • 2
  • 2
  • +1
8 Comments
 

Author Comment

by:gateguard
ID: 9806357
There is no floppy drive on the router.
0
 
LVL 79

Accepted Solution

by:
lrmoore earned 300 total points
ID: 9806535
Assuming you have console access to the router, the simplest thing is to do a 'write erase' reboot with no config, open  the saved config in notepad, under each used interface, add "no shut", Edit/select all, copy, then from the hyperterm console connection;
router#config t
router(config)# {paste to host}

sit back and watch it fly!
0
 
LVL 18

Expert Comment

by:chicagoan
ID: 9806911
and should you need to recover an IOS image:
http://www.cisco.com/warp/public/130/xmodem_generic.pdf
0
 
LVL 18

Expert Comment

by:chicagoan
ID: 9806940
BTW: The most time consuming thing we run into all the time is getting the user to get a working terminal going.
They can't find the cables, don't have a laptop with a configured terminal, etc.
Hook up the console cable and leave it there, you get one with every router.
Get a terminal app working with each device and save it's config on a utility laptop.
It's silly to have a router down for 4 hours because somebody inadvertantly shut down an interface.
Out Of Band management is important on remote routers.
Get a pots line and a modem going on the aux port when you set up the router.
Trying to talk a secretary through configs at the Minnesota Field Office will take years off your life.
 
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 79

Expert Comment

by:lrmoore
ID: 9807124
Chicagoan,
>Get a pots line and a modem going on the aux port
I beg to differ on this one point. put the modem on the Console port.
The aux port is not active until the config is loaded. you can't recover from rommon> crash over the modem unless it is connected to console port.
Also, be careful what kind of modem you use, and be sure to lock down console access with AAA login, or consider a secure modem with username/password protection in it. I've seen lots of companies get slammed on an audit because they have open access points into the network with modems connected directly to routers..
0
 
LVL 18

Assisted Solution

by:chicagoan
chicagoan earned 100 total points
ID: 9807345
quite right - we have all our console ports going to a multiserial card that we can telnet or dial into and the modem on the aux ports as backup - good point
0
 
LVL 5

Assisted Solution

by:epylko
epylko earned 100 total points
ID: 9807774
Do a "copy run flash" and you can save the working config to the flash on the device. If you really hose it (and you should notice that _before_ you reboot it), you can do the "write erase" and then "copy flash run" and "no shut" the interfaces. That is the easiest, quickest way to recover.

-Eric
0
 

Author Comment

by:gateguard
ID: 9807965
thanks
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

867 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

21 Experts available now in Live!

Get 1:1 Help Now