• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Network Automation Engineer: Roger Perkin CCIE 50038

CCIE, Wireless, F5, Ansible, AWS, Cloud and data centre to Network Automation - my journey as a network engineer

  • Courses
  • Consulting
  • Contact
  • NETWORK AUTOMATION >Ansible, Python, DevOps etc
    • Ansible for Network Automation
    • Python for Network Automation
  • My CCIE Journey >How I passed the Lab
    • CCIE Blog
    • CCIE Study Plan
  • F5 CertificationF5 Cerfification Cost and Tutorials
    • Cloud
    • VMWare
    • GNS3
    • JUNIPER
  • CiscoPassword Recovery, Software Upgrades
    • Software-Upgrade-Guides
    • Password Recovery
    • WIRELESS
    • Security
      • ISE
    • Cisco Commerce
    • BGP
    • OSPF
    • 4500x
    • NEXUS
    • Windows 10
    • Wireless Console Cable
  • Devnet CertificaitonsDevnet Associate, Specialist & Professional
  • BLOG
    • Contact
    • About Roger
Home >> Cisco >> password recovery >> Cisco 2960x Password Recovery Procedure

Cisco 2960x Password Recovery Procedure

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.

 Cisco 2960X Password Recovery – Step 1

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

Want to learn more about Network Automation?

Network Automation skills are becoming a must for network engineers of the future. Get started and learn the skills you need for the future with my course on Ansible for Network Engineers Today!

Show me more about the network automation course
hp instant ink

Roger Perkin - CCIE #50038 is a Network Automation Engineer & CCIE Consultant based in the UK, currently working for Softcat Plc as a Senior Network & Security Consultant.
Rogers' CCIE Journey | About Roger | Contact | Twitter | Linkedin

Previous Post: « Cisco WLC 2504 High Availability Configuration
Next Post: My CCIE Journey »

Reader Interactions

Comments

  1. Joseph Jeske says

    December 7, 2018 at 3:00 am

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

    Reply
    • Roger Perkin says

      December 7, 2018 at 2:10 pm

      Glad it worked for you Joseph!

      Reply
  2. XT says

    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?

    Reply
    • Roger Perkin says

      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.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

About Roger

roger perkin

Roger Perkin, CCIE #50038 is a Senior Network & Security Consultant working for a Cisco Gold Partner in the UK.
He is also an evangelist for Network Automation.

Let’s connect

  • GitHub
  • LinkedIn
  • Twitter
  • YouTube
ccie blueprint popup
Ansible Tutorials for Network Engineers
 

Most Popular Pages

  • Ansible for Network Automation
  • MPLS Configuration Tutorial
  • Cisco 3850 IOS Upgrade
  • Build CCIE Lab with CSR1000V
  • What is Cisco ISE?
  • Route Distinguisher vs Route-Target
  • Folding Laptop Stand Review
  • 19 Best Study Tips
  • Best Vertical Mouse
  • Is CCIE still worth it in 2019?
  • OSPF LSA Types
  • How to clean your computer screen and keyboard
network eyes banner
the ccie blueprint network automation course

Looking for Ansible Network Automation Training?


Learn how to install Ansible, write your first playbook and start automating your network today.


Check out my Ansible Network Automation Training
  • How to Become a Network Engineer
  • Ansible for Network Engineers
  • Check CCIE Status
  • MPLS Configuration Step by Step

The Author

roger perkin ccie network automation engineer
Roger Perkin, (CCIE #50038) is a Senior Network & Security Consultant.
Currently working for Softcat plc.
Roger is an evangelist for Network Automation
and is continuing to develop skills in Ansible and the Devops culture.
Contact

Most Visited Pages

Software Upgrade Guides
Wireless Console Cable
Network Automation Tools 
Bose Connect Windows 10
Private VLANs explained
Cisco ISE Overview

Ansible

Where are Ansible Modules stored
Ansible IOS Command Example
Ansile Backup Cisco Config
How to Install Ansible Tower
Ansible Network Automation Training
Resources

Python

Best way to learn Python

Home Office

Best Vertical Mouse
My Standing Desk
Folding Laptop Stand - Roost
How to clean computer screen and keyboard

Personal Development

How to Focus
Disclaimer | Privacy Policy | Copyright rogerperkin.co.uk 2018 | Sitemap