Cara reset password cisco switch

My practice using Cisco switch 2960, connect your console cable to the switch and open up your terminal emulator software, you can use hyperterminal on windows, putty or minicom if you are using Linux.

1. Enter to rommon

Power on the switch while holding the mode button. Release the mode button after you see the screen below in your terminal.
Base ethernet MAC Address: 00:1d:71:6b:1e:80
Xmodem file system is available.       
The password-recovery mechanism is enabled.
                                       
The system has been interrupted prior to initializing the
flash filesystem.  The following commands will initialize
the flash filesystem, and finish loading the operating
system software:
                                                                               
    flash_init                                                                 
    load_helper                                                                
    boot                                                                       
                                                                               
                                                                               
switch: 
  
2. Initialize the flash file system

switch:flash_init

3. Find the config file in flash directory

switch:dir flash:


4. Rename or delete config.text

The files that we are looking for in the flash directory is the config.text, the password and configuration saved in config.text, therefore we need to rename or delete file config.text, if you still need config file, then it's better to rename

switch:rename flash:config.text flash:config.text.old
or
switch:delete flash:config.text

Rename or delete  the config file so that it will not be loaded when we boot to the switch

5. Reload

switch:boot

After booting, the switch will ask you to enter the "initial configuration dialog" to initially configure the switch. Type the word "no" because we are not re-configuring the switch.

6. Back to rename

the configuration file to it's original filename

#rename flash:config.text.old flash:config.text

7. Copy and save the configuration file into the memory

#copy flash:config.text system:running-config

Now that the config is loaded in to the memory, we can start changing the password.

#conf t
(config)#enable secret newpassword

After changing the password, save the config and done.
#write memory

 


Komentar

Postingan populer dari blog ini

Cara memahami dan menghafal model OSI dengan analogi

Pembahasan IT Network Systems Administration Module A DNS (Forward Zone, Reverse Zone, CNAME, MX, Split View)

Table of Contents