CISCO ASA5510 清除密码
- Connect to the security appliance console port according to the “Accessing the Command-Line连接console口
- Power off the security appliance, and then power it on 重启设备
- During the startup messages, press the Escape key when prompted to enter ROMMON.
按照ESC键,进入ROMMON模式(相当于PC的BIOS模式) - To set the security appliance to ignore the startup configuration at reload, enter the following command:
rommon #1> confreg运行confreg命令,类似更改注册表
The security appliance displays the current configuration register value, and asks if you want to changethe value:
Current Configuration Register: 0x00000011 要记住这个register的值
Configuration Summary:
boot TFTP image, boot default image from Flash on netboot failure
Do you wish to change this configuration? y/n [n]: 提示是否更改配置,选择Y - Record your current configuration register value, so you can restore it later
- At the prompt, enter Y to change the value.
The security appliance prompts you for new values. - Accept the default values for all settings, except for the “disable system configuration?” value; at thatprompt, enter Y. 这一项输入Y,其他用默认值
- Reload the security appliance by entering the following command:
rommon #2> boot继续用默认配置启动系统
The security appliance loads a default configuration instead of the startup configuration. - Enter privileged EXEC mode by entering the following command:
hostname> enable - When prompted for the password, press Return.
The password is blank.默认enable密码为空 - Load the startup configuration by entering the following command:
hostname# copy startup-config running-config导入原先的配置 - Enter global configuration mode by entering the following command:
hostname# configure terminal - Change the passwords in the configuration by entering the following commands, as necessary:
hostname(config)# password password
hostname(config)# enable password password更改enable密码
hostname(config)# username name password password 创建新用户和密码 - Change the configuration register to load the startup configuration at the next reload by entering thefollowing command:
hostname(config)# config-register value 用默认的0x1就可以
Where value is the configuration register value you noted in Step 5. 0x1 is the default configuration For more information about the configuration register, see the Cisco Security Appliance Command Reference. - Save the new passwords to the startup configuration by entering the following command:
hostname(config)# copy running-config startup-config保存配置
THE END
0
二维码
打赏
海报
CISCO ASA5510 清除密码
Connect to the security appliance console port according to the “Accessing the Command-Line连接console口
Power off the security appliance, and then……
共有 0 条评论