图1 配置路由器作为FTP Client升级系统文件组网图

华为路由交换升级-华为路由器如何升级-冯金伟博客园

操作步骤

1.设备的基本配置

#

interface GigabitEthernet0/0/0

ip address 10.1.1.2 255.255.255.0 //用于连接Server的IP地址

2.查看设备启动时使用的系统文件与配置文件信息

display startup

MainBoard:

Startup system software: sd1:/software.cc

Next startup system software: sd1:/software.cc

Backup system software for next startup: null

Startup saved-configuration file: sd1:/initcfg.cfg

Next startup saved-configuration file: sd1:/initcfg.cfg

3.从FTP Server端下载系统文件并查看是否下载成功

ftp 10.1.1.1

Trying 10.1.1.1 …

Press CTRL+K to abort Connected to 10.1.1.1.

220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user

User(192.168.200.1:(none)):huawei

331 Give me your password, please

Enter password:

230 Logged in successfully

[Huawei-ftp]binary

200 Type is Image (Binary)

[Huawei-ftp]get

software_new.cc

200 PORT command okay

150 “D:\ftp\software_new.cc” file ready to send (77582080 bytes) in i mage / Binary mode …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. ………………………….

226 Transfer finished successfully.

FTP: 77582080 byte(s) received in 152.403 second(s) 509.05Kbyte(s)/sec.

[Huawei-ftp]quit

221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye

dir

Directory of sd1:/

Idx Attr Size(Byte) Date Time(LMT) FileName

5 -rw- 69,363,072 Nov 21 2011 19:58:50 software.cc

7 -rw- 77,582,080 Dec 14 2011 10:28:31 software_new.cc

4.指定设备启动时使用的系统文件

startup system-software

software_new.cc This operation will take several minutes, please wait………

Info: Succeeded in setting the file for booting system

5.重新启动设备

reboot

Info: The system is comparing the configuration, please wait. Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]:n

System will reboot! Continue ? [y/n]:y

Info: system is rebooting ,please wait…

6.重启后完毕Telnet到设备,验证配置结果

display startup

MainBoard:

Startup system software: sd1:/software_new.cc

Next startup system software: sd1:/software_new.cc

Backup system software for next startup: null

Startup saved-configuration file: sd1:/initcfg.cfg

Next startup saved-configuration file: sd1:/initcfg.cfg

配置注意事项

  • PC端需使能FTP服务器功能,并存放系统文件。
  • 保证设备操作期间,不能出现断电重起现象,断电后,会导致信息丢失,设备无法正常启动。

视频加载中…