5700系列交换机目前暂无reset按键,清空配置的方法如下:
方法一:通过命令行恢复
1.系统视图下输入
[S5348TP-SI]undo startup saved-configuration
取消下次启动时已保存的配置启动
2.用户视图下输入
reset saved-configuration
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:Y
清除保存的配置,系统会提示是否删除,选择Y
3.用户视图下输入
reboot
Info: The system is now comparing the configuration, please wait.
Warning: All the configuration will be saved to the configuration file for the next startup:, Continue?[Y/N]:N
Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:Y
重启设备,此时系统会提示两次选择,第一次提示是否保存当前配置,选择N,第二次提示是否重启,选择Y。
重启完成后设备即恢复出厂设置。
方法二:通过BOOTROM恢复
1.重启设备,启动过程中ctrl+B进入BOOTROM菜单,BOOTROM密码Admin@huawei.com
Press Ctrl+B to enter BootROM menu ... 2
password:
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
7. Clear password for console user
8. Reboot
(Press Ctrl+E to enter diag menu)
2.选择第5项,进入文件系统菜单
Enter your choice(1-8): 5
FILESYSTEM SUBMENU
1. Erase Flash
2. Format flash
3. Delete file from Flash
4. Rename file from Flash
5. Display Flash files
6. Update EPLD file
7. Update FansCard File
8. Return to main menu
选择第3项,删除配置文件
Enter your choice(1-8): 3
No. File Size(bytes) Created Date File Name
=================================================================
1: 14481540 bytes Jun 27 2014 09:38:04 s5700ei-v200r005c00spc300.cc
2: 4 bytes Dec 20 2014 09:24:09 snmpnotilog.txt
3: 1156 bytes Dec 17 2014 18:32:00 private-data.txt
4: 836 bytes Dec 11 2014 14:48:31 rr.dat
5: 836 bytes Dec 11 2014 14:48:37 rr.bak
6: 1684343 bytes Jun 27 2014 11:45:54 s5700ei-full-v200r005c00.002.web.7z
7: 3330 bytes Dec 20 2014 09:23:58 vrpcfg.zip
8: 692 bytes Nov 03 2014 11:29:33 hostkey
9: 14083796 bytes Nov 03 2014 11:24:58 s5700ei-v200r003c00spc300.cc
10: 836 bytes Nov 03 2014 11:29:56 serverkey
11: 920 bytes Oct 30 2014 16:39:40 hostkey_dsa
12: 6406 bytes Nov 23 2014 17:33:27 vrpcfg.cfg
Total: 30008KB(Free: 96KB)
BE CAREFUL!
This may cause your system fail to start!
Please choose the file you want to delete: vrpcfg.cfg
vrpcfg.cfg的即是配置文件,输入该文件名进行删除
删除成功后重启设备即恢复出厂设置