华为交换和路由设备在BootROM下清除Console口密码

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了华为交换和路由设备在BootROM下清除Console口密码相关的知识,希望对你有一定的参考价值。

设备的BootROM提供了清除Console口密码的功能。

1. 进入BootROM主菜单

用串口线连接设备,然后重启。当出现“Press Ctrl+B to enter BootROM menu...”(V200R002及V200R003版本)或者“Press Ctrl+B or Ctrl+E to enter BootROM menu ...”(V200R005及以后发布的版本)打印信息时,按下“Ctrl+B”或者“Ctrl+E”并键入密码(缺省为“[email protected]”,V100R006C03之前版本可能为“huawei”),进入BootROM主菜单。

2. 清除密码

BootROM  MENU
?   
1. Boot with default mode
2. Enter serial submenu
3. Enter startup submenu
4. Enter ethernet submenu
5. Enter filesystem submenu
6. Modify BootROM password   //V200R006及之前版本:Modify BootROM password V200R007及之后版本:Enter password submenu
7. Clear password for console user
8. Reboot
?
(Press Ctrl+E to enter diag menu) 
?   
Enter your choice(1-8): 7
?
Note: Clear password for console user? Yes or No(Y/N): y
? 
Clear password for console user successfully. Choose "1" to boot, then set a new password.
Note: Do not choose "8. Reboot" or power off the device, otherwise this operation will not take effect.

根据设备的提示,在BootROM主菜单下选择“1”启动设备。

3. 设置登录密码(可选)

完成系统启动后,通过Console口登录时不需要认证,登录后配置Console口密码,修改密码为“[email protected]”为例。

<HUAWEI> system-view
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] authentication-mode password
[HUAWEI-ui-console0] set authentication password cipher [email protected]
[HUAWEI-ui-console0] return

为了防止重启后配置丢失,保存配置。

<HUAWEI> save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.

4. 取消登录密码(可选)

完成系统启动后,有的设备会默认要求设置登录密码,在有些地方没有设置密码的需要,忘记密码反而带来了很多不方便。

<HUAWEI> system-view
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] authentication-mode none
[HUAWEI-ui-console0] quit

设置完成后必要忘了保存配置。
注意:

  1. 要进入到BootROM菜单需要重启设备,会导致业务中断,请视具体情况做好设备备份,并尽量选择业务量较少的时间操作。
  2. 在此操作过程中不要对设备进行下电。

以上是关于华为交换和路由设备在BootROM下清除Console口密码的主要内容,如果未能解决你的问题,请参考以下文章

网络交换机设备简单配置

华为交换机Console密码忘记设备恢复初始化默认BootROM密码

华为核心交换机 s9306 怎样清除bootrom密码 ?以前貌似设置过,但是忘记了。有没有办法查询呢?

网络交换机设备简单配置

华为交换机如何清除console口密码

华为交换机修改BootROM密码