当前位置: 首页 > 系统与网络 > 正文

交换机放在家里。前阵子刚升级完V100R006C03,这不前几天更新了V100R006C05版本。相比V100R006C03版本,官方好像没给出变化项目,反倒是web管理一定得先先开启ssl,telnet也会提示Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet. 意思就是叫你使用更为安全的stelnet。版本控的我,,肯定升级下了。华为的升级帮助中包含几种方式,这里选用将交换机作为ftp服务器进行升级。整个升级过程除重启需要接近2分钟外,其他不影响正常运行的业务。

1.查看flash中的文件,telnet登陆交换机,输入 dir 列出flash的所有文件。

<S1>dir
Directory of flash:/

Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 810 Jan 01 2008 00:00:55 private-data.txt
1 -rw- 12,240 Jan 01 2008 01:26:53 $_patchstate_reboot
2 -rw- 872 Nov 26 2013 21:42:57 vrpcfg.zip
3 -rw- 6,573,748 Jan 01 2008 01:41:27 s2300ei-v100r006c03.cc
4 -rw- 565,486 Jan 01 2008 01:43:45 s2300ei-v100r006c03.web.zip

14,632 KB total (7,620 KB free)

由于固件文件已经接近7M了,剩余空间也就剩下7.6M,可以不选择先删除s2300ei-v100r006c03.cc固件文件。这里选择删除。不过由于s2300ei-v100r006c03.cc正被作为系统启动的文件,所以不能直接用命令删除,删除会提示

<S1>delete /unreserved s2300ei-v100r006c03.cc
Error: flash:/s2300ei-v100r006c03.cc cannot be deleted, because it may be a syst
em file.

进入系统视图,输入diagnose,输入 undo startup  system-software ,回车,取消s2300ei-v100r006c03.cc作为系统软件启动。接着输入return,输入delete /unreserved s2300ei-v100r006c03.cc删除文件。删除文件需要一些时间。

<S1>sys
[S1]diagnose
Enter diagnose view, return user view with Ctrl+Z.
Warning: The diagnosis view is used to debug system hardware and software. Misus
e of certain commands in this view may affect system performance. Therefore, use
these commands with the guidance of Huawei engineers.
[S1-diagnose]undo startup system-software
[S1-diagnose]
[S1-diagnose]q
[S1]q
<S1>delete /unreserved s2300ei-v100r006c03.cc
Warning: The contents of file flash:/s2300ei-v100r006c03.cc cannot be recycled.
Continue? [Y/N]:y
Info: Deleting file flash:/s2300ei-v100r006c03.cc………..succeeded.

2.设置管理IP,开启ftp服务,建立ftp用户。这里以vlan1下的为例子。

[S1]int vlan 1
[S1]ip address 192.168.1.2 24
[S1]q

开启ftp服务,进入AAA,建立登陆类型为ftp的用户,设置用户等级,用户默认目录为flash:/。

[S1] aaa
[S1-aaa] local-user 1 password cipher 2
[S1-aaa] llocal-user 1 privilege level 5
[S1-aaa] local-user 1 service-type ftp
[S1-aaa] local-user 1 ftp-directory flash:
[S1-aaa] q

3.登陆ftp服务器,下载配置文件,上传系统升级文件。这里将系统升级文件放到D盘的根目录。

①运行CMD,进入D盘,输入ftp 192.168.1.2

D:\>ftp 192.168.1.2
连接到 192.168.1.2。
220 FTP service ready.
用户(192.168.1.2:(none)): 1
331 Password required for 1.
密码:
230 User logged in.

②下载配置文件到D盘根目录。输入get vrpcfg.zip。

ftp> binary
200 Type set to I.
ftp> get vrpcfg.zip
200 Port command okay.
150 Opening BINARY mode data connection for vrpcfg.zip.
226 Transfer complete.
ftp: 收到 872 字节,用时 0.00秒 872.00千字节/秒。

③上传S2300EI-V100R006C05.cc系统升级文件。传输速度最大也就100kB/s。。要等一会儿。

ftp> put S2300EI-V100R006C05.cc
200 Port command okay.
150 Opening BINARY mode data connection for S2300EI-V100R006C05.cc.
226 Transfer complete.
ftp: 发送 6595876 字节,用时 107.98秒 61.09千字节/秒。

④上传S2300EI-V100R006C05.web.zip Web管理文件。

ftp> put S2300EI-V100R006C05.web.zip
200 Port command okay.
150 Opening BINARY mode data connection for S2300EI-V100R006C05.web.zip.
226 Transfer complete.
ftp: 发送 582189 字节,用时 12.83秒 45.38千字节/秒。

⑤登出ftp。

ftp> quit
221 Server closing.

⑥可以查看下文件是否都成功上传。输入dir命令。

<S1>dir
Directory of flash:/

Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 810 Jan 01 2008 00:00:55 private-data.txt
1 -rw- 6,595,876 Nov 28 2013 15:55:47 s2300ei-v100r006c05.cc
2 -rw- 872 Nov 28 2013 15:15:34 vrpcfg.zip
3 -rw- 12,240 Jan 01 2008 01:26:53 $_patchstate_reboot
4 -rw- 582,189 Nov 28 2013 15:56:12 s2300ei-v100r006c05.web.zip
5 -rw- 565,486 Jan 01 2008 01:43:45 s2300ei-v100r006c03.web.zip

14,632 KB total (7,028 KB free)

4.输入startup system-software S2300EI-V100R006C05.cc ,加载新的系统升级文件,期间会提示是否更新bootrom,选择y。

<S1>startup system-software S2300EI-V100R006C05.cc
Warning: Basic BOOTROM will be upgraded. Continue? (Y/N): y
Upgrading BOOTROM,please wait for a moment…

Info: BOOTROM upgrade is ok.
The new version is 149. Please restart to validate the upgrade.

Info: Succeeded in setting the software for booting system.

5.升级完成后重启交换机,这里输入reboot,会提示你是否保存当前的设置,输入n,不保存当前建立的配置。系统会加载你之前的配置文件。

<S1>reboot
Info: The system is now comparing the configuration, please wait.
Warning: All the configuration will be saved to the configuration file for the n
ext startup:flash:/vrpcfg.zip, Continue?[Y/N]:n
System will reboot! Continue?[Y/N]:y
Info: system is rebooting ,please wait…

6.升级完成后进入交换机,查看升级后的版本。

<S1>dis ver
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.70 (S2300 V100R006C05)
Copyright (C) 2003-2013 HUAWEI TECH CO., LTD
Quidway S2326TP-EI Routing Switch uptime is 0 week, 0 day, 5 hours, 28 minutes

EFFE 0(Master) : uptime is 0 week, 0 day, 5 hours, 27 minutes
64M bytes DDR Memory
16M bytes FLASH
Pcb Version : VER C
Basic BOOTROM Version : 149 Compiled at Mar 15 2013, 11:02:25
Software Version : VRP (R) Software, Version 5.70 (V100R006C05)

7.可选.      更新web文件,首先要关闭Web管理,加载新的Web文件。系统默认会加载S2300EI-V100R006C03版本的web文件。由于S2300EI-V100R006C05版本强制开启SSL,所以不仅要关闭http server,也要将ssl http一起关闭。输入undo http server enable,关闭http服务,再输入undo http secure-server enable,secure-server使能。接着输入http server load s2300ei-v100r006c05.web.zip,加载新的web,可选择删除旧的web文件。之后再先开启http secure-server enable。可选启动http server enable.

 

建议首选官方的帮助文档,此日志只作为博主的记录。

最后更新日期:2013年11月27日

 

[分享]华为 Quidway S2326TP-EI 升级V100R006C05固件:等您坐沙发呢!

发表评论