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

  • Grandstream Phone Vulnerability Security Issue Remote Backdoor Connection to 207.246.119.209:3478
  • Linux How to Check Which NIC is Onboard eth0 or eth1 Ubuntu Centos Debian Mint
  • VboxManage VirtualBox NAT Network Issues Managment Troubleshooting
  • Dell PowerEdge Server iDRAC Remote KVM/IP Default Username, Password Reset and Login Information Solution
  • Nvidia Tesla GPUs K40/K80/M40/P40/P100/V100 at home/desktop hacking, cooling, powering, cable solutions Tutorial AIO Solutions
  • Stop ls in Linux Debian Mint CentOS Ubuntu from applying quotes around filenames and directory names
  • Thunderbird Attachment Download Error Corrupt Wrong filesize of 29 or 27 bytes Solution
  • Generic IP Camera LAN Default IP Settings DVR
  • Ubuntu Debian Mint Linux How To Update Initramfs Manually update-initramfs
  • Enable Turbo Mode for CPU Ubuntu Linux Mint Debian Redhat
  • docker / kubernetes breaks Proxmox QEMU KVM Bridge VMs
  • How To Change Storage Location in Docker.io
  • RTL8812BU and RTL8822BU Linux Driver Ubuntu Setup Archer T3U Plus
  • Kazam video blank/high size and not working when recording solution
  • Cisco UC CME How To Enable Licensed Features
  • from pip._internal.cli.main import main File "/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/main.py", line 60 sys.stderr.write(f"ERROR: {exc}") from pip._internal.cli.main import main File "/usr/local/lib/python3.5/dist-packag
  • ModuleNotFoundError: No module named 'pip._internal' solution python
  • grub blank screen how to manually boot kernel and initrd Linux Ubuntu Debian Centos won't boot solution
  • Cisco Switch / Router How To Restore Factory Default Settings
  • Cisco 2900 3900 Router Password Reset How To Reset Enable Password