H3C交换机bootroom菜单清除Consle密码

时间:2024-03-29 20:57:08

H3C交换机bootroom菜单清除Consle密码

通过conlse线和xshell软件连接并登陆设备,然后把设备断电重启。控制台上会打印如下信息,当出现“press Ctrl+B”的时候快速按住“Ctrl+B” 进入botroom菜单:

Press Ctrl+B to access EXTENDED BOOT MENU…0

Password recovery capability is enabled.

------------------------EXTENDED BOOT MENU--------------------------------------

  1. Download image to flash
  2. Select image to boot
  3. Display all files in flash
  4. Delete file from flash
  5. Restore to factory default configuration
  6. Enter BootRom upgrade menu
  7. Skip current system configuration
  8. Set switch startup mode
  9. Set The Operating Device
  10. Reboot
    Ctrl+Z: Access EXTENDED ASSISTANT MENU
    Ctrl+F: Format file system
    Ctrl+P: Change authentication for console login
    Ctrl+R: Download image to SDRAM and run
    Ctrl+C: Display Copyright

Enter your choice(0-9): 7
选择“<7> Skip current system configuration”跳过当前配置启动,不同设备可能不是数字7。

Authentication is required for console login.
Are you sure you want to skip the authentication for console login? (Y/N):Y
Setting…Done.

--------------------------EXTENDED BOOT MENU -----------------------------

  1. Download image to flash
  2. Select image to boot
  3. Display all files in flash
  4. Delete file from flash
  5. Restore to factory default configuration
  6. Enter BootRom upgrade menu
  7. Skip current system configuration
  8. Set switch startup mode
  9. Set The Operating Device
  10. Reboot
    Ctrl+Z: Access EXTENDED ASSISTANT MENU
    Ctrl+F: Format file system
    Ctrl+P: Change authentication for console login
    Ctrl+R: Download image to SDRAM and run
    Ctrl+C: Display Copyright

Enter your choice(0-9):0      #选择0重启。
------------
System is starting…
Press ENTER to get started.

如果不需要之前的配置信息的话:

操作步骤:跳过启动文件后直接保存当前配置,再重启。
<H3C>save
The current configuration will be written to the device. Are you sure? [Y/N]:Y

需要之前的配置信息的话:
开启ftp服务将配置文件下载修改后上传,过程中千万不要save保存覆盖了需要的配置文件。
[H3C]interface Vlan-interface 1
[H3C-Vlan-interface1]ip address 192.168.1.252 24
[H3C-Vlan-interface1]quit

[H3C]ftp server enable
[H3C]local-user ftp
[H3C-luser-manage-ftp]service-type ftp
[H3C-luser-manage-ftp]password simple ftp
[H3C-luser-manage-ftp]authorization-attribute user-role network-admin
[H3C-luser-manage-ftp]authorization-attribute work-directory flash:

登录ftp之后下载配置文件:
H3C交换机bootroom菜单清除Consle密码
在c盘创建ftp文件夹,将下载至此目录下,修改配置文件后在上传至交换机覆盖:
H3C交换机bootroom菜单清除Consle密码