Cisco Switch Howto Reset Password

This was done on a 2900 but applies to all the switches of the same era.

 

Step 1 - Power Cycle and enter recovery mode

If you have physical access you can power cycle and hold the mode button down for 15 seconds.  After that the SYS light will flash on the switch and you will see the following screenshot.

If you don't have physical access (eg. it is a datacenter swich over console only) then power cycle and hit "Ctrl+Pause/Break" repeatedly once the power is on until you see the below.

 


 

Step 2 - Disable startup config file

Type: flash_init

Type: dir flash:

This shows us all of the files on the flash card, normally the startup file will be "config.text".  We will be renaming it temporarily until we boot.

Rename the config.text: rename flash:config.text flash:config.text.orig

Step 3 - Boot

Type: boot

You will see output like this

At this point you could just default the switch but we want to reset the password and presumbly look at the existing config and just reset the password for now.

When it asks us if we want the initial configuration dialog? [yes/no]: Answer no

Type: no

Step 4 - Enter Enable Mode, Restore Config And Reset Password

Enter enable mode

Type: en

Restore our config file: 

Type: rename flash:config.text.orig flash:config.text

Set a new password of "realtechtalk.com" (obviously change to the password you want for security reasons).

Type: enable secret realtechtalk.com

Save The New Config/Password You Set

Type: do wr


Tags:

cisco, howto, reset, passwordthis, applies, switches, era, cycle, mode, sys, screenshot, eg, datacenter, swich, console, quot, ctrl, pause, repeatedly, disable, startup, config, flash_init, dir, text, renaming, temporarily, rename, orig, output, default, password, presumbly, existing, initial, configuration, dialog, enable, restore, en, confdig, realtechtalk, wr,

Latest Articles

  • ssh Too many authentication failures not prompting for password
  • LightDM Mint Ubuntu Debian won't start errors Nvidia Graphics
  • WARNING: Unable to determine the path to install the libglvnd EGL vendor library config files. Check that you have pkg-config and the libglvnd development libraries installed, or specify a path with --glvnd-egl-config-path. Linux Ubuntu Mint Debian E
  • How To Upgrade Linux Mint 18.2 to 18.3 to 19.x and 20.x
  • MP3s Won't Play / ID3 Version 2.4 Issues in Cars and Other MP3 Players/CDs/DVDs Solution
  • LXC Containers LXD How to Install and Configure Tutorial Ubuntu Debian Mint
  • GlusterFS HowTo Tutorial For Distributed Storage in Docker, Kubernetes, LXC, KVM, Proxmox
  • Ubuntu Mint audio output not working pulseaudio "pulseaudio[13710]: [pulseaudio] sink-input.c: Failed to create sink input: too many inputs per sink."
  • How To Shrink Dynamically Allocated VM QEMU KVM VMware Disk Image File
  • How To Enable Linux Swapfile Instead of Partition Ubuntu Mint Debian Centos
  • 404 Not Found [IP: 151.101.194.132 80] apt update Debian 11 Bullseye Solution The repository 'http://security.debian.org bullseye/updates Release' does not have a Release file.
  • WARNING: Can't download daily.cvd from db.local.clamav.net freshclam clamav error solution
  • (firefox:9562): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Failed to execute child process "dbus-launch" (No such file or directory) Solution
  • Debian Mint Ubuntu Which Package Provides missing top, ps and w Solution
  • Vbox Virtualbox DNS NAT Network Mode NOT working
  • Docker Tutorial HowTo Install Docker, Use and Create Docker Container Images Clustering Swarm Mode Monitoring Service Hosting Provider
  • Zoom Password Error 'That passcode was incorrect' - Solution Wrong Passcode Wrong Meeting Name
  • How To Startup and Open Remote/Local Folder/Directory in Ubuntu Linux Mint automatically upon login
  • How To Reset Windows Server Password 2019, 2022, 7, 8, 10, 11 Recovery and Removal Guide Using Linux Ubuntu Mint Debian
  • How To Create OpenVPN Server for Secure Remote Corporate Access in Linux Debian/Mint/Ubuntu with client public key authentication