Sidetech’s Tiny Blog

All about TechStuff, Open Source, Tutorials, News and Gadgets

How to reset a password on Cisco Catalyst Switch 2900 Series

Posted by nelson21 on September 18, 2008

I need to setup mrtg in our 2nd hand cisco catalyst switch. I believe this switch is a little bit obsolete but this is the one my superior told me to use. I visit my favorite distributor of refurbished networking applicance store and look for Cisco Catalyst 2900 Series

So I need to recover the password to put IP address to the VPN Interface. Here is the procedure that I did:

1. Hold down the mode button located on the left side of the front panel, while reconnecting the power cable to the switch.

Release the mode button after the LED above Port 1x goes out.

Note: LED position may vary slightly depending on the model.

2. Issue the flash_init command and press Enter

switch: flash_init
Initializing Flash…
flashfs[0]: 143 files, 4 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 2729472
flashfs[0]: Bytes available: 883200
flashfs[0]: flashfs fsck took 86 seconds
….done Initializing Flash.

3. Issue the load_helper command and press Enter

switch: load_helper
switch:

4. Issue the dir flash: command and press Enter

Note : Make sure to type a colon “:” after the dir flash.

The switch file system is displayed:

switch: dir flash:
Directory of flash:/
2 -rwx 1803357 c3500xl-c3h2s-mz.120-5.WC7.bin

5. Type rename flash:config.text flash:config.old to rename the configuration file.

switch: rename flash:config.text flash:config.old
switch:

6. Issue the boot command to boot the system.

switch: boot
Loading “flash:c3500xl-c3h2s-mz.120-5.WC7.bin”…###############################
################################################################################
######################################################################
File “flash:c3500xl-c3h2s-mz.120-5.WC7.bin” uncompressed and installed, entry po
int: 0×3000
executing…

7. Enter “n” at the prompt to abort the initial configuration dialog.

--- System Configuration Dialog ---
At any point you may enter a question mark ‘?’ for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets ‘[]‘.
Continue with configuration dialog? [yes/no]: n

Switch>

8. At the switch prompt, type en to enter enable mode.

9. Type rename flash:config.old flash:config.text to rename the configuration file with its original name.

Switch#rename flash:config.old flash:config.text
Destination filename [config.text]

!— Press Return or Enter.
Switch#

10. Copy the configuration file into memory by typing copy flash:config.text system:running-config

Switch#copy flash:config.text system:running-config
Destination filename [running-config]?

!— Press Return or Enter.
1131 bytes copied in 0.760 secs
Switch#

The configuration file is now reloaded.

11. Change the password.

Switch#configure terminal
Switch(config)#no enable secret

!— This step is necessary if the switch had an enable secret
!— password.

Switch(config)#enable password Cisco
Switch#(config)#^Z

!— Use Ctrl-Z.

12. Write the running configuration to the configuration file with the write memory command.

Switch#write memory
Building configuration…
[OK]
Switch#

13. Finish

Cisco Catalyst

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: