H3C MSR 20-21如何在保留原數據配置的情況下,初始化設備密碼或者console口密碼。
(0)
最佳答案
重啟bootware恢複,參考
配置密碼恢複功能後,當用戶忘記Console口認證密碼或者登錄認證失敗,導致無法使用命令行操作設備時,可通過BootWare菜單以忽略係統當前配置的方式啟動,再繼續使用設備。關閉密碼恢複功能後,設備將處於一個安全性更高的狀態,即當出現上述情況時,若想繼續使用Console口對設備進行命令行操作,隻能通過BootWare菜單選擇將設備恢複為出廠配置之後方可繼續操作,這樣可以有效地防止非法用戶獲取啟動配置文件。缺省情況下,設備的密碼恢複功能處於使能狀態。
以忽略係統當前配置的方式啟動
如果使能了密碼恢複功能,當用戶忘記了Console口密碼時,可以重啟設備根據係統提示按Ctrl+B進入BootWare主菜單選擇<6>,即以忽略係統配置的方式啟動,此時設備不會刪除原有的配置文件。
Press Ctrl+B to enter extended boot menu...
BootWare password: Not required. Please press Enter to continue.
Password recovery capability is enabled. //如果看到此提示,則表示設備開啟了密碼恢複功能。
Note: The current operating device is flash
Enter < Storage Device Operation > to select device.
===========================<EXTEND-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> Clear Super Password
<9> Storage Device Operation
<0> Reboot
==============================================================================
Ctrl+Z: Access EXTEND-ASSISTANT MENU
Ctrl+F: Format File System
Enter your choice(0-9): 6
係統出現如下提示表明已經設置成功。
Flag Set Success.
當再次出現BootWare主菜單時,選擇<0>,設備開始重新啟動。重啟設備後,設備的配置為空,可以在係統視圖下配置回滾恢複原有配置,如下配置表示將當前配置回滾到配置文件startup.cfg中的配置狀態。如果不想恢複原有配置,請跳過此步驟。
<H3C> system-view
[H3C]configuration replace file startup.cfg
Current configuration will be lost, save current configuration? [Y/N]:n
Info: Now replacing the current configuration. Please wait...
Info: Succeeded in replacing current configuration with the file startup.cfg.
在係統視圖下設置新的Console口密碼,如下配置表示設置Console口驗證方式為密碼驗證,且以密文方式設置Console口的密碼為123456。
<H3C>system-view
[H3C]user-interface aux 0 //如果沒有aux選項,請選擇console
[H3C-ui-aux0]authentication-mode password
[H3C-ui-aux0]set authentication password cipher 123456
[H3C]save //保存配置
如果關閉了密碼恢複功能,當用戶忘記了配置的Console口密碼時,可以重啟設備進入BootWare主菜單選擇<5>,即恢複設備的出廠配置,此時設備會自動刪除啟動時使用的配置文件。
Press Ctrl+B to enter extended boot menu...
BootWare password: Not required. Please press Enter to continue.
Password recovery capability is disabled. //如果看到此提示,則表示設備關閉了密碼恢複功能。
Note: The current operating device is flash
Enter < Storage Device Operation > to select device.
===========================<EXTEND-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> Clear Super Password
<9> Storage Device Operation
<0> Reboot
===============================================================================
Ctrl+Z: Access EXTEND-ASSISTANT MENU
Ctrl+F: Format File System
Enter your choice(0-9): 5
係統出現如下提示信息,表明已經設置成功。
Because the password recovery capability is disabled, this operation can
cause the configuration files to be deleted, and the system will start up
with factory defaults. Are you sure to continue?[Y/N]Y
Setting...Done.
當再次出現BootWare主菜單時,選擇<0>,設備開始重新啟動。
重啟設備後設備恢複出廠配置。
(0)
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
暫無評論