2.10 VRP版本采用CLI FTP方式的升级方法(二)
VRP采用FTP方式进行升级存在两种方式:路由器作为FTP server和路由器作为FTP client。
本节介绍路由器作为FTP client的升级方法
第一步:启动PC上的FTP Server程序,设置好FTP的帐号、口令
FTP server的软件很多,大家可以根据自己的习惯选择。这里使用Serv-U32举例。
第二步:从路由器上FTP到PC,下载版本
过程:
1. 配置路由器的接口IP,保证可以ping通PC的接口地址
2. 使用FTP server上配置的帐号FTP到PC
<Quidway>ftp 1.1.1.2
Trying 1.1.1.2 ...
Press CTRL+K to abort
Connected to 1.1.1.2.
220 Serv-U FTP-Server v2.4 for WinSock ready...
User(1.1.1.2:(none)):aaa
331 User name okay, need password.
Password:
230 User logged in, proceed.
3. bin //更改为二进制传输方式
4. get AR28-VRP340-R0006-907-128-a.bin 340-0006.bin
/*****源文件名 目的文件名*******/
200 PORT Command successful.
150 Opening BINARY mode data connection for AR28-VRP340-R0006-907-128-a.bin (8695261 bytes).
.........................................................................226 Transfer complete.
FTP: 8695261 byte(s) received in 75.298 second(s) 115.00K byte(s)/sec.
[ftp]bye
221 Goodbye!
第三步:设定系统下一次引导使用的版本,然后重新启动系统
查看flash中的文件,确认版本已经正确上载。
<Quidway>dir
Directory of flash:/
0 -rw- 8695296 Dec 21 2004 11:29:19 main.bin
1 -rw- 8695261 Dec 24 2004 10:09:56 340-0006.bin
2 -rw- 5746199 Dec 22 2004 14:47:37 330-0008.bin
设定系统下一次引导使用的版本
[Quidway]boot main 340-0006.bin
Set main boot file successfully!
重新启动系统
<Quidway>reboot
This command will reboot the system. Since the current configuration may have changed, all changes may be lost if you continue. Continue? [Y/N] y
【验证】
系统重新启动后,查看版本,确认版本升级成功
Starting at 0x1c00000...
********************************************
* *
* Quidway Series Routers Boot ROM, V9.07 *
* *
********************************************
Copyright(C) 1997-2004 by HUAWEI TECH CO., LTD.
Compiled at 18:10:29 , Oct 14 2004.
Testing memory...OK!
128M bytes SDRAM
32768k bytes flash memory
Hardware Version is MTR 1.0
CPLD Version is CPLD 1.0
Press Ctrl-B to enter Boot Menu
The current starting file is main application file--flash:/340-0006.bin!
The main application file is self-decompressing...............................................................................................................................................................................................................................................OK!
System is starting...
Starting at 0x10000...
User interface Con 0 is available.
Press ENTER to get started.
<Quidway>disp ver
Copyright Notice:
All rights reserved (Dec 10 2004).
Without the owner's prior written consent, no decompiling
nor reverse-engineering shall be allowed.
Huawei-3Com Versatile Routing Platform Software
VRP(R) software, Version 3.40, Release 0006
Copyright (c) 2003-2004 Hangzhou Huawei-3Com Tech. Co.,Ltd. All rights reserved.
Copyright (c) 2000-2003 Huawei Tech. Co.,Ltd. All rights reserved.
Quidway AR28-31 uptime is 0 week, 0 day, 0 hour, 0 minute
CPU type: PowerPC 8245 300MHz
128M bytes SDRAM Memory
32M bytes Flash Memory
128K bytes NvRAM Memory
Pcb Version:1.0
Logic Version:1.0
BootROM Version:9.07
[SLOT 0] 2FE (Hardware)2.1, (Driver)2.0, (Cpld)0.0
[SLOT 1] 2SA (Hardware)1.1, (Driver)1.5, (Cpld)0.0