系统升级维护指的是在命令行界面下进行主程序或者 CTRL 程序的升级或者文件的上传和下载,通常有两种手段:一种是使用 TFTP 协议通过网口进行升级,另一种是使用 Xmodem 协议通过串口进行升级。 

我们将从以下2方面描述如何升级维护设备的文件

1,通过TFTP协议传输文件

2,   通过XMODEM协议传输文件

先来看锐捷设备的操作:


在此提供一下3CDaemon软件的下载地址。此软件是3com公司的一名员工开发的。具备ftp、tftp等多种功能,文件很小,值得一试。

范例:

>enable

#copy tftp flash // 特权模式下

      Source fliename []?S2126G.BIN // 系统固件名

      Address of remote host []?10.10.16.11 // 我的主机IP地址

      Destination filename [S2126G.BIN]?直接回车

      #reload // 别忘记reload,若无reload,系统仍然使用之前的版本

       成功后就会显示成功信息。

      #show version // 可以看到软件版本信息,比如升级后的1.69版固件




 

 

 

 


 

 

注意:使用Xmodem方式升级,是通过console串口线缆升级系统的,速度和console线缆设置的波特率有很多关系,曾经尝试过,10M左右的文件,9600波特率,需要2个多小时才能传送完成,而使用11520波特率,大概只需要30分钟左右时间。(明白一点,并不是任何设备都可以任意设置不同波特率的,视不同型号而言)总体而言,使用xmodem方式升级时间相对要长一些,而使用tftp方式升级,由于使用的是以太网线缆,同样10M大小文件,速度估计几分钟就可以搞定了。

………………………………………………………………

再看一下H3C的系统升级方法

省略通过console方式升级,重点看一下目前流行的tftp升级方式。

VRP版本采用CLI TFTP方式的升级方法
操作步骤
第一步首先启动tftp软件,并设置好版本文件所在的目录
 
第二步配置路由器,从路由器上可以ping通TFTP Server

[Quidway]
interface Ethernet 0/0
 
[Quidway-Ethernet0/0]
ip address 1.1.1.1 8
配置接口地址
 
第三步在路由器上执行tftp get命令开始下载版本
过程如下:
tftp 1.1.1.2 get AR28-VRP340-R0006-907-128-a.bin 340-0006.bin
       /******server IP                 源文件名              目的文件名******/
File will be transferred in binary mode.
Downloading file from remote tftp server, please wait...............................................................................................................................
TFTP: 8695261 bytes received in 260 second(s).
File downloaded successfully.
 
同时在TFTP Server上可以看见文件的传输过程。(老版本的TFTP Server可能没有进度提示!)
 
 
第四步设定系统下一次引导使用的版本,然后重新启动系统
查看flash中的文件,确认版本已经正确上载。
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!
 
重新启动系统
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.........................................................
System is starting
Starting at 0x10000...
User interface Con 0 is available.
Press ENTER to get started.
 
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
 

 

【提醒】

1,大家可以使用上面介绍的3CDaemon软件 下载地址

2,大家也可以使用tftpd32 这个小巧tftp软件了。 下载地址

3、强烈建议使用CLI方式进行版本升级工作,即方便、速度又快。