Step 1 | Initialize the flash file system. Switch: flash_init |
Step 2 | Ignore the startup configuration with the following command: Switch: SWITCH_IGNORE_STARTUP_CFG=1 |
Step 3 | Boot the switch with the packages.conf file from flash. Switch: boot flash:packages.conf |
Step 4 | Terminate the initial configuration dialog by answering No. Would you like to enter the initial configuration dialog? [yes/no]: No |
Step 5 | At the switch prompt, enter privileged EXEC mode. Switch> enable Switch# |
Step 6 | Copy the startup configuration to running configuration. Switch# copy startup-config running-config Destination filename [running-config]? Press Return in response to the confirmation prompts. The configuration file is now reloaded, and you can change the password. |
Step 7 | Enter global configuration mode and change the enable password. Switch# configure terminal Switch(config)# |
Step 8 | Write the running configuration to the startup configuration file. Switch# copy running-config startup-config |
Step 9 | Confirm that manual boot mode is enabled. Switch# show boot BOOT variable = flash:packages.conf; Manual Boot = yes Enable Break = yes |
Step 10 | Reload the switch. Switch# reload |
Step 11 | Return the Bootloader parameters (previously changed in Steps 2 and 3) to their original values. Switch: switch: SWITCH_IGNORE_STARTUP_CFG=0 |
Step 12 | Boot the switch with the packages.conf file from flash. Switch: boot flash:packages.conf |
Step 13 | After the switch boots up, disable manual boot on the switch. Switch(config)# no boot manual |
blakegao 发表于 2015-1-8 17:42
多谢楼主的分享,的确对于绕过密码登录设备,交换机和路由器的方式是不同的,另一种方式,就是当进入switch ...