華爲路由器和交換機在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口密碼,修改密碼爲“huawei@123”爲例。

<HUAWEI> system-view
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] authentication-mode password
[HUAWEI-ui-console0] set authentication password cipher huawei@123
[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. 在此操作過程中不要對設備進行下電。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章