<html>
<head>
<title>Recovering A Lost Enable Secret Password</title>
<LINK REL="stylesheet" TYPE="text/css" HREF="../css0.css">
</head>
<body>

<h1>Recovering A Lost Enable Secret Password</h1>
If the enable secret password is lost, a new password must be set. To recover a lost enable secret for cisco routers, follow the steps outlined below.


<h2>Before you begin - Connect A Console</h2>

<ol>
<li>A terminal must be directly attached to the console port of the router. To do this, use the supplied console cable and adapter. Console port settings are 9600 baud, 8N1, no flow control.<br>
Take the following steps to connect a terminal (an ASCII terminal or a PC running terminal emulation software) to the console port on the router:<br>

<a href="../connection/index.html">Connection From Hyper Terminal</a><p>

</ol>

<h2>Procedure</h2>

<ol>

<li>Power cycle the router.</li><p>

<li>Send a "break" command to the router within the first 60 seconds after power cycle. The break command will vary depending on the terminal emulation package used. For Windows Hyperterminal, the break command is sent by holding the CTRL key down and pressing the BREAK key. After sending a successful break character, the router will be in ROM monitor mode as indicated by the angle bracket (>) prompt.<p>

<li>From the ROM monitor prompt, set the configuration register value to 0x142. This causes the router to bypass the configuration contents stored in NVRAM upon next bootup and reboot the router by typing the following:

2500/4000
<blockquote><pre>
> o/r 0x142 
> i
</pre></blockquote>

or 1000/1600/3600/4500
<blockquote><pre>
> confreg 0x142 
> reset 
</pre></blockquote>
The router will reboot itself.<p>

<li>Enter privileged EXEC mode by typing the enable command. No password will be required. The prompt will change to Router(boot)#.

<blockquote><pre>
Router> enable
Router# 
</pre></blockquote>
<p>

<li>Load the original configuration back into the router. There are two equivalent ways of doing this depending on the software version you are running.

<blockquote><pre>
Router# copy startup-config running-config
</pre></blockquote>
For IOS Releases 11.0 and above<br>

OR

<blockquote><pre>
Router# config mem
</pre></blockquote>
For IOS Releases prior to 11.0

<li>Set the new enable password.</li>

<blockquote><pre>
Router# config term
Router(config)# enable secret <b>new_password</b>
</pre></blockquote>

<li>Restore the configuration register and exit configuration mode. The configuration register must be reset so the router will properly boot using the configuration now stored in NVRAM.</li>

<blockquote><pre>
Router(config)# config-reg 0x2102
Router(config)# end 
</pre></blockquote>

<li>Save changes</li>

<blockquote><pre>
Router# copy running-config startup-config
</pre></blockquote>
For IOS Releases 11.0 and above

OR

<blockquote><pre>
Router# write memory
</pre></blockquote>
For IOS Releases prior to 11.0

</ol>

<hr><a href="../index.html">Back</a>
- <a href="../../../support.html">Support</a>

<!--#include virtual="/doc/footer.html" -->

</body>
</html>
