完美解决H3C 3100交换机误格式化

完美解决H3C 3100交换机误格式化
时间:2011-07-22 19:43来源:未知 作者:admin 点击:120次
完美解决H3C3100交换机误格式化
本人是h3c初学者,命令都是在真机上练习,昨天在教材上看到format flash:命令,就想实践一下,结果很杯具。但是独立解决问题的过程确使我受益匪浅,增长了不少见识。现将我的经验共享出来,希望对新人有所帮助。

由于好奇心,单位一台型号为 H3C S3100-16TP-Si的交换机被我format了,结果不停地重新启动,并出现以下提示:
Press Ctrl-B to enter 0

No correct default file to boot!
(然后不停地重启)
上网咨询了一下,网友说flash被你格式化了,没有系统了,得重新上传系统文件,我这个新鸟哪会这些啊!可身边又没人会这些,只能硬着头皮自己干了,单位幸好还有一台3100交换机,备份下来不就ok了吗?说干就干,连接上好的3100交换机,输入命令:
<H3C>sys
#建立ftp服务器
[H3C]ftp server enable
[H3C]local-user admin
[H3C-luer-admin]service-type ftp
[H3C-luer-admin]password simple 123456
[H3C-luer-admin]quit
[H3C]intvlan 1
[H3C-InterfaceVlan1]ip address 192.168.1.1 24
[H3C-InterfaceVlan1]quit
#查询系统文件
[H3C]dir
1 -rw- 3146 Jan 01 2004 00:00:00 config.def
2 (*) -rw- 856380 Jan 01 2004 00:00:00 h3c-http3.1.8-0041.web
3 (*) -rw- 3421398 May 05 2009 16:52:06 s31si_e-cmw310-r2108p04.bin
得到系统文件名:s31si_e-cmw310-r2108p04.bin。
然后设置本地计算机ip地址为192.168.1.2 255.255.255.0 ,将计算机与交换机用直通网线连接起来,在计算机上运行cmd命令,在窗口中输入C:\Documents and Settings\user>ftp 192.168.1.1 计算机提示输入用户名和密码,输入后进入ftp。用ftp>get s31si_e-cmw310-r2108p04.bin命令得到系统文件,这个文件会保存到C:\Documents and Settings\user目录下。得到系统文件后,下一步就是要把它传输到被格式化的交换机上。
具体步骤如下:
1.将本地计算机同被格式化的机器通过console口连接起来,启动超级终端,(设置:每秒位数9600 数据位8 奇偶校验无 停止位1 数据流控制无)。

2.将交换机上电,出现以下提示:

***********************************************************

* *

* H3C S3100-16TP-SI BOOTROM, Version 555 *

* *

***********************************************************

Copyright(c) 2004-2009 Hangzhou H3C Technologies Co., Ltd.

Creation date : Apr 14 2009, 16:10:07
CPU Clock Speed : 200MHz
BUS Clock Speed : 33MHz
Memory Size : 64MB
Mac Address : 3ce5a60d5f36

Press Ctrl-B to enter 3
马上按Ctrl+B键,出现
Press Ctrl-B to enter 0
password: (这里直接按回车)
3.出现引导菜单
BOOT MENU
1. Download application file to flash
2. Select application file to boot
3. Display all files in flash
4. Delete file from flash
5. Modify bootrom password
6. Enter bootrom upgrade menu
7. Skip current configuration file
8. Set bootrom password recovery
9. Set switch startup mode
0. Reboot
Enter your choice(0-3): 选1
4.出现下一级菜单
1. Set TFTP protocol parameter
2. Set FTP protocol parameter
3. Set XMODEM protocol parameter
0. Return to boot menu
Enter your choice(0-3): 选3
5.接着提示
Please select your download baudrate:
1.* 9600
2. 19200
3. 38400
4. 57600
5. 115200
0. Return
Enter your choice(0-5): 选1
6.提示
Download baudrate is 9600 bps
Please change the terminal's baudrate to 9600 bps and select XMODEM protocol

Press enter key when ready
按回车,出现以下字符:(这里提示一下,要按回车后,然后再发送文件,否则会出现“远程系统无反应”,我在这里费了好多事)
Now please start transfer file with XMODEM protocol
If you want to exit, Press <Ctrl+X>
Loading ...CCCCCC
这时要选择超级终端上的“传送”菜单,再选“发送文件”,然后指定系统文件所在的本地路径,再点“发送”按钮。文件发送要等上一段漫
长的时间。。。。
等啊等,好了终于传完了,这时会出现提示:
Loading ...CCCCCCdone!
Please input a new file name : 这里输入s31si_e-cmw310-r2108p04.bin
Free flash Space: 7410688 bytes


................................................................................

.................................................................done!

The attribute of s31si_e-cmw310-r2108p04.bin keeps main attribute !

done!
7.出现引导菜单
BOOT MENU
1. Download application file to flash
2. Select application file to boot
3. Display all files
4. Delete file from flash
5. Modify bootrom password
6. Enter bootrom upgrade menu
7. Skip current configuration file
8. Set bootrom password recovery
9. Set switch startup mode
0. Reboot
Enter your choice(0-9): 选2
Select application file to boot
1. Set application files
2. Set configuration files
3. Set web files
0. Return
Enter your choice(0-3): 选1
File Number File Size(bytes) File Name
=============================================================================

1(*) 3421398 s31si_e-
Free Space: 3988480 bytes
(*)-with main attribute
(b)-with backup attribute
(*b)-with both main and backup attribute
Please input the file number to change: 选1
Please input the file attribute (main/backup): 这里输入main
Do you want to run s31si_e-cmw310-r2108p04.bin now? Yes or No(Y/N) 这里输入y



................................................................................

............................................................................

................................................................................

................................OK!
Starting

LSN1LTSL
SDRAM OK!
Flash OK!
Switch .OK!
Slot 1/1/1 has FIX_COMBO_PORT module
Slot 1/2/1 has FIX_COMBO_PORT module
OK!
Please check FINISHED!

Startup configuration is skipped.
User interface aux0 is available.
好了到这里,交换机正常启动,出现了久违了的提示(好鸡动)
Press ENTER to get started.
< H3C>
%Apr 1 23:55:35:392 2000 H3C SHELL/5/LOGIN:- 1 - Console(aux0) in unit1 login
< H3C>
< H3C>
< H3C>
< H3C>
< H3C>
到此结束!这就是我的一点心得,希望能对新人有所帮助。

本文发布于:2024-09-21 20:32:14,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/1/96104.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议