Home‎ > ‎cisco‎ > ‎IOS Switch Configs‎ > ‎

Starting Fresh with a 3500


1. Resetting the Password:

If you don't remember (or don't know) the password, these are the simple steps for resetting it:

1.1 Rebooting without current startup config:

The trick to getting into the box without the password, is to tell the switch to boot up on it's factory default settings.  To do this you do the following:

a) Power Cycle the switch and press and hold the mode button.

b) At the "switch" prompt
switch:


enter the following:
flash_init
load_helper


Make sure there isn't already a config.old file.  if so, change the following to config.old1 or something.
dir flash:
rename flash:config.text flash:config.old


Then reboot the switch to the factory default OS:
boot

1.2 Deleting the old Config

If you want to completely "virginise" the switch follow these procedures.  If NOT then skip this and go on to the next section.

At the prompt, enable by simply entering <enter>
Switch>en
Switch#

Then delete the old config and simply use the current factory defaults 
delete flash:config.old

1.3 Keeping the old Config and Changing the Password:

If you want to keep the old config, and simply re-enter in the new password, simply do the following:

At the prompt, enable by simply entering <enter>
Switch>en
Switch#

Then reload the old config into the current config by first renaming it, and then uploading it. 
rename flash:config.old flash:config.text
copy flash:config.text system:running-config

Finally, edit the config, and change whatever passwords are needed.
conf t

!--- To overwrite existing secret password
enable secret <new_secret_password>

!--- To overwrite existing enable password
enable password <new_enable_password>

!--- To overwrite existing vty password
line vty 0 15
   password <new_vty_password>
   login

!--- To overwrite existing console password
line con 0
   password <new_console_password>

write memory



2. Virginising the Box:

If you simply want to start from scratch, delete the current config and reboot the switch.  To do this erase the current config, and reboot the box.
write erase
reload

3. Upgrading the OS:

You will want a local tftp server to copy the files from.  On Linux this is easy, but for windows, you need some kind of app to install.  Once you have the tftpd server setup, get the correct os image from cisco and put it on your tftp server. 

From the switch grab the os off of the tftp server:
copy tftp flash
    10.50.32.218
    c3560-ipservicesk9-mz.122-58.SE2.bin


Make sure that the file is good:
verify flash:c3560-ipbasek9-mz.122-44.SE.bin

Configure to boot off new image:
conf t
boot system flash:/c3560-ipservicesk9-mz.122-58.SE2.bin
end

wr mem

Reboot the box using the new image
reload


After boot, confirm new image took:
sh boot

A. References:


Comments