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