• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Roger Perkin

Network Automation Architect

  • Network Automation
    • Network Automation Courses
    • What is NetDevOps?
    • Workflow Orchestration
    • Ansible Automation Platform
    • Ansible Workshop
    • What is Network Automation?
    • Network Automation Tools
    • ContainerLab
    • Ansible Training
      • What is Ansible?
      • Ansible Tutorial for Beginners
      • Ansible Network Automation
      • Ansible Inventory Example
    • Python Network Automation
      • Nornir
      • Python Network Automation Course
      • Python for Network Engineers
      • Python VENV / Virtual Environment Tutorial
      • Python Tutorial for Beginners
      • pyATS
    • Network Source of Truth
      • NetBox
      • Infrahub
    • NetDevops
    • DevOps Tutorial
      • Git Training
      • Terraform Training
      • Linux Training
      • Kubernetes Training
      • Devops Training Course
      • Azure Devops Training
    • Terraform
    • GIT
      • Git Commands
      • What is GitHub?
    • Docker Training
    • Confluence
    • Microsoft Azure
  • Cisco
    • ISE
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • CCIE
  • Blog
  • About
    • My Red Special Guitar
  • Contact

Cisco 2960x Password Recovery Procedure

Home » Cisco » password recovery

Cisco 2960X Password Recovery – Step 1

This short post details how to perform password recovery on a Cisco 2960X switch. Follow these simple steps to reset password.

The biggest problem most people have with doing a password recovery on a 2960 or 3560 is knowing how long to hold the mode button down for.

The process is very simple:

STEP 1: Hold Down the Mode Button on the front of the switch

STEP 2: Power up the Switch whilst keeping the mode button held in

STEP 3: Let the mode button go at the right time and then enter a few commands.

Ensure the switch is powered off and locate the Mode button as shown below.

cisco 2960x password recovery procedure

Whilst holding down the Mode button power up the switch ensuring the mode button stays depressed.

You need to wait between 30-40 seconds or if watching the console until the text USB Console INIT appears, let go of the mode button when you see this and it will then drop you into the switch: prompt

cisco 2960x password recovery output

Cisco 2960x Password Recovery – Step 2

Once you are at the switch: prompt enter the command

flash_init

Then at the next prompt enter

dir flash:

You should then see all the files in flash – you now need to rename the config.text file to config old

rename flash:config.text flash:config.old

!— The config.text file contains the password !— definition.

After this reload the switch with the following command

boot

cisco 2960x password recovery boot options output

When the switch reloads it will ignore the startup config and ask you if you want to configure this switch

Just say NO

Then rename the config.old file back to config.text

rename flash:config.old flash:config.text

Copy the configuration file into memory.

copy flash:config.text system:running-config

The configuration file is now reloaded, overwrite any passwords that you did not know

write the config and you are back into your switch.

I am now focused automation, please check out my posts on Network Automation using Ansible & Python

Frequently asked questions

How do I reset my Cisco 2960 to factory settings and how do I reset the password on my Catalyst 2960?

Both procedures listed above will allow you to reset your 2960 to factory settings and also reset the password. The only difference is that during a password reset you want to retain your config and during a factory reset you are not concerned with retaining the configuration.

Table of Contents

  • Cisco 2960X Password Recovery – Step 1
  • Cisco 2960x Password Recovery – Step 2
Category: password recoveryTag: cisco, password recovery
ansible course for network engineers
Get Access to my Ansible Course NOW
Previous Post:Cisco WLC 2504 High Availability Configuration
Next Post:My CCIE Journeyccie plaque 2015 roger perkin ccie 50038

Reader Interactions

Comments

  1. Joseph Jeske

    December 7, 2018 at 3:00 am

    THis procedure worked perfectly, and saved me from reloading configs on 8 switches. thanks!

    • Roger Perkin

      December 7, 2018 at 2:10 pm

      Glad it worked for you Joseph!

  2. XT

    October 31, 2019 at 10:32 am

    will it wipe off all the configuration in the switch? or it will just reset the login password?

    • Roger Perkin

      November 20, 2019 at 9:56 am

      If you follow the steps correctly it will not wipe the configuration off the switch, only change the password. However if you are concerned when you bypass the password, take a copy of the config before you reload the switch.

Sidebar

Hi I'm Roger Perkin,
Based in the UK working as a Network Automation Architect, CCIE #50038
About Roger | Twitter | Linkedin

python course for network engineers

Topics

Network Automation
Ansible
Python for Network Automation
CCIE
Cisco ISE
F5 Certification
BGP
OSPF
Network Automation Conferences
auvik promo banner
Pluralsight Trial

Git for Network Engineers

Ansible vs Nornir

Start learning today with my Network Automation Courses

Master Ansible, Python, Git, Nornir, Jenkins and more..


Buy me a coffeeBuy me a coffee

ansible network automation course

Have you seen my YouTube Channel?

YouTube Subscribe

Let’s get started

Take a look at my premium courses on Ansible, Nornir & Git or buy them all with the Network Automation Bundle!

Network Automation Courses

Navigation

Python VENV Tutorial
Python for Network Engineers

Network Automation
Network Automation Courses
Network Discovery Tools
Network Automation Conferences
Ansible Training
What is Ansible?
Devops Tutorial
Network Source of Truth
DevOps Glossary
Network Monitoring Software

Contact

Contact

Get in touch with me here

[email protected]

  • Twitter
  • LinkedIn
  • YouTube
Buy me a coffeeBuy me a coffee

Copyright © 2025 · Roger Perkin · All Rights Reserved · Privacy Policy – Terms