Difference between revisions of "Reset enable password on Cisco switch"
From Notes_Wiki
(Created page with "=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 password...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[Switch configuration notes]] > [[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: | 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: | ||
Line 13: | Line 13: | ||
#Then go to `config t' and use `enable secret <new_password>' command to give new password. | #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. | #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. | ||
[[Main Page|Home]] > [[Switch configuration notes]] > [[Reset enable password on Cisco switch]] |
Latest revision as of 01:46, 28 March 2022
Home > Switch configuration notes > 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.
Home > Switch configuration notes > Reset enable password on Cisco switch