Next startup patch package: sd1:/ar2240-v200r003sph006.pat
Startup voice-files: null
Next startup voice-files: null
<Huawei>
升级步骤待补充
升级文件链接: http://support.huawei.com/enterprise/zh/router/ar2200-s-pid-9039730/software/22057058/?idAbsPath=fixnode01%7C7919710%7C21432787%7C7923148%7C22318636%7C9039730
参考链接:http://support.huawei.com/enterprise/zh/doc/DOC1000123576
使用了参考链接中的
3.8 查询当前软件版本信息
3.9 查询当前使用的系统文件信息
3.11 搭建通过TFTP、FTP或SFTP协议升级的环境(此处不用设置vlan,只要pc和路由器互通即可)
3.11.1 场景一:AR作为FTP Server
3.12.1 方法一:AR作为FTP Server
3.13 检查Flash/SD卡中的剩余空间
4.1.1 方法一:AR作为FTP Server
4.2 检查是否加载成功
4.3.1 单主控系列
4.4 重新启动设备
4.6 验证升级是否成功 华为AR2220-S升级过程:
3.11.1 场景一:AR作为FTP Server
配置AR作为FTP Server,假设GigabitEthernet0/0/0接口或Ethernet0/0/0接口(仅AR150-S&AR160-S&AR200-S系列)所在VLAN100的IP地址为10.164.30.20,FTP用户名为AR,密码为huawei@123,FTP工作目录为flash:/或sd1:/。下面以设备使用Flash卡为例。
<Huawei> system-view
[Huawei] ftp server enable
Info: Succeeded in starting the FTP server
[Huawei] aaa
[Huawei-aaa] local-user AR password cipher huawei@123
info: A new user added
[Huawei-aaa] local-user AR ftp-directory flash:
[Huawei-aaa] local-user AR service-type ftp
[Huawei-aaa] local-user AR privilege level 15
通常AR100-S&AR120-S&AR150-S&AR160-S&AR200-S&AR1200-S&AR2200-S&AR3200-S企业路由器的各种配置文件都在flash或sd1中,所以FTP工作目录一般都设置为flash:或sd1:。
3.12.1 方法一:AR作为FTP Server
步骤 1 将AR设置为FTP Server(参照“3.11.1 场景一:AR作为FTP Server”进行设置)
步骤 2 备份系统软件和配置文件。
可以通过以下两种方式登录到FTP服务器(即:AR)完成备份:
l 通过任何FTP Client程序登录到AR,备份文件到FTP Client。
输入IP地址和FTP的工作目录,可用此程序把AR工作目录下需要备份的文件拷到FTP Client的某目录下,如D:\ftp。
l 在操作终端上使用命令行登录到AR,备份文件到FTP Client。
注意登录时的目录应使用本机上升级程序所在的目录(即:FTP工作目录),假设为D:\ftp。
在Windows 7系统中,可以按照如下步骤启动FTP程序:
a. 在PC机上,选择“开始”>“运行”。
b. 输入cmd。
c. 在弹出的界面输入d:
d. 输入cd ftp,进入ftp目录。
C:\Documents and Settings\Administrator>d:
D:\>cd ftp
D:\ftp> ftp 10.164.30.20
Connected to 10.164.30.20.
220 FTP service ready.
User(10.164.30.20:(none)):AR #手工输入用户名,回车
331 Password required for AR.
Password: #输入密码huawei@123,回车,密码不显示在屏幕。
230 User logged in.
ftp> binary
200 Type set to I.
ftp> get AR1220-S-V200R007C00SPCc00.cc
200 Port command okay.
150 Opening binary mode data connection for AR1220-S-V200R007C00SPCc00.cc.
226 Transfer complete.
ftp: 收到 69129984 字节,用时 110.24Seconds 627.10Kbytes/sec.
如上所示表示文件已成功传送,可到D:\ftp目录下查询此文件。
ftp> get iascfg.zip
200 Port command okay.
150 Opening binary mode data connection for iascfg.zip
226 Transfer complete.
ftp: 收到 1197 字节,用时 0.00Seconds 1197000.00Kbytes/sec.
如上所示表示文件已成功传送,可到D:\ftp目录下查询此文件。
----结束
ftp> dir
229 Entering Extended Passive Mode (|||52105|)
125 ASCII mode data connection already open, transfer starting for *.
drwxrwxrwx 1 noone nogroup 0 Jan 16 12:20 .
-rwxrwxrwx 1 noone nogroup 304700 Nov 15 2016 sacrule.dat
-rwxrwxrwx 1 noone nogroup 28128 Jan 11 17:35 mon_file.txt
-rwxrwxrwx 1 noone nogroup 906 Jan 16 12:20 vrpcfg.zip
drwxrwxrwx 1 noone nogroup 0 Dec 16 2015 update
-rwxrwxrwx 1 noone nogroup 109307136 Dec 07 2015 AR2220-S-V200R005C20SPC200.cc
drwxrwxrwx 1 noone nogroup 0 Dec 16 2015 dhcp
-rwxrwxrwx 1 noone nogroup 0 Jan 11 17:31 20180111.cfg
drwxrwxrwx 1 noone nogroup 0 Jan 15 07:46 logfile
-rwxrwxrwx 1 noone nogroup 354304 Dec 17 2015 ar2220-s-v200r005sph008.pat
-rwxrwxrwx 1 noone nogroup 249 Jan 16 12:20 private-data.txt
226 Transfer complete.
ftp> binary
200 Type set to I.
ftp> get AR2220-S-V200R005C20SPC200.cc
local: AR2220-S-V200R005C20SPC200.cc remote: AR2220-S-V200R005C20SPC200.cc
229 Entering Extended Passive Mode (|||60503|)
125 ASCII mode data connection already open, transfer starting for AR2220-S-V200R005C20SPC200.cc.
100% |************************************************************| 104 MiB 760.67 KiB/s 00:00 ETA
226 Transfer complete.
WARNING! 423430 bare linefeeds received in ASCII mode.
File may not have transferred correctly.
109307136 bytes received in 02:20 (760.64 KiB/s)
<Huawei>startup system-software sd1:/ar2220-s-v200r007c00spcb00.cc
This operation will take several minutes, please wait....................
Info: Succeeded in setting the file for main booting system
<Huawei>dis startup
MainBoard:
Startup system software: sd1:/ar2220-s-v200r005c20spc200.cc
Next startup system software: sd1:/ar2220-s-v200r007c00spcb00.cc
Backup system software for next startup: null
Startup saved-configuration file: sd1:/vrpcfg.zip
Next startup saved-configuration file: sd1:/vrpcfg.zip
Startup license file: null
Next startup license file: null
Startup patch package: sd1:/ar2220-s-v200r005sph008.pat
Next startup patch package: sd1:/ar2220-s-v200r005sph008.pat
Startup voice-files: null
Next startup voice-files: null
3.13 检查Flash/SD卡中的剩余空间
步骤 1 检查剩余空间
在用户视图执行dir命令,查看Flash/SD卡中的剩余空间,确认Flash/SD卡中有足够的剩余空间容纳待升级版本的系统软件。
下面以设备使用Flash卡为例。
<Huawei> dir flash:/
Directory of flash:/