1.1 升级前的版本要求 表1-1 升级前的版本要求 版本 | | S5300:V100R001、V100R002 | 需要先升级到V100R003版本,再升级到V200R001C00SPC300版本。 | S5300: V100R003、V100R005C00、V100R005C00SPC100、V100R005C01、V100R005C01SPC100、V100R006C00SPC300、 V100R006C00SPC500 V100R006C00SPC600 V100R006C00SPC800 V200R001C00SPC100 V200R001C00SPC200 S3300/S6300: V100R006C00SPC300、 V100R006C00SPC500 V100R006C00SPC600 V100R006C00SPC800 V200R001C00SPC100 V200R001C00SPC200 | 可以直接升级到V200R001C00SPC300版本。 |
1.1 查看当前系统软件版本使用display version命令查看正在运行的系统软件的版本。 <Quidway>display version Huawei Versatile Routing Platform Software VRP (R) software, Version 5.110 (S5300 V100R006C00SPC800) Copyright (C) 2000-2011 HUAWEI TECH CO., LTD Quidway S5324TP-PWR-EI Routing Switch uptime is 0 week, 0 day, 0 hour, 3 minutes EFGEF 0(Master) : uptime is 0 week, 0 day, 0 hour, 1 minute 256M bytes DDR Memory 32M bytes FLASH Pcb Version : VER A Basic BOOTROM Version : 160 Compiled at Nov 30 2011, 19:21:50 CPLD Version : 5 Software Version : VRP (R) Software, Version 5.110 (V100R006C00SPC800) HINDCARD information Pcb Version : CX22ETPC VER A PWRCARD I information Pcb Version : PWR VER A S5300作为FTP Server http://liushuai.blog./e/u/themes/default/images/spacer.gif FTP Client程序由用户自己购买、安装,S5300不附带此软件。 1. 将S5300设置为FTP Server 配置5300作为FTP Server, FTP用户名为ftpuser,密码为ftppwd,FTP工作目录是flash:/。 <Quidway> system-view [Quidway] ftp server enable [Quidway] aaa [Quidway-aaa] local-user ftpuser password cipher ftppwd [Quidway-aaa] local-user ftpuser service-type ftp [Quidway-aaa]local-user ftpuser ftp-directory flash: [Quidway-aaa]return 2. 配置设备IP 配置IP前,建议使用当前空闲且配置为缺省配置的接口,下面以GigabitEthernet 0/0/1为例,假设IP地址为1.1.1.1/24。 <Quidway> system-view [Quidway]interface GigabitEthernet0/0/1 [Quidway-GigabitEthernet0/0/1]port link-type access [Quidway-GigabitEthernet0/0/1]quit [Quidway]vlan 10 [Quidway-vlan10]port GigabitEthernet0/0/1 [Quidway-vlan10]quit [Quidway]interface vlanif 10 [Quidway-Vlanif10]ip address 1.1.1.124 [Quidway-Vlanif10]quit [Quidway] 3. 登录FTP服务器(Switch) http://liushuai.blog./e/u/themes/default/images/spacer.gif 以下操作以WindowsXP系统为例进行说明。 将上传的文件存放到指定目录(假定为D:\>目录)中,在“开始”菜单“运行”中键入cmd,然后按“回车”键。之后键入FTP 1.1.1.1,在“user”提示下输入用户名,在“password”提示下输入密码,然后按“回车”键。显示信息如下: D:\>ftp 1.1.1.1 Connected to 1.1.1.1. 220 FTP service ready. User (1.1.1.1:(none)): ftpuser 331 Password required for 1. Password: 230 User logged in. ftp> 4. 备份系统软件、配置文件和补丁文件到D:\>目录中 ftp> binary 200 Type set to I. ftp> get s5300-v100r006c00.cc 200 Port command okay. 150 Opening BINARY mode data connection for s5300-v100r006c00.cc. 226 Transfer complete. ftp: 发送 12472284字节,用时 40.33Seconds 1350.65Kbytes/sec 如上所示表示文件已成功传送,可到D:\>目录下查询此文件。 ftp> get vrpcfg.zip 200 Port command okay. 150 Opening BINARY mode data connection for vrpcfg.zip 226 Transfer complete. ftp: 发送 589字节,用时 0.01Seconds 60Kbytes/sec 如上所示表示文件已成功传送,可到D:\>目录下查询此文件。 ftp> get s5300sph001.pat 200 Port command okay. 150 Opening BINARY mode data connection for s5300sph001.pat. 226 Transfer complete. ftp: 发送 333436字节,用时 0.25Seconds 1333.74Kbytes/sec 如上所示表示文件已成功传送,可到D:\>目录下查询此文件。 5. 将新版本的系统软件上传到S5300. 在FTP client(PC)上执行put source-filename [ destination-filename ]命令将新版本文件上传至交换机。 ftp> put D:\S5300EI-V200R001C00SPC300.cc 200 Port command okay. 150 Opening BINARY mode data connection for S5300EI-V200R001C00SPC300.CC. 226 Transfer complete. ftp: 发送 14136780字节,用时 87.10Seconds 140.76Kbytes/sec. ftp> 6. (可选)从服务器获取新的配置文件 如果版本升级时,不需要更新配置文件,则跳过这一步。 ftp> put vrpcfgnew.zip 7. 指定设备启动时加载的系统软件 <Quidway>startup system-software S5300EI-V200R001C00SPC300.cc http://liushuai.blog./e/u/themes/default/images/spacer.gif 如果执行startup system-software file命令行时有下面的提示,请选择Y更新BOOTROM,更新成功直接跳到步骤9,否则需要继续步骤8操作。V100R003版本集群下需要手动更新Bootrom,步骤7结束后必须要进行步骤8操作。 Warning: Basic BOOTROM will be upgraded. Continue?(Y/N)[N]: y Upgrading BOOTROM,please wait for a moment Info: BOOTROM UPGRADE OK Info: Succeeded in setting the software for booting system 8. (可选)升级设备启动时加载的Bootrom <Quidway> system-view [Quidway] upgrade basic-bootrom S5300EI-V200R001C00SPC300.cc Warning: Basic BOOTROM will be upgraded. Continue?(Y/N)[N]: y Upgrading BOOTROM,please wait for a moment [Slot 0]: Info: BOOTROM UPGRADE OK. http://liushuai.blog./e/u/themes/default/images/spacer.gif V100R003和V100R005,V100R006版本增加了自动升级Bootrom的功能(见上步骤7),其他版本建议按照此步骤手工升级。 9. 重新启动交换机 http://liushuai.blog./e/u/themes/default/images/spacer.gif 如果当前版本为V100R005、V100R006、V200R001版本,重新启动交换机之前,如果下一次启动加载的系统软件为空或下次启动的系统软件不存在时,设备无法重新启动,指定下一次启动加载的软件操作请参考步骤7。 对于是否需要保存配置,请根据需要选择y或者n,设置完成后提示是否需要重新启动设备,请选择y重新启动设备。 <Quidway>reboot Info: The system is now comparing the configuration, please wait. Warning: All the configuration will be saved to the configuration file for the next startup:flash:/vrpcfg.zip, Continue?[Y/N]:y Now saving the current configuration to the slot 0. Info: Save the configuration successfully. System will reboot! Continue?[Y/N]: y Info: system is rebooting ,please wait… ----结束 方法三:S5300作为FTP Client http://liushuai.blog./e/u/themes/default/images/spacer.gif FTP Server程序由用户自己购买、安装,S5300不附带此软件。 10. 设置PC为FTP Server 在PC上运行FTP Server程序(以wftpd32为例介绍),依次选择菜单“Security”->“Uers/rights”。
在弹出的对话框中为New User设置好用户名和密码,假设用户名为S5300,密码为123456。在Home Directory设置PC上FTP的工作目录,假设为D:\ftp。然后点击“Done”按钮关闭对话框。 要确保在备份过程中,FTP Server程序不能关闭。 11. 备份系统软件、配置文件和补丁文件 S5300上的FTP操作命令同在普通PC机上DOS下操作命令相同,假设FTP Server的IP地址为10.164.30.27,用户名为S5300,密码为123456。 <Quidway> cd flash:/ <Quidway> ftp 10.164.30.27 Trying 10.164.30.27 ... Press CTRL+K to abort Connected to 10.164.30.27. 220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user User(10.164.30.27:(none)):S5300#手工输入用户名,回车 331 Give me your password, please Enter password: #输入密码123456,回车,密码不会显示在屏幕上 230 Logged in successfully [ftp] binary 200 Type set to I. 将系统软件s5300-v100r006c00.cc备份到FTP服务器,备份后系统软件名为s5300-v100r006c00-bak.cc。如果不配置保存后的文件名,则默认与原数据配置文件名相同。 [ftp] put s5300-v100r006c00.cc s5300-v100r006c00-bak.cc 200 PORT command successful 150 Opening BINARY mode data connection for file transfer 226 Transfer complete. FTP: 12472284 byte(s) sent in 81.176 second(s) 1296.55Kbyte(s)/sec. 将配置文件vrpcfg.zip也备份到FTP Server,备份后配置文件名为vrpcfg-bak.zip。如果不配置保存后的文件名,则默认与原数据配置文件名相同。 [ftp] put vrpcfg.zip vrpcfg-bak.zip 200 PORT command successful 150 Opening BINARY mode data connection for file transfer 226 Transfer complete. FTP: 1387 byte(s) sent in 0.176 second(s) 22.04Kbyte(s)/sec. 将补丁文件s5300sph001.pat也备份到FTP Server,备份后配置文件名为s5300sph001-bak.pat。如果不配置保存后的文件名,则默认与原数据配置文件名相同。 [ftp] put s5300sph001.pat s5300sph001-bak.pat 200 PORT command okay 150 "D:\ftp\s5300sph001-bak.pat" file ready to receive in IMAGE / Binary mode 226 Transfer finished successfully. FTP: 333436 byte(s) sent in 0.322 second(s) 1035.51Kbyte(s)/sec. 12. 获取新版本的系统软件 [ftp] getS5300EI-V200R001C00SPC300.cc 200 PORT command successful 150 Opening BINARY mode data connection for file transfer 226 Transfer complete. FTP: 14136780byte(s) received in 94.500 second(s) 1117.40Kbyte(s)/sec. 13. (可选)获取新的配置文件 如果版本升级时,不需要更新配置文件,则跳过这一步。 [ftp] get vrpcfgnew.zip 14. 断开FTP连接 [ftp] bye 221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye 15. 指定设备启动时加载的系统软件 <Quidway>startup system-software S5300EI-V200R001C00SPC300.cc http://liushuai.blog./e/u/themes/default/images/spacer.gif 如果执行startup system-software file命令行时有下面的提示,请选择Y更新BOOTROM,更新成功直接跳到步骤8,否则需要继续步骤7操作。V100R003版本集群下需要手动更新Bootrom,步骤6结束后必须要进行步骤7操作。 Warning: Basic BOOTROM will be upgraded. Continue?(Y/N)[N]: y Upgrading BOOTROM,please wait for a moment Info: BOOTROM UPGRADE OK Info: Succeeded in setting the software for booting system. 16. (可选)升级设备启动时加载的Bootrom <Quidway> system-view [Quidway] upgrade basic-bootrom S5300EI-V200R001C00SPC300.cc Warning: Basic BOOTROM will be upgraded. Continue?(Y/N)[N]: y Upgrading BOOTROM,please wait for a moment [Slot 0]: Info: BOOTROM UPGRADE OK. http://liushuai.blog./e/u/themes/default/images/spacer.gif V100R003和V100R005,V100R006,V200R001版本增加了自动升级Bootrom的功能(见上步骤6),其他版本建议按照此步骤手工升级。 17. 重新启动交换机 http://liushuai.blog./e/u/themes/default/images/spacer.gif 如果当前版本为V100R005、V100R006、V200R001版本,重新启动交换机之前,如果下一次启动加载的系统软件为空或下次启动的系统软件不存在时,设备无法重新启动,指定下一次启动加载的软件操作请参考步骤6。 对于是否需要保存配置,请根据需要选择y或者n,设置完成后提示是否需要重新启动设备,请选择y重新启动设备。 <Quidway>reboot Info: The system is now comparing the configuration, please wait. Warning: All the configuration will be saved to the configuration file for the next startup:flash:/vrpcfg.zip, Continue?[Y/N]:y Now saving the current configuration to the slot 0. Info: Save the configuration successfully. System will reboot! Continue?[Y/N]: y Info: system is rebooting ,please wait… ----结束
|