一、交換機恢復出廠設置
1、能進命令行
第一種方法:刪除配置文件重啟設備
#查看設備當前已存在的配置文件
<H3C>dir
Directory of flash:
0 -rw- 6244 Jan 08 2013 07:26:03 startup.cfg
1 -rw- 136628 Jan 08 2013 07:26:03 startup.mdb
2 -rw- 58704 Jan 03 2013 07:56:22 diag_H3C_20130103-005605.tar.gz
#刪除配置文件
<H3C>delete /unreserved startup.cfg
The contents cannot be restored!!! Delete flash:/startup.cfg?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
.
%Delete file flash:/startup.cfg...Done.
#重啟設備
<H3C>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
This command will reboot the device. Current configuration will be lost, save current configuration? [Y/N]:n
This command will reboot the device. Continue? [Y/N]:y
當設備重新完成,那么設備就在出廠設置的狀態
第二種方法:清除保存的配置,重啟設備方式恢復
<H3C>reset save
The saved configuration file will be erased. Are you sure? [Y/N]:Y
#重啟設備
<H3C>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
This command will reboot the device. Current configuration will be lost, save current configuration? [Y/N]:n
This command will reboot the device. Continue? [Y/N]:y
2、console忘記密碼
整體思路:
開機時通過按某個快捷鍵跳過當前的配置文件,重啟之后只一個空的配置,然后將空的配置覆蓋到配置文件里面,保存重啟即可。
通過conlse線和crt軟件連接並登陸設備,然后把設備斷電重啟。控制台上會打印如下信息,當出現“press Ctrl+B”的時候快速按住“Ctrl+B” 進入botroom菜單
System is starting...
Press Ctrl+D to access BASIC-BOOTWARE MENU
Booting Normal Extend BootWare
The Extend BootWare is self-decompressing.......................Done!
BootWare Validating...
Press Ctrl+B to enter extended boot menu... #在這,ctrl+B
BotWare 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.
按住“Ctrl+B”進入如下菜單。選擇“<6> Skip Current System Configuration”跳過當前配置啟動,不同設備可能不是數字6,
===========================<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 #在這里面選擇6
Flag Set Success.
然后輸入0重啟設備
===========================<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): 0
System is starting...
Press ENTER to get started.
如果不需要之前的配置:
<H3C>save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):(輸入回車)
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Configuration is saved to device successfully.
<H3C>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
Current configuration may be lost after the reboot, save current configuration? [Y/N]:y
This command will reboot the device. Continue? [Y/N]:y