网络基础配置--usg系统升级

1、usg2000系统升级

1.1、TFTP设置

这里用到一个工具:3CDeamon, 是在由3Com开发类别 Web Development Freeware 软件,是一个简易服务器工具,含TFTP服务器、FTP服务器、Syslog服务器及TFTP客户机。3CDaemon,支持多种协议的小型服务软件,其功能简练、使用方便是最大的优点。

下载站点:

1、http://www.updatestar.com/directdownload/3cdaemon/2005987

2、https://pan.baidu.com/s/1gumyFTmtUKQvJVS3mjQ_0g        u7on

下载后直接安装即可

 

1.2、升级步骤

查看设备的版本

[SD-JN-70]dis version 
14:15:06  2018/05/10
Huawei Versatile Routing Platform Software
Software Version : USG2110 V300R001C00SPC900 (VRP (R) Software, Version 5.30)
Copyright (C) 2008-2013 Huawei Technologies Co., Ltd.
Secoway USG2110-F uptime is 0 week, 0 day, 0 hour, 2 minutes

RPU's Version Information:
512M           bytes SDRAM
64M            bytes FLASH
Pcb            Version : VER.D
CPLD Logic     Version : 003
Small BootROM  Version : 136
Big BootROM    Version : 173

查看设备上的文件

<SD-JN-70>dir
14:16:04  2018/05/10
Directory of flash:/

   0   -rw-  23981700  Apr 02 2000 00:05:45   SUP_512M.BIN
   1   drw-         -  Aug 14 2013 16:22:01   url
   2   -rw-        37  May 10 2018 13:01:51   private-data.txt
   3   -rw-       780  Aug 14 2016 12:34:29   um_database_cfg.zip
   4   -rw-      3267  Aug 14 2016 12:34:44   vrpcfg.zip
   5   -rw-   1971449  Aug 14 2013 16:30:22   utm_update.zip

63373 KB total (37999 KB free)

先备份下原先的系统文件

<SD-JN-70>tftp 192.168.0.3 put sup_512M.bin
14:20:27  2018/05/10
  Transfer file in binary mode.
  Now begin to copy file to remote tftp server, please wait for a while... /
  TFTP: 23981700 bytes sent in 149 seconds.

  File uploaded successfully. 
<SD-JN-70>tftp 192.168.0.3 put um_database_cfg.zip
14:26:38  2018/05/10
  Transfer file in binary mode.
  Now begin to copy file to remote tftp server, please wait for a while... 
  TFTP:      780 bytes sent in 1 second.

  File uploaded successfully. 

<SD-JN-70>tftp 192.168.0.3 put vrpcfg.zip         
14:26:50  2018/05/10
  Transfer file in binary mode.
  Now begin to copy file to remote tftp server, please wait for a while... 
  TFTP:     3267 bytes sent in 1 second.

  File uploaded successfully. 

<SD-JN-70>tftp 192.168.0.3 put utm_update.zip
14:27:01  2018/05/10
  Transfer file in binary mode.
  Now begin to copy file to remote tftp server, please wait for a while... |
  TFTP:  1971449 bytes sent in 13 seconds.

  File uploaded successfully. 

 下载镜像文件

<SD-JN-70>tftp 192.168.0.3 get sup_512M.bin       
14:30:51  2018/05/10
The file sup_512M.bin exists. Overwrite it?[Y/N]:y
  Transfer file in binary mode. 
2018-05-10 14:30:52 SD-JN-70 %%01VFS/4/OVERWRITE(l): When asked whether to overwrite the file sup_512M.bin, the user entered Y.
  Now begin to download file from remote tftp server, please wait for a while... |
  TFTP: 23692580 bytes received in 244 seconds. 
  File downloaded successfully. 

查看目前启动的镜像

<SD-JN-70>dis startup   #华三是dis boot-loader
14:42:38  2018/05/10
MainBoard: 
  Configed startup system software:          flash:/SUP_512M.BIN
  Startup system software:                   flash:/SUP_512M.BIN
  Next startup system software:              flash:/SUP_512M.BIN
  Startup saved-configuration file:          flash:/vrpcfg.zip
  Next startup saved-configuration file:     flash:/vrpcfg.zip

设定启动时要加载的镜像

<SD-JN-70>startup system-software SUP_512M.BIN 
14:44:53  2018/05/10
Info:System software for the next startup:flash:/sup_512m.bin, start reading file....
Succeeded in setting the software for booting system.

重启

<SD-JN-70>reboot
14:46:07  2018/05/10
  System will reboot, could you want to save current configuration [Y/N]?y
 Next config file is flash:/vrpcfg.zip

Now saving the current configuration to the device..................................................
Info:The current configuration was saved to the device successfully.
  System will reboot! Continue?[Y/N]:y

重启时间大约要经过4分钟左右。可以看到版本已经升级到SPC600了。

<SD-JN-70>dis version 
14:50:03  2018/05/10
Huawei Versatile Routing Platform Software
Software Version : USG2110 V300R001C10SPC600 (VRP (R) Software, Version 5.30)
Copyright (C) 2008-2015 Huawei Technologies Co., Ltd.
Secoway USG2110-F uptime is 0 week, 0 day, 0 hour, 5 minutes

RPU's Version Information:
512M           bytes SDRAM
64M            bytes FLASH
Pcb            Version : VER.D
CPLD Logic     Version : 003
Small BootROM  Version : 136
Big BootROM    Version : 178

------------------------------------------------------------------------------------------------------------------------------------------------

2、官方教程

操作步骤

  1. 在PC2上通过FTP方式登录USG。

    本文档中以Windows操作系统自带的FTP client为例进行介绍,在实际操作过程中,建议您使用第三方FTP client程序来传送文件,例如Cute FTP等。

    显示信息如下:

    C:> ftp 192.168.0.1 
    Connected to 192.168.0.1. 
    220 FTP service ready. 
    User (192.168.0.1:(none)): ftpuser 
    331 Password required for ftpuser. 
    Password: 
    230 User logged in.
    ftp>
  2. 设置文件的传输模式,同时设置PC2上存放升级所需文件的目录路径为D:FTP,该文件夹必须已经存在。此处仅以D:FTP为例进行说明,您可以根据实际需要配置为其他的目录。
    ftp> binary   /输入binary命令,以二进制格式传输文件
    ftp> lcd D:FTP /设置PC2上存放升级所需文件的目录
  3. 使用put命令,将v300r001c10spc600.bin上传至USG的Flash中。上传的文件不能和Flash中已有的文件同名。如果Flash中已经有同名的文件,将会直接覆盖原来的文件。
    ftp> put D:FTPv300r001c10spc600.bin

    受网络状况影响,上传版本软件时将会需要一段时间,请您耐心等待上传完成提示。上传完成后,请您确认设备Flash中文件的大小与PC2上文件的大小是否一致,如果不一致,请重新上传,确保文件完整上传到设备SD卡或Flash中。

  4. 使用put命令,将经过配置转换工具转换并手工调整后的配置文件如vrpcfg_new.cfg上传至USG的Flash中。上传的文件不能和Flash中已有的文件同名。如果Flash中已经有同名的文件,将会直接覆盖原来的文件。
    ftp> put D:FTPvrpcfg_new.cfg

    上传完成后,请您确认设备Flash中文件的大小与PC2上文件的大小是否一致,如果不一致,请重新上传,确保文件完整上传到设备Flash中。

  5. 文件上传完成后,退出FTP环境,在PC1上通过Telnet或SSH方式登录到USG的命令行环境中。
  6. 在用户视图下使用startup system-software filename命令设置USG下次启动时使用的版本软件。
    <USG> startup system-software v300r001c10spc600.bin
      Info:System software for the next startup:flash:/v300r001c10spc600.bin, starting reading file....                                                         
    Succeeded in setting the software for booting system.
  7. 在用户视图下使用startup saved-configuration filename命令设置USG下次启动时使用的配置文件。
    <USG> startup saved-configuration vrpcfg_new.cfg
      Info: Succeeded in setting the configuration for booting system. 
  8. 在用户视图下使用reboot命令重新启动USG。

    执行reboot命令后,设备将会显示两次提示信息,请您不保存配置重新启动。重启后请您耐心等待,待设备启动完成后再进行后续操作。

     注意:

    第一个是否保存当前配置的提示,执行y后当前配置会覆盖本次升级的目标配置。如果确认已将当前配置同步保存到升级目标配置,请输入n

    <USG> reboot
       System will reboot, could you want to save current configuration [Y/N]?n      
       System will reboot, continue?[Y/N]:y
     说明:

    设备启动耗时受当前的硬件配置以及配置文件影响。配置越多,需要恢复配置的时间就越长。

原文地址:https://www.cnblogs.com/daynote/p/9019207.html