Reset enable password on Cisco switch
From Notes_Wiki
<yambe:breadcrumb self="Reset enable password on Cisco switch">Switch configuration notes|Switch configuration notes</yambe:breadcrumb>
Reset enable password on Cisco switch
If we do not know enable / console / telnet etc. password of switch and have physical access to switch then, we can reset the passwords by using following procedure:
- Keep mode button pressed when switching on power to switch
- See the messages that come and look for message that says password recovery mechanism is enabled. If it is not enabled then this procedure will not work.
- Type `flash_init'
- Type `load_helper'
- Type `rename flash:/config.txt flash:/config.backup'
- Type `boot'.
- After booting use command `rename flash:/config.backup flash:/config.txt'
- Then use `copy flash:/config.txt running-config' to use the old startup configuration
- Then go to `config t' and use `enable secret <new_password>' command to give new password.
- For console and telnet password then you can use `line con 0' or `line vty 0 15' commands to go to line configuration mode. In line configuration mode command `password <new_password>' can be used to set new line password.
<yambe:breadcrumb self="Reset enable password on Cisco switch">Switch configuration notes|Switch configuration notes</yambe:breadcrumb>