Log in to the system directly via the Confreg 0x2142 command in ROM mode, bypassing the Enable password set in the Startup-config configuration file in NVRAM.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/91/wKioL1UM7JbjwQnZAALf2uP63d4085.jpg "title=" Capture 1. PNG "alt=" Wkiol1um7jbjwqnzaalf2up63d4085.jpg "/>
2. After entering the system, copy the initial configuration file in the NVRAM to the current profile via the copy startup-config running-config command and set the new password.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/97/wKiom1UM7EDQ-Z3aAAKo9f27PWM433.jpg "title=" Capture 2. PNG "alt=" Wkiom1um7edq-z3aaako9f27pwm433.jpg "/>
3. After the password is set successfully, save the current profile and enter ROM mode from the new boot system, and use the confreg-0x2102 command to load the system from the new NVRAM configuration file.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/97/wKiom1UM7TazEtWiAAKHy3pTx_o414.jpg "title=" Capture 3. PNG "alt=" Wkiom1um7tazetwiaakhy3ptx_o414.jpg "/>
4. Restart the system password modification successfully.
This article is from the "lij123" blog, make sure to keep this source http://9984466.blog.51cto.com/9974466/1622743
Modifying privileged passwords on routers