Users logging in using the console port of the switch usually configure the console user account and password for authentication to prevent unauthorized access, so as to maintain operational security and protect data. So what should you do if this password is forgotten?
        Cisco switches have different solutions for forgetting the account password, such as modifying the startup configuration file, modifying the registers, restoring the factory settings and other operations; Moduletek Limited Laboratory this time to CISCO WS-C3560G-24TS switch as an example, to show you how to modify the configuration file with the help of the MODE key to complete the password reset for Cisco switches to forget the console user password! How to reset the password with the help of MODE key to modify the configuration file?
        1. Reboot the switch and press and hold the switch MODE key within 30 seconds of power-on;
CISCO switch MODE key
Figure 1 CISCO switch MODE key
        2. The system enters the BOOT mode and executes the command “flash_init” to initialize the FLASH;
Initialize FLASH
Figure 2 Initialize FLASH
        3. enter “load_helper”, execute the command “dir flash:”, view the configuration file;
        4. Execute the command “rename flash:config.text flash:config.old” to rename the configuration file containing the password;\
View the FLASH file and rename the configuration file
Figure 3 View the FLASH file and rename the configuration file
        5. Execute “boot” to start the switch and choose not to enter the initial configuration;
Booting the switch
Figure 4 Booting the switch
        6. After the startup is completed, automatically enter the user mode, and in the privileged mode, rename the configuration file and copy it to the current system;
Use the configuration file as the running configuration
Figure 5 Use the configuration file as the running configuration
        7. In global configuration mode, reset the user password and save it, thus completing the password reset operation.
Reset password
Figure 6 Reset password
        Moduletek Limited is at your service.
        HUAWEI switch password recovery can be referred to : Huawei Switch Password Recovery Guidelines.
        If you have any questions about the above content, you can contact us by Email : web@moduletek.com