Popular Science switch password recovery

Source: Internet
Author: User

Take notes recorded by yourself during school classes and share them with others.

Step 1: Configure and save the vswitch password (console, telnet, plaintext, and ciphertext)
Switch # conf t
Switch (config) # enable password cisco1 ----------- set the plaintext password
Switch (config) # enable secret cisco2 ---------------- set the ciphertext Password
Switch (config) # line console 0
Switch (config-line) # password ciso3 -------------- set the Console password
Switch (config-line) # login ------------------- verification of Logon requirements
Switch (config) # line vty 0 4
Switch (config-line) # password cisco4 ------------- set the telnet Remote logon password
Switch (config-line) # login ---------------- verification is required during telnet Remote logon.
Step 2: restart the switch and press the Mode key on the switch panel until the switch: Mode is displayed.
Step 3: Initialize flash
Switch: flash_init
Step 4: view the flash file and check that the configuration file config. text exists.
Switch: dir flash:
Step 5: modify the configuration file name
Switch: rename flash: config. text flash: config. old
Step 6: restart the vswitch (do not press the Mode key this time)
Switch: boot
Step 7: Go to privileged mode to view flash Content
Switch> en
Switch # show flash
Step 8: change the configuration file back to the default name
Switch # rename flash: config. old flash: config. text
Step 9: load the configuration file to RAM
Switch # copy flash: config. text running-config
Step 10: delete or modify the password
Switch # conf t
Switch (config) # no enable password ----------- Delete plaintext password
Switch (config) # no enable secret ---------------- Delete the ciphertext Password
Switch (config) # line console 0
Switch (config-line) # no password -------------- Delete Console password
Switch (config-line) # no login ------------------- verification not required for login
Switch (config) # line vty 0 4
Switch (config-line) # no password ------------- Delete the telnet Remote logon password
Switch (config-line) # no login ---------------- telnet remote login does not require verification
Step 2: Save the configuration file
Switch # copy running-config startup-config
Step 2: Verify





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.