Changes between Version 1 and Version 2 of Realisations/2006-2007/Projet/PasswordRecovery
- Timestamp:
- Mar 22, 2007, 12:40:10 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Realisations/2006-2007/Projet/PasswordRecovery
v1 v2 11 11 Ensuite: 12 12 13 Step 1 Initialize the Flash file system:14 15 switch: flash_init16 17 Step 2 If you had set the console port speed to anything other than 9600, it has been reset to that particular speed. Change the emulation software line speed to match that of the switch console port.18 19 Step 3 Load any helper files:20 switch: load_helper21 22 Step 4 Display the contents of Flash memory:23 switch: dir flash:24 25 The switch file system appears: 13 * Step 1 Initialize the Flash file system: 14 15 switch: '''flash_init''' 16 17 * Step 2 If you had set the console port speed to anything other than 9600, it has been reset to that particular speed. Change the emulation software line speed to match that of the switch console port. 18 19 * Step 3 Load any helper files: 20 switch: '''load_helper''' 21 22 * Step 4 Display the contents of Flash memory: 23 switch: '''dir flash:''' 24 25 The switch file system appears:{{{ 26 26 Directory of flash:[[BR]] 27 27 … … 33 33 34 34 35 16128000 bytes total (10003456 bytes free) 36 37 Step 5 Rename the configuration file to config.text.old.35 16128000 bytes total (10003456 bytes free) }}} 36 37 * Step 5 Rename the configuration file to config.text.old. 38 38 39 39 This file contains the password definition. 40 switch: rename flash:config.text flash:config.text.old41 42 Step 6 Boot the system:43 switch: boot40 switch: '''rename flash:config.text flash:config.text.old''' 41 42 * Step 6 Boot the system: 43 switch: '''boot''' 44 44 45 45 You are prompted to start the setup program. Enter N at the prompt: 46 46 Continue with the configuration dialog? [yes/no]: N 47 47 48 Step 7 At the switch prompt, enter privileged EXEC mode:49 Switch> enable50 51 Step 8 Rename the configuration file to its original name:52 Switch# rename flash:config.text.old flash:config.text53 54 Step 9 Copy the configuration file into memory:55 Switch# copy flash:config.text system:running-config56 Source filename [config.text]?57 Destination filename [running-config]? 48 * Step 7 At the switch prompt, enter privileged EXEC mode: 49 Switch> '''enable''' 50 51 * Step 8 Rename the configuration file to its original name: 52 Switch# '''rename flash:config.text.old flash:config.text ''' 53 54 * Step 9 Copy the configuration file into memory: 55 Switch# '''copy flash:config.text system:running-config''' 56 {{{Source filename [config.text]? 57 Destination filename [running-config]?}}} 58 58 59 59 Press Return in response to the confirmation prompts. … … 61 61 The configuration file is now reloaded, and you can change the password. 62 62 63 Step 10 Enter global configuration mode:64 Switch# configure terminal65 66 Step 11 Change the password:67 Switch (config)# enable secret password63 * Step 10 Enter global configuration mode: 64 Switch# '''configure terminal''' 65 66 * Step 11 Change the password: 67 Switch (config)# '''enable secret password''' 68 68 69 69 The secret password can be from 1 to 25 alphanumeric characters, can start with a number, is case sensitive, and allows spaces but ignores leading spaces. 70 70 71 Step 12 Return to privileged EXEC mode:72 Switch (config)# exit[[BR]]71 * Step 12 Return to privileged EXEC mode: 72 Switch (config)# '''exit'''[[BR]] 73 73 74 74 Switch# 75 75 76 Step 13 Write the running configuration to the startup configuration file:77 Switch# copy running-config startup-config76 * Step 13 Write the running configuration to the startup configuration file: 77 Switch# '''copy running-config startup-config''' 78 78 79 79 The new password is now in the startup configuration.