在终端界面上输入字符,如果设备可以响应串口输入字符,但是忘记密码无法登录。这种情况下可以通过其他登录方式配置Console口登录或者通过BootROM菜单清除Console口登录密码,尝试重新登录。
这种方法的前提是:用户拥有STelnet/Telnet账号并且具有管理员的权限。以下涉及的命令行及回显信息以STelnet登录设备修改Console口密码为例。用户通过STelnet账号登录设备后,请按照如下步骤进行配置。
以登录用户界面的认证方式为Password认证,密码为Huawei@123为例,配置如下。
<Huawei> system-view [Huawei] user-interface console 0 [Huawei-ui-console0] authentication-mode password [Huawei-ui-console0] set authentication password cipher Warning: The "password" authentication mode is not secure, and it is strongly re commended to use "aaa" authentication mode. Enter Password(<8-128>): Confirm password: [Huawei-ui-console0] return <Huawei> save
以登录用户界面的认证方式为AAA认证,用户名为admin123,密码为Huawei@123为例,配置如下。
<Huawei> system-view [Huawei] user-interface console 0 [Huawei-ui-console0] authentication-mode aaa [Huawei-ui-console0] quit [Huawei] aaa [Huawei-aaa] local-user admin123 password irreversible-cipher Huawei@123 [Huawei-aaa] local-user admin123 privilege level 15 [Huawei-aaa] local-user admin123 service-type terminal [Huawei-aaa] return <Huawei> save
设备的BootROM提供了清除Console口登录密码的功能,用户可以在设备启动后修改Console口登录密码,然后保存配置。请按照如下步骤进行配置。
通过Console口连接设备,并重启设备。当界面出现以下打印信息时,及时按下快捷键“Ctrl+B”并输入BootROM密码,进入BootROM主菜单。
Press Ctrl+B to break auto startup ... 1 Enter Password: //输入BootROM密码
在BootROM主菜单下依次选择
,清除Console口登录密码。依次选择
,重新启动设备。