FAT AP 升级指导书
4 FIT AP切换到FAT AP指导
必须使用PC作为TFTP服务器,并且PC的网口必须与AP网口直连。
Uboot下用TFTP的方法升级AP
请事先配置好tftp工具,指向升级文件所在目录;保证在AP上能ping通PC。 1. 使用串口线将AP的串口和PC的串口相连,使用“超级终端”等软件,进入命令
行界面。超级终端设置如下:
Baud:9600
Data bits:8 Stop bits:1 Parity: none
Flow Control: none
2. 执行命令reboot,重新启动AP,在出现以下信息后4秒内按下F键,进入uboot
命令行视图。:
Press f or F to stop Auto-Boot in 4 seconds: 0 ar7240>
3. 配置AP和tftp服务器的IP地址,使AP和服务器的IP地址处于同一网段,保证
AP能够从tftp服务器获取升级文件。
ar7240> setenv ipaddr 192.168.10.13 #AP的IP地址
ar7240> setenv serverip 192.168.10.11 #服务器的IP地址 ar7240> saveenv
Saving Environment to Flash...
Erasing Flash...Writing to Flash... done
4. 在命令行中键入run update_boot,在下面的显示信息中作相应的配置:
a.
升级uboot:
ar7240> run update_boot #u-boot.bin存放在TFTP目录下 dup 1 speed 1000 ......
Copy to Flash... done
ar7240> reset #以新加载的uboot启动
升级uboot时不能断电,否则AP无法启动。
b. 重新启动AP。在出现以下信息后3秒内按下F键,进入uboot命令行视图。
Uboot菜单缺省密码为admin@huawei.com。
Press f or F to stop Auto-Boot in 3 seconds: 3 Password for uboot cmd line : ar7240>
c. 加载需要升级的V200R005C00SPC200 AP系统软件:
文档版本 01 (2014-05-04)
华为专有和保密信息 版权所有 ? 华为技术有限公司
21
FAT AP 升级指导书
4 FIT AP切换到FAT AP指导
ar7240> update system FatAP6X10XN_V200R005C00SPC200.bin #FatAP6X10XN_V200R005C00SPC200.bin存放在TFTP目录下 dup 1 speed 1000 ......
Upgrade Firmware to A Successful
5. 配置完成后,在命令行中键入reset,AP就会使用指定的网络启动固件文件启动
了。用这种方式启动后,固件被读入AP的flash。
ar7240> reset Resetting...
6. 升级完成后,可执行命令display version查看当前版本是否升级成功。
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.130 (AP6010DN FAT V200R005C00SPC200) Copyright (C) 2011-2013 HUAWEI TECH CO., LTD
Huawei AP6010DN Router uptime is 0 week, 0 day, 0 hour, 16 minutes
MPU 0(Master) : uptime is 0 week, 0 day, 0 hour, 16 minutes SDRAM Memory Size : 128 M bytes Flash Memory Size : 32 M bytes MPU version information : 1. PCB Version : H86D2TD1D200 VER.C 2. MAB Version : 0 3. Board Type : AP6010DN 4. BootROM Version : 117
文档版本 01 (2014-05-04)
华为专有和保密信息 版权所有 ? 华为技术有限公司
22
FAT AP 升级指导书
5 FAT AP切换到FIT AP指导
5 ? ? ?
FAT AP切换到FIT AP指导
5.1 V200R003&V200R005 FAT AP切换到FIT AP方法
V200R003&V200R005 FAT AP切换到FIT AP的三种方法:
V200R003和V200R005 FAT AP切换到FIT AP操作步骤一致。
命令行升级AP
Uboot下用TFTP的方法升级AP 进入辅助升级包手动升级AP
从V200R003C00SPC200开始不支持此方式。
建议用户采用命令行升级AP升级方式,操作步骤简单易行。
V200R003&V200R005版本的FIT AP或FAT AP,通过命令行登录的缺省用户名和密码为admin和admin@huawei.com。Uboot菜单缺省密码为admin@huawei.com。 升级前请注意备份重要文件。
V200R003C00和V200R003C00SPC100版本升级时,必须使用PC作为FTP服务器、TFTP服务器或SFTP服务器,并且PC的网口必须与AP网口直连。
从V200R003C00SPC200开始,命令行升级方式下支持两种远程升级场景:FAT AP切换至FIT AP和FAT AP升级至FAT AP。组网环境需要满足特定条件才能进行远程升级,具体限制要求请参考3 升级前准备中的通过命令行方式升级的环境。 不支持通过从IP(sub IP)地址连接服务器进行升级。
命令行升级AP
用户可以通过命令行的方式来升级固件文件。以升级AP6010DN-AGN为例。 请事先配置好tftp、ftp或sftp工具,指向升级文件所在目录;保证在AP上能ping通PC。
1. 使用串口线将AP的串口和PC的串口相连,使用“超级终端”等软件,进入命令
行界面。超级终端设置如下:
Baud:9600 Data bits:8
文档版本 01 (2014-05-04)
华为专有和保密信息 版权所有 ? 华为技术有限公司
23
FAT AP 升级指导书
Stop bits:1 Parity: none
Flow Control: none
5 FAT AP切换到FIT AP指导
也可以通过telnet方式登录到AP,进行以下升级操作步骤。
V200R003&V200R005版本的AP缺省IP地址为169.254.1.1,缺省用户名和密码分别为admin和admin@huawei.com。如果AP上已配有新的IP地址、用户名和密码,可使用新的IP地址、用户名和密码登录设备。
2. FTP方式,TFTP方式和SFTP方式需要保证AP和PC之间能够互相通信。升级
前可执行命令display version查看当前AP版本。例如:
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.130 (AP6010DN FAT V200R003C00) Copyright (C) 2011-2013 HUAWEI TECH CO., LTD
Huawei AP6010DN Router uptime is 0 week, 0 day, 0 hour, 16 minutes
MPU 0(Master) : uptime is 0 week, 0 day, 0 hour, 16 minutes SDRAM Memory Size : 128 M bytes Flash Memory Size : 32 M bytes MPU version information : 1. PCB Version : H86D2TD1D200 VER.C 2. MAB Version : 0 3. Board Type : AP6010DN 4. BootROM Version : 62
3. 执行命令save保存配置文件,并将配置文件备份到PC上。选择下面其中一种方
法进行操作。
?
FTP方式:
The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait..........
................................................. Configuration file had been saved successfully Note: The configuration file will take effect after being activated
Trying 192.168.10.11 ... Press CTRL+K to abort Connected to 192.168.10.11.
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user User(192.168.10.11:(none)):1 # 输入FTP server用户名 331 Give me your password, please Enter password: # 输入FTP server密码,密码不显示在屏幕 230 Logged in successfully [Huawei-ftp] binary
200 Type is Image (Binary) [Huawei-ftp] put vrpcfg.zip 200 PORT command okay 150 \
/ Binary mode
文档版本 01 (2014-05-04)
华为专有和保密信息 版权所有 ? 华为技术有限公司
24
FAT AP 升级指导书
5 FAT AP切换到FIT AP指导
226 Transfer finished successfully.
FTP: 960 byte(s) sent in 1.840 second(s) 521.73byte(s)/sec. ?
TFTP方式:
The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait..........
................................................. Configuration file had been saved successfully Note: The configuration file will take effect after being activated
Downloading the file from the remote TFTP server. Please wait... \\100%
886 bytes received in 1 second. TFTP: Downloading the file successfully. Now begins to save file, please wait... File had been saved successfully.
4. 参考对辅助升级包进行升级,将辅助升级包升级至目标版本。升级完成后执行命
令ap-mode-switch check校验辅助升级包是否正常。
[Huawei] ap-mode-switch check Info: Ap-mode-switch check ok.
5. 升级固件可以使用FTP方式或TFTP或SFTP方式,选择下面其中一种方法进行
操作。
升级过程中请不要断电,不要断开网络连接。
V200R003&V200R005 AP默认IP地址为169.254.1.1。
?
FTP方式:
用FTP方法升级固件的命令如下
从V200R003C00SPC200开始,命令行中不需要输入AP IP地址和子网掩码。
[Huawei] ap-mode-switch ftp FitAP6X10XN_V200R005C00SPC200.bin 192.168.10.11 admin admin123 192.168.10.13 255.255.0.0 #使用FTP方法升级固件
Warning: System will reboot, if you want to switch to upgrade-assistant-package.
Are you sure to execute these operations ? [Y/N]: y
表5-1 参数说明 参数 参数说明 文档版本 01 (2014-05-04)
华为专有和保密信息 版权所有 ? 华为技术有限公司
25