一、必备工具:
二、案例拓扑:
S3600-28TP-SI 装有tftp server的PC
IP:192.168.1.2 IP:192.168.1.100
三、必须条件:
1、设备和PC能互通,最好是同一网段。
(使用直通线直连)
2、PC上安装了tftp server程序,69端口没有被其他应用程序占用
3、设备上的flash剩余空间容量必须大于系统固件的容量。
如何查询设备flash剩余空间呢?如下图使用dir命令查看flash使用情况:
单位注意:1024K=1M,如上27140K/1024=26.5M,说明上传系统固件不能超过26.5M。
四、升级流程
第一步:上传系统固件之前的工作(连通性测试,备份设备配置文件)
(1)连通性测试
(2)启动PC上的tftp server软件,例如我这里使用tftp32.exe软件,并且以tftp32.exe所在的文件夹位置为上传和下载的文件路径(这里test文件夹放在桌面)
(3)将设备的启动配置文件下载到tftpd32所在的目录下,在用户视图下使用如下命令:
tftp 192.168.1.100 put startup.cfg
第二步:将系统固件上传到设备。
(1)有足够的空间,在用户视图下,使用如下命令:
tftp 192.168.1.100 get S36SI_E-CMW310-R1702P42-S168.bin
上传的时间比较久,在tftp server上也有显示,视文件大小决定时间。
最多也是十分钟吧
再上传web文件,可选:
<H3C>tftp 192.168.1.100 get H3C-http3.2.1-0001.web
(2)上传成功:
第三步:将上传的系统固件设置成设备默认启动加载系统文件。
(1)默认加载新的系统文件
<H3C>boot-loader file S36SI_E-CMW310-R1702P42-S168.bin
This command will set the boot file of the specified board. Continue? [Y/N]:y
The specified file will be used as the main boot file at the next reboot on slot 1!
<H3C>boot web-package H3C-http3.2.1-0001.web 加载web文件,可选
注意:5.20的版本加载系统文件命令:应为是
boot-loader file S36SI_E-CMW310-R1702P42-S168.bin slot all main
(2)查看启动加载:
<H3C> display boot-loader
The app to boot at the next time is: flash:/ S36SI_E-CMW310-R1702P42-S168.bin
第四步:使用reboot命令重新启动
<H3C>reboot
Start to check configuration with next startup configuration file, please wait.........DONE! This command will reboot the device. Continue? [Y/N]:y
#Apr 26 12:51:28:918 2000 H3C DEV/1/REBOOT:
Reboot device by command.
%Apr 26 12:51:29:09 2000 H3C DEV/4/SYSTEM REBOOT:
System is rebooting now.
Starting......
***********************************************************
* *
* H3C S3600-28TP-SI ROM, Version 5.20 *
* *
***********************************************************
Copyright (c) 2004-2011 Hangzhou H3C Tech. Co., Ltd.
Creation date : Jul 21 2011, 10:16:35
CPU Clock Speed : 264MHz
BUS Clock Speed : 33MHz
Memory Size : 128MB
Mac Address : 0cda4166a8ff
Press Ctrl-B to enter Boot Menu 0
Auto-booting...
Decompress Image........................................OK!
User interface aux0 is available.
Press ENTER to get started.
第五步,系统启动成功,检查是否升级成功:
<H3C>dis version
H3C Comware Platform Software
Comware Software, Version 5.20, Release 2P42
Copyright (c) 2004-2012 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
H3C S3600-28TP-SI uptime is 0 week, 0 day, 0 hour, 2 minutes
H3C S3600-28TP-SI with 1 Processor
128M bytes SDRAM
16384K bytes Flash Memory
第六步,一般升级之后,启动配置是不会被删除,但是旧版和新版的配置都有一些不同,所以注意,读取了旧的配置(命令不同的,无法识别),测试一下有没有问题,不然重新配置下设备,使用save保存配置。
另外,升级之后,旧的系统固件依然在flash,如果设备使用新的固件一段时间,确认没有问题,可以删除旧的固件,命令:del file {旧的系统固件名}。