11-附录A-下载升级软件
本章节下载: 11-附录A-下载升级软件 (286.05 KB)
目 录
使用FTP方式下载时,设备既可以充当FTP Server也可以充当FTP Client。使用TFTP下载时,设备只能充当TFTP Client,三种下载方式略有差异。有关FTP和TFTP配置的详细介绍,请参见设备对应配置指导中的“基础配置指导”。
本章节将为您介绍设备作为FTP Client下载升级软件。
(1) 按“软件升级前准备”章节搭建升级环境。
(2) 在用户PC(假设IP地址为192.168.0.23)上运行FTP Server程序,设置用户名和密码,以及正确的文件保存目录,并把待升级文件保存在FTP Server的工作目录下。
(3) 确保用户PC和设备之间的路由可达。
(4) 登录设备,进入设备启动软件存储介质的根目录
<Sysname> cd flash:/
<Sysname>
若下载软件的存储介质的根目录不是设备启动软件的存储介质的目录,需要先进入设备启动软件的存储介质的根目录,再进行下载软件,确保下载软件的存储介质的目录和启动软件的存储介质的目录是同一个。
(5) 将待升级软件(以newest.ipe为例)下载到设备的存储介质中。
# 设备作为FTP Client登录到FTP Server。
<Sysname> ftp 192.168.0.23
Connected to 192.168.0.23 (192.168.0.23).
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User (192.168.0.23:(none)):username ---输入用户名
331 Give me your password, please
Password: ---输入密码
230 Logged in successfully
Remote system type is MSDOS.
ftp>
# 将传输模式设置为二进制模式,以便传输启动软件包。
ftp> binary
200 Type is Image (Binary)
# 将启动软件包newest.ipe从FTP服务器下载到存储介质的根目录下。
ftp> get newest.ipe
227 Entering Passive Mode (192,168,0,23,7,100)
150 "C:\ newest.ipe " file ready to send (385 bytes) in in IMAGE / Binary mode
226 Transfer finished successfully.
74948608 bytes received in 35.974 seconds (896.00 kbyte/s)
ftp> bye
221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye
(6) 通过dir命令查看待升级软件是否已在存储介质的根目录中。
<Sysname> dir
(7) 用MD5摘要算法计算文件的摘要值,然后与官网文件版本的MD5摘要值进行对比,确认文件的完整性。
<Sysname> md5sum newest.ipe
MD5 digest:
4f22b6190d151a167105df61c35f0917
不同设备不同版本的BootWare菜单不同,请以设备实际情况为准。本节以S10500系列交换机为例进行介绍。
(1) 按“软件升级前准备”章节搭建升级环境。
(2) 在用户PC(假设IP地址为192.168.0.23)上运行FTP Server程序,设置用户名和密码,以及正确的文件保存目录,并把待升级文件保存在FTP Server的工作目录下。
(3) 在用户PC上运行终端仿真程序,启动交换机,键入<Ctrl+B>,进入BootWare扩展段主菜单。
==========================<EXTENDED-BOOTWARE MENU>==========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Skip Authentication for Console Login |
|<9> Storage Device Operation |
|<0> Reboot |
============================================================================
Ctrl+Z: Access EXTENDED ASSISTANT MENU
Ctrl+F: Format File System
Ctrl+C: Display Copyright
Enter your choice(0-9):
(4) (可选)设置设备下载软件的存储介质为启动软件的存储介质。
若下载软件的存储介质不是设备启动软件的存储介质,需要设置下载软件的存储介质为设备启动软件的存储介质。
# 键入<9>,进入存储器操作子菜单。
==============================<DEVICE CONTROL>==============================
|<1> Display All Available Nonvolatile Storage Device(s) |
|<2> Set The Operating Device |
|<3> Set The Default Boot Device |
|<0> Exit To Main Menu |
============================================================================
Enter your choice(0-3):
# 键入<2>,设置下载软件的存储介质。此处以启动软件的存储介质是flash为例。
Please set the operating device:
============================================================================
|Note:the operating device is flash |
|NO. Device Name File System Total Size Available Space |
|1 flash YAFFS2 1048576KB 184920KB |
|0 Exit |
============================================================================
Enter your choice(0-2):
# 键入<1>,设置flash为下载软件的存储介质。
==============================<DEVICE CONTROL>==============================
|<1> Display All Available Nonvolatile Storage Device(s) |
|<2> Set The Operating Device |
|<3> Set The Default Boot Device |
|<0> Exit To Main Menu |
============================================================================
Enter your choice(0-3):
# 键入<3>,设置默认启动软件的存储介质。
Please set the default device:
============================================================================
|Note:the default device is flash |
|NO. Device Name File System Total Size Available Space |
|1 flash YAFFS2 1048576KB 184920KB |
|0 Exit |
============================================================================
Enter your choice(0-2):
# 键入<1>,设置flash为默认启动软件的存储介质。
==============================<DEVICE CONTROL>==============================
|<1> Display All Available Nonvolatile Storage Device(s) |
|<2> Set The Operating Device |
|<3> Set The Default Boot Device |
|<0> Exit To Main Menu |
============================================================================
Enter your choice(0-3):
# 键入<0>,退出子菜单。
(5) 下载并升级启动软件包。
==========================<EXTENDED-BOOTWARE MENU>==========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Skip Authentication for Console Login |
|<9> Storage Device Operation |
|<0> Reboot |
============================================================================
Ctrl+Z: Access EXTENDED ASSISTANT MENU
Ctrl+F: Format File System
Ctrl+C: Display Copyright
Enter your choice(0-9):
# 键入<3>,进入以太网口子菜单。
==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash |
|<1> Download Image Program To SDRAM And Run |
|<2> Update Main Image File |
|<3> Update Backup Image File |
|<4> Download Files(*.*) |
|<5> Modify Ethernet Parameter |
|<0> Exit To Main Menu |
|<Ensure The Parameter Be Modified Before Downloading!> |
============================================================================
Enter your choice(0-5):
# 键入<5>,修改以太网口参数。
==========================<ETHERNET PARAMETER SET>==========================
|Note: '.' = Clear field. |
| '-' = Go to previous field. |
| Ctrl+D = Quit. |
============================================================================
Protocol (FTP or TFTP) :ftp
Load File Name :newest.ipe
:
Target File Name :newest.ipe
:
Server IP Address :192.168.0.23
Local IP Address :192.168.0.105
Subnet Mask :255.255.255.0
Gateway IP Address :0.0.0.0
FTP User Name :xxx
FTP User Password :***
显示信息 |
说明 |
'.' = Clear field |
在菜单项中键入“.”表示清除当前输入 |
'-' = Go to previous field |
在菜单项中键入“-”表示返回到前一个参数域 |
Ctrl+D = Quit |
快捷键<Ctrl+D>表示退出参数设置界面 |
Protocol (FTP or TFTP) |
选择通过TFTP/FTP升级BootWare |
Load File Name |
下载文件的名称,要与下载的文件名一致 |
Target File Name |
下载到交换机后的目标文件名,文件的后缀需要和下载文件的后缀保持一致 |
Server IP Address |
FTP/TFTP服务器或PC的IP地址 |
Local IP Address |
设备的IP地址 |
Subnet Mask |
子网掩码 |
Gateway IP Address |
网关IP地址,如果设备与下载文件所在PC不在同一个网段中,需要配置网关IP地址 |
FTP User Name |
FTP用户名 |
FTP User Password |
FTP下载密码 |
# 修改以太网口参数后,再次回到以太网口子菜单,键入<2>或<3>,选择升级主用启动软件包、备用启动软件包。此处以键入<2>升级主用启动软件包为例。
Loading.....................................................................
............................................................................
.........................Done!
31911744 bytes downloaded!
Image file BOOT.bin is self-decompressing... Saving file flash:/ BOOT.bin ..............................................Done.
Image file SYSTEM.bin is self-decompressing...Saving file flash:/ SYSTEM.bin .................................. ..Done.
(6) 下载并升级启动软件包成功后,在以太网口子菜单中键入<0>,返回到BootWare扩展段主菜单,然后键入<0>,重启设备。
(1) 按“软件升级前准备”章节搭建升级环境。
(2) 在用户PC(假设IP地址为192.168.0.23)上运行TFTP Server程序,设置正确的文件保存目录,并把待升级文件保存在TFTP Server的工作目录下。
(3) 确保用户PC和设备之间的路由可达。
(4) 登录设备,进入设备启动软件存储介质的根目录
<Sysname> cd flash:/
<Sysname>
若下载软件的存储介质的根目录不是设备启动软件的存储介质的目录,需要先进入设备启动软件的存储介质的根目录,再进行下载软件,确保下载软件的存储介质的目录和启动软件的存储介质的目录是同一个。
(5) 将待升级软件(以newest.ipe为例)下载到设备的存储介质中。
<Sysname> tftp 192.168.0.23 get newest.ipe
Press CTRL+C to abort.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13.9M 100 13.9M 0 0 1206k 0 0:00:11 0:00:11 --:--:-- 1206k
Writing file...Done.
<Sysname>
(6) 通过dir命令查看待升级软件是否已在存储介质的根目录中。
<Sysname> dir
(7) 用MD5摘要算法计算文件的摘要值,然后与官网文件版本的MD5摘要值进行对比,确认文件的完整性。
<Sysname> md5sum newest.ipe
MD5 digest:
4f22b6190d151a167105df61c35f0917
不同设备不同版本的BootWare菜单不同,请以设备实际情况为准。本节以S10500系列交换机为例进行介绍。
(1) 按“升级前准备”章节搭建升级环境。
(2) 在用户PC(假设IP地址为192.168.0.23)上运行TFTP Server程序,设置正确的文件保存目录,并把待升级文件保存在TFTP Server的工作目录下。
(3) 在用户PC上运行终端仿真程序,启动交换机,键入<Ctrl+B>,进入BootWare扩展段主菜单。
==========================<EXTENDED-BOOTWARE MENU>==========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Skip Authentication for Console Login |
|<9> Storage Device Operation |
|<0> Reboot |
============================================================================
Ctrl+Z: Access EXTENDED ASSISTANT MENU
Ctrl+F: Format File System
Ctrl+C: Display Copyright
Enter your choice(0-9):
(4) (可选)设置设备下载软件的存储介质为启动软件的存储介质。
若下载软件的存储介质不是设备启动软件的存储介质,需要设置下载软件的存储介质为设备启动软件的存储介质。
# 键入<9>,进入存储器操作子菜单。
==============================<DEVICE CONTROL>==============================
|<1> Display All Available Nonvolatile Storage Device(s) |
|<2> Set The Operating Device |
|<3> Set The Default Boot Device |
|<0> Exit To Main Menu |
============================================================================
Enter your choice(0-3):
# 键入<2>,设置下载软件的存储介质。此处以启动软件的存储介质是flash为例。
Please set the operating device:
============================================================================
|Note:the operating device is flash |
|NO. Device Name File System Total Size Available Space |
|1 flash YAFFS2 1048576KB 184920KB |
|0 Exit |
============================================================================
Enter your choice(0-2):
# 键入<1>,设置flash为下载软件的存储介质。
==============================<DEVICE CONTROL>==============================
|<1> Display All Available Nonvolatile Storage Device(s) |
|<2> Set The Operating Device |
|<3> Set The Default Boot Device |
|<0> Exit To Main Menu |
============================================================================
Enter your choice(0-3):
# 键入<3>,设置默认启动软件的存储介质。
Please set the default device:
============================================================================
|Note:the default device is flash |
|NO. Device Name File System Total Size Available Space |
|1 flash YAFFS2 1048576KB 184920KB |
|0 Exit |
============================================================================
Enter your choice(0-2):
# 键入<1>,设置flash为默认启动软件的存储介质。
==============================<DEVICE CONTROL>==============================
|<1> Display All Available Nonvolatile Storage Device(s) |
|<2> Set The Operating Device |
|<3> Set The Default Boot Device |
|<0> Exit To Main Menu |
============================================================================
Enter your choice(0-3):
# 键入<0>,退出子菜单。
(5) 下载并升级启动软件包。
==========================<EXTENDED-BOOTWARE MENU>==========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Skip Authentication for Console Login |
|<9> Storage Device Operation |
|<0> Reboot |
============================================================================
Ctrl+Z: Access EXTENDED ASSISTANT MENU
Ctrl+F: Format File System
Ctrl+C: Display Copyright
Enter your choice(0-9):
# 键入<3>,进入以太网口子菜单。
==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash |
|<1> Download Image Program To SDRAM And Run |
|<2> Update Main Image File |
|<3> Update Backup Image File |
|<4> Download Files(*.*) |
|<5> Modify Ethernet Parameter |
|<0> Exit To Main Menu |
|<Ensure The Parameter Be Modified Before Downloading!> |
============================================================================
Enter your choice(0-5):
# 键入<5>,修改以太网口参数。
==========================<ETHERNET PARAMETER SET>==========================
|Note: '.' = Clear field. |
| '-' = Go to previous field. |
| Ctrl+D = Quit. |
============================================================================
Protocol (FTP or TFTP) :tftp
Load File Name :test.bin
:newest.ipe
Target File Name :test.bin
:newest.ipe
Server IP Address :192.168.0.23
Local IP Address :192.168.0.105
Subnet Mask :255.255.255.0
Gateway IP Address :0.0.0.0
表A-2 设置以太网口参数显示信息描述表
显示信息 |
说明 |
'.' = Clear field |
在菜单项中键入“.”表示清除当前输入 |
'-' = Go to previous field |
在菜单项中键入“-”表示返回到前一个参数域 |
Ctrl+D = Quit |
快捷键<Ctrl+D>表示退出参数设置界面 |
Protocol (FTP or TFTP) |
选择通过TFTP/FTP升级BootWare |
Load File Name |
下载文件的名称,要与下载的文件名一致 |
Target File Name |
下载到交换机后的目标文件名,文件的后缀需要和下载文件的后缀保持一致 |
Server IP Address |
FTP/TFTP服务器或PC的IP地址 |
Local IP Address |
设备的IP地址 |
Subnet Mask |
子网掩码 |
Gateway IP Address |
网关IP地址,如果设备与下载文件所在PC不在同一个网段中,需要配置网关IP地址 |
# 修改以太网口参数后,再次回到以太网口子菜单,键入<2>或<3>,选择升级主用启动软件包、备用启动软件包。此处以主用启动软件包为例。
Loading.....................................................................
............................................................................
.........................Done!
31911744 bytes downloaded!
Image file BOOT.bin is self-decompressing... Saving file flash:/ BOOT.bin ..............................................Done.
Image file SYSTEM.bin is self-decompressing...Saving file flash:/ SYSTEM.bin .................................. ..Done.
(6) 下载并升级启动软件包成功后,在以太网口子菜单中键入<0>,返回到BootWare扩展段主菜单,然后键入<0>,重启设备。
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!