<html>
<head>
<title>Password Recovery Procedure</title>
<LINK REL="stylesheet" TYPE="text/css" HREF="../css0.css">
</head>
<body>

<h1>Password Recovery Procedure</h1>

<h2>Description</h2>
This document describes the password recovery procedure for the Cisco Catalyst 2900XL, 3500XL, 2950, and 3550 series switches.

<h2>Step-by-Step Procedure</h2>

<ol>
<li>Attach a terminal or PC with terminal emulation (for example, Hyper Terminal) to the console port of the switch. Use the following terminal settings: <br>

<blockquote>
9600 baud rate
No parity
8 data bits
1 stop bit
No flow control
</blockquote>

<a href="../connection/index.html">Connection From Hyper Terminal</a><p>

<li><p>Unplug the power cable.</p></li>

<li><p>Hold down the mode button located on the left side of the front panel, while reconnecting the power cord to the switch. You can release the mode button a second or two after the LED above port 1x is no longer illuminated. </p>

<p>The following instructions appear:</p>

<pre>
The system has been interrupted prior to initializing the flash file system. 
The following commands will initialize the flash file system, and finish loading 
the operating system software:

flash_init
load_helper
boot
</pre>
</li>

<li><p>Type <b>flash_init</b>.</p></li>

<li><p>Type load_helper.</p></li>

<li><p>Type dir flash:.</p>

<p>!--- Make sure to type a colon ":" after the dir flash</p>

<p>The switch file system is displayed:</p>

<pre>
Directory of flash: 
2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-h-mz-112.8-SA
4 drwx   3776 Mar 01 1993 01:23:24 html 
66 -rwx    130 Jan 01 1970 00:01:19 env_vars
68 -rwx 1296   Mar 01 1993 06:55:51 config.text
1728000 bytes total (456704 bytes free)
</pre>
</li>

<li><p>Type <b>rename flash:config.text flash:config.old</b> to rename the configuration file. </p>

<p>This file contains the password definition.</p>
</li>

<li><p>Type <b>boot</b> to boot the system. </p></li>

<li><p>Enter <b>N</b> at the prompt to start the Setup program, <b>Continue with the configuration dialog? [yes/no] : N</b></p></li>

<li><p>At the switch prompt type <b>en</b> to turn on enable mode. </p></li>

<li><p>Type <b>rename flash:config.old flash:config.text</b> to rename the configuration file with its original name.</p></li>

<li><p>Copy the configuration file into memory: </p>

<pre>
Switch# <b>copy flash:config.text system:running-config</b>
Source filename [config.text]? (press Return)
Destination filename [running-config]? (press Return)
</pre>

<p>The configuration file is now reloaded.</p>
</li>

<li><p>Change the password: </p>
<pre>
switch#<b>configure terminal</b>
switch(config)#<b>no enable secret</b>
<span class=comment>!-- This step is necessary if the switch had an enable secret password</span>
switch(config)#<b>enable password Cisco</b>
switch#(config)#<b>^Z</b>
<span class=comment>!--Control/Z</span>
</pre>
</li>

<li><p>Write the running configuration to the configuration file:</p></li>
<pre>
switch#<b>write memory</b>
</pre>

</ol>

<hr><a href="../index.html">Back</a>

<!--#include virtual="/doc/footer.html" -->

</body>
</html>
