Recovering password in Cisco Routers Last Updated : 09 Aug, 2019 Comments Improve Suggest changes Like Article Like Report Sometimes, it so happens that the admin doesn't remember password of a device and locked out of the device. The same thing can happen with the Cisco routers. In any case, if admin forget enable password or secret password then, basically he/she will not be able to enter the Cisco router's privilege mode from user mode. Let's learn about how to handle these scenarios and recover a password in a Cisco router. Recovering passwords : There are different configuration values which tell the router to load the IOS from which place i.e NVRAM, flash, ROM. The default configuration register value is 0x2102 , meaning that the 6th bit is off. The router will use the default settings and load the configuration stored in NVRAM (configuration stored in NVRAM is known as startup-configuration). By turning on 6th bit i.e changing the configuration Register value to 0x2142, it will ignore the content of NVRAM. Basic steps for recovering the passwords : Boot the router and interrupt the boot sequence by pressing Ctrl + Break key combination. By pressing this combination, the ROM monitor mode will be seen as shown in the figure. Because we don't want the old startup-configuration to load as the enable or secret password is not available. Note : The Ctrl+break key combination will work only if connected to router via COM1. Now, Change the configuration register value to 0x2142. As already learned that by turning on 6th bit, we can ignore the startup-configuration contents. Therefore, changing the value to 0x2142, startup-configuration is bypass and will enter into setup mode. Simply reload the router by typing reset in ROMMON mode. After reloading the router, the router will ask to use setup mode. Answering No to it, we will enter the user mode and by typing enable in user mode, we will enter privilege mode. Now, copy the running-configuration(RAM) to startup-configuration (NVRAM). This means now the configuration is running in RAM. Now, enter global configuration mode by typing config terminal in the privilege mode and the global configuration mode where we can change the password as per our need. After entering the global configuration mode, change the enable secret password to GeeksforGeeks as shown in the figure. Reset the configuration register to the default value i.e 0x2102. This is important as next time when we will load the router, the configuration will be loaded from NVRAM. 0x2102 (means IOS) will be loaded from flash and use speed of 9600 baud(default configuration register value). Save the configuration to NVRAM. The changed password is currently stored in running configuration (RAM), therefore, move the configuration to startup-configuration(NVRAM). By typing the command, copy running-config startup-config, move the contents to NVRAM. Admin can verify secret password by typing show running-config in user execution mode as shown. Remember that the secret password will be in encrypted form (as shown in the figure). Comment More info S saurabhsharma56 Follow Improve Article Tags : Misc Computer Networks Explore Computer Network BasicsBasics of Computer Networking4 min readTypes of Computer Networks6 min readIntroduction to Internet10 min readNetwork Devices9 min readWhat is OSI Model? - Layers of OSI Model11 min readTCP/IP Model6 min readDifference Between OSI Model and TCP/IP Model2 min readPhysical LayerPhysical Layer in OSI Model3 min readTypes of Network Topology9 min readTransmission Modes in Computer Networks (Simplex, Half-Duplex and Full-Duplex)6 min readTransmission Media in Computer Networks7 min readData Link LayerData Link Layer in OSI Model4 min readWhat is Switching?5 min readVirtual LAN (VLAN)7 min readFraming in Data Link Layer6 min readError Control in Data Link Layer4 min readFlow Control in Data Link Layer4 min readPiggybacking in Computer Networks5 min readNetwork LayerNetwork Layer in OSI Model5 min readIntroduction of Classful IP Addressing10 min readClassless Addressing in IP Addressing7 min readWhat is an IP Address?14 min readIPv4 Datagram Header4 min readDifference Between IPv4 and IPv67 min readDifference between Private and Public IP addresses6 min readIntroduction To Subnetting8 min readWhat is Routing?10 min readNetwork Layer Protocols9 min readTransport LayerTransport Layer in OSI Model5 min readTransport Layer Protocols9 min readWhat is TCP (Transmission Control Protocol)?5 min readUser Datagram Protocol (UDP)10 min readSession Layer & Presentation LayerSession Layer in OSI model6 min readPresentation Layer in OSI model4 min readSecure Socket Layer (SSL)10 min readPPTP Full Form - Point-to-Point Tunneling Protocol5 min readMultipurpose Internet Mail Extension (MIME) Protocol4 min readApplication LayerApplication Layer in OSI Model5 min readClient-Server Model3 min readWorld Wide Web (WWW)6 min readIntroduction to Electronic Mail4 min readWhat is a Content Distribution Network and how does it work?4 min readProtocols in Application Layer7 min readAdvanced TopicsWhat is Network Security?7 min readComputer Network | Quality of Service and Multimedia7 min readAuthentication in Computer Network4 min readEncryption, Its Algorithms And Its Future10 min readIntroduction of Firewall in Computer Network7 min readMAC Filtering in Computer Network10 min readWi-Fi Standards Explained4 min readWhat is Bluetooth?6 min readGenerations of wireless communication2 min readCloud Networking11 min readPracticeTop 50 Plus Networking Interview Questions and Answers for 202415+ min readTop 50 TCP/IP Interview Questions and Answers 202515+ min readNetwork Fundamentals Interview Questions - Computer Networks15+ min readLast Minute Notes for Computer Networks14 min readComputer Network - Cheat Sheet15+ min read Like