H3C设备Console登录密码忘记处理方法
1、通过BootWare菜单恢复Console口登录认证密码
2,重启设备按Ctrl+B进入BootWare主菜单,选择<6>,即以忽略系统当前配置的方式启动,此时设备不会删除上次启动时加载的配置文件。
查看密码恢复功能的使能情况 Password recovery capability is enabled
Password recovery capability is enabled. Note: The current operating device is flash Enter < Storage Device Operation > to select device. ===========================<EXTENDED-BOOTWARE MENU>========================= |<1> Boot System | |<2> Enter Serial SubMenu | |<3> Enter Ethernet SubMenu | |<4> File Control | |<5> Restore to Factory Default Configuration | |<6> Skip Current System Configuration | |<7> BootWare Operation Menu | |<8> Skip Authentication for Console Login | |<9> Storage Device Operation | |<0> Reboot | ============================================================================ Ctrl+Z: Access EXTENDED ASSISTANT MENU Ctrl+F: Format File System Ctrl+C: Display Copyright Enter your choice(0-9): 6
(1) 系统出现如下提示表明已经设置成功。
Flag Set Success.
(2) 当再次出现BootWare主菜单时,选择<1>,设备开始启动。
(3) 重启设备后,设备的配置为空,用户可以在系统视图下配置回滚恢复原有配置,如下配置表示将当前配置回滚到配置文件startup.cfg中的配置状态。如果用户不想恢复原有配置,请跳过此步骤。
<Sysname> system-view [Sysname] configuration replace file flash:/startup.cfg Current configuration will be lost, save current configuration? [Y/N]:n Now replacing the current configuration. Please wait ... Succeeded in replacing current configuration with the file flash:/startup.cfg.
(4) 在系统视图下设置新的Console口的登录认证模式和密码,例如:设置Console口验证方式为密码验证,且以明文方式设置Console口的密码为123456。
<Sysname> system-view [Sysname] line console 0 [Sysname-line-console0] authentication-mode password [Sysname-line-console0] set authentication password simple 123456
(5) 保存新配置。
[Sysname-line-console0] save