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

  • How to allow SSH root user access in Linux/Debian/Mint/RHEL/Ubuntu/CentOS
  • Ansible Tutorial - Playbook How To Install From Scratch and Deploy LAMP + Wordpress on Remote Server
  • Ceph Install Errors on Proxmox / How To Fix Solution
  • Proxmox Update Error https://enterprise.proxmox.com/debian/pve bullseye InRelease 401 Unauthorized [IP: 144.217.225.162 443]
  • QEMU/KVM How to Hot-add A Virtual Disk .raw/.qcow2 via QEMU Monitor Commands
  • Proxmox How To Enable Ceph Distributed Storage Cluster with OSD and Pools
  • pulseaudio issue on QEMU/KVM guest VM when microphone is replugged/unplugged pulseaudio: pa_threaded_mainloop_lock failed pulseaudio: Reason: Invalid argument
  • Ubuntu Linux Mint - Volume Control Stopped Working
  • Proxmox Services Won't Start Failed to start The Proxmox VE cluster filesystem. Proxmox VE firewall. PVE Status Daemon. Proxmox VE scheduler. PVE Cluster HA Resource Manager Daemon. PVE Local HA Resource Manager Daemon.
  • Proxmox Guide FAQ / Errors / Howto
  • Virtualbox Vbox Issue Cannot Enable Nested Virtualization Button is Grayed/Greyed Out and Unclickable HowTo Solution
  • Virtualbox VBOX Howto Port Forward To Guests
  • Linux Ubuntu Debian Centos Mint - How To Check if Intel VT-x or AMD-V Hardware Virtualization is Enabled?
  • Linux Howto Zip Multiple Files and Directories
  • Windows Cannot Format USB drive Device Media is Write Protected Error Solution
  • Linux Mint 20 cannot install snapd missing solution
  • Virtualbox VBOX How To Install Guest-Utils/GuestUtils so drag and drop and clipboard works Ubuntu Mint Debian Linux
  • How to install Kubernetes with microk8s and deploy apps on Debian/Mint/Ubuntu Linux
  • vi how to delete everything to the end of the line or the rest of the line from the cursor
  • Cisco Howto Configure Console Port/Terminal/Comm Server with Async Cable Setup