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 |
||
Line 1: | Line 1: | ||
<yambe:breadcrumb self="Reset enable password on Cisco switch">Switch configuration notes|Switch configuration notes</yambe:breadcrumb> | |||
=Reset enable password on Cisco switch= | =Reset enable password on Cisco switch= | ||
Line 13: | Line 14: | ||
#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. | ||
<yambe:breadcrumb self="Reset enable password on Cisco switch">Switch configuration notes|Switch configuration notes</yambe:breadcrumb> |
Revision as of 05:11, 18 September 2018
<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>