第19章 网络设备升级_第1页
第19章 网络设备升级_第2页
第19章 网络设备升级_第3页
免费预览已结束,剩余32页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、网络设备的文件管理,issue 1.0,日期:,网络设备的文件系统 文件的管理 网络设备软件维护基础,目录,网络设备的文件系统,设备以文件的方式对运行所需的数据进行存储 网络设备通过文件系统管理这些文件 主要文件 应用程序文件 配置文件 日志文件,网络设备的存储方式,bootrom程序,应用程序文件 起始配置文件(saved-configuration) 日志文件,运行中的操作系统 运行中的配置(current-configuration),路由器,在不同型号的设备上,flash可能是内置的flash存储器,也可能是cf卡,文件系统操作举例,# 查看当前目录下的文件及子目录。 dir dire

2、ctory of flash:/ 0 drw- - feb 16 2006 11:45:36 logfile 1 -rw- 1218 feb 16 2006 11:46:19 config.cfg 2 drw- - feb 16 2006 15:20:27 test 3 -rw- 184108 feb 16 2006 15:30:20 aaa.app 19540 kb total (2521 kb free) # 进入test目录,并创建新文件夹mytest。 cd test mkdir mytest %created dir flash:/test/mytest. # 显示当前的工作路径。

3、pwd flash:/test # 查看test目录下的文件及子目录。 dir directory of flash:/test/ 0 drw- - feb 16 2006 15:28:14 mytest 2540 kb total (2519 kb free) # 返回上一级目录。 cd . # 显示当前的工作路径。 pwd flash:,网络设备的文件系统 文件的管理 网络设备软件维护基础,目录,配置设备的ftp服务,使能ftp服务器端功能 创建用户 设置服务类型及登录密码,h3cftp server enable,h3c-luser-xxxservice-type ftp h3c-lus

4、er-xxxpassword cipher | simple password,h3clocal-user username,ftp操作示例,c:ftp connected to . 220 ftp service ready. user (:(none): h3c 331 password required for h3c. password: 230 user logged in. ftp put config.cfg 200 port command okay. 150 opening ascii mode data c

5、onnection for config.cfg. 226 transfer complete. ftp: 发送 1329 字节,用时 0.00seconds 1329000.00kbytes/sec. ftp,用tftp传输文件的工作方式,host,router/switch,ip网络,tftp服务器,tftp客户端,在设备上使用tftp服务,在执行上传/下载操作时,到tftp服务器的可达路由可能有多条,用户可以配置客户端tftp报文的源地址 当设备作为tftp客户端时,可以把本设备的文件上传到tftp服务器,还可以从tftp服务器下载文件到本地设备 下载分为普通下载和安全下载两种,tftp

6、 server-address get | put | sget source-filename destination-filename source interface interface-type interface-number | ip source-ip-address ,tftp操作示例,tftp 0 get config.cfg the file config.cfg exists. overwrite it? y/n:y verifying server file. deleting the old file, please wait. file wil

7、l be transferred in binary mode downloading file from remote tftp server, please wait. tftp: 1329 bytes received in 0 second(s) file downloaded successfully.,指定下次启动加载的应用程序文件,指定下次启动加载的应用程序文件 显示下次启动加载的应用程序文件,boot-loader file file-url,display boot-loader,重启设备,重启系统 开启设备定时重启功能,并指定重启的具体时间 开启设备定时重启功能,并指定重启

8、的等待时延 显示设备的重启时间,reboot,schedule reboot at hh:mm date ,display schedule reboot,schedule reboot delay hh:mm | mm ,网络设备的文件系统 文件的管理 网络设备软件维护基础,目录,网络设备的一般引导过程,加电,硬件自检,加载bootrom程序,加载应用程序,进入bootrom模式,进入命令行模式,加载启动配置,加载空配置,查找应用程序文件,找不到,找到,查找起始配置文件,找到,找不到,路由器系统引导过程示例,内存自检,bootrom启动,应用程序文件解压缩和加载, initddr sdram

9、 testing. do you want to check sdram? yes or no (y/n):,system start booting.version 2.11 press ctrl+d to stop auto-boot booting normal extended bootrom decompressing.done! ensure the baudrate is set to 9600bps!starting at 0 xa00000. * * * * h3c msr30-40 bootrom, version 2.11 * * * * press ctrl+b to

10、enter extended boot menu.,the current starting file is main application file-cf:/msr30-cmw520-r1206p01-si .bin! the main application file is self-decompressing. decompressing.done! system is starting. ensure the baudrate is set to 9600bps! starting at 0 x10000. usrroot() end . user interface con0 is

11、 available. press enter to get started.,网络设备软件维护的一般性方法,在命令行模式中采用tftp/ftp上传/下载应用程序及配置文件,实现应用程序升级 在bootrom模式中通过以太口采用tftp/ftp完成应用程序软件升级 在bootrom模式中通过console口采用xmodem协议完成bootrom及应用程序的升级,应用xmodem方式升级bootrom,组网需求: 利用pc机本地的版本文件,在boot菜单中采用xmodem方式对交换机的bootrom软件进行升级。,1按照安装手册中交换机初次上电启动部分,启动并配置超级终端。启动交换机,根据超级终

12、端显示的提示按ctrl+b,进入bootrom主菜单 boot menu 1. download application file to flash 下载应用程序到flash中 2. select application file to boot 选择启动文件 3. display all files in flash 显示flash中所有文件 4. delete file from flash 删除flash中的文件 5. modify bootrom password 修改bootrom密码 6. enter bootrom upgrade menu 进入bootrom升级菜单 7. sk

13、ip current configuration file 设置重启不运行当前配置文件 8. set bootrom password recovery 恢复bootrom密码 9. set switch startup mode 设置交换机启动模式 0. reboot 重新启动交换机 enter your choice(0-9):,2键入6或者键入组合键ctrl + u然后回车,进入加载bootrom的菜单 bootrom update menu: 1. set tftp protocol parameter 2. set ftp protocol parameter 3. set xmod

14、em protocol parameter 0. return to boot menu enter your choice(0-3):,3键入3,选择采用xmodem协议完成bootrom的加载,回车后,系统进入下载速率设置菜单: please select your download baudrate: 1.* 9600 2. 19200 3. 38400 4. 57600 5. 115200 0. return 返回下载程序菜单 enter your choice (0-5):,4根据实际情况,选择合适的下载速率,若如上所示键入5,即选择115200bit/s的下载速率,回车后终端显示如

15、下信息: download baudrate is 115200 bps please change the terminals baudrate to 115200 bps and select xmodem protocol press enter key when ready 波特率更改完成后,请键入回车 如果下载波特率选择为9600bit/s,用户不用修改超级终端的波特率,也不用进行下面的第五步操作,直接进入第六步的操作。此时系统不给出上面的提示。,5单击超级终端的按钮,如图1-1所示,断开超级终端连接。进入超级终端软件的文件/属性菜单项,如图1-2所示,在弹出的对话框单击按钮,进入c

16、onsole口配置对话框,如图1-3所示,将速率配置115200bit/s,单击按钮完成波特率设定。 要做一次终端仿真程序的断开操作,系统才允许修改终端的波特率。,6然后键入回车即可开始程序的下载,终端显示如下信息: now please start transfer file with xmodem protocol. if you want to exit, press .若想退出程序下载,请键入 loading .cccccccccc 7从终端窗口选择传送/发送文件菜单项,在弹出的对话框,如图1-4所示,单击按扭,选择需要下载的软件,并将下载使用的协议改为xmodem,8选择完成后,单击

17、按钮,系统弹出如图1-5所示的界面,9程序下载完成后,系统界面如下: bootrom updating.done! your baudrate should be set to 9600 bps again! press enter key when ready 如果下载的速率选择为9600bit/s,用户不用重新调整超级终端的速率,此步骤没有必要。此时系统不给出“your baudrate should be set to 9600 bps again! press enter key when ready”的提示,而是提示“bootrom is updating now.done!”。 1

18、0此时重新将超级终端的波特率调整为9600bit/s,过程请参考前面的第五步,然后根据提示按回车键,系统将进入boot菜单,键入0,即选择重启交换机,回车后系统重启,完成bootrom升级。,通过以太口应用ftp方式升级app软件,组网需求: 计算机通过配置线与交换机console口相连,配置交换机。交换机通过以太口直接相连到ftp server,利用ftp server上的app主机软件,通过ftp方式对交换机主机软件进行升级。,1如图所示,交换机通过一个以太网口与ftp server相连,通过console口与配置计算机相连。 2在ftp server上运行服务器程序,设定ip地址(这里设

19、为),设定账号密码(这里分别设为switch和hello),指定需要加载的程序所在的文件路径。 3在配置计算机上运行超级终端程序,启动交换机,根据超级终端显示的提示按ctrl+b,进入bootrom主菜单: boot menu 1. download application file to flash 下载应用程序到flash中 2. select application file to boot 选择启动文件 3. display all files in flash 显示flash中所有文件 4. delete file from flash 删除flash中的文件

20、5. modify bootrom password 修改bootrom密码 6. enter bootrom upgrade menu 进入bootrom升级菜单 7. skip current configuration file 设置重启不运行当前配置文件 8. set bootrom password recovery 恢复bootrom密码 9. set switch startup mode 设置交换机启动模式 0. reboot 重新启动交换机 enter your choice(0-9):,4选择选项1后键入回车,系统会出现以下提示: 1. set tftp protocol

21、parameter 2. set ftp protocol parameter 3. set xmodem protocol parameter 0. return to boot menu enter your choice(0-3): 5在下载程序菜单中键入2,选择采用ftp协议完成主机软件的加载,回车后,开始ftp协议相关参数的设置: load file name :s5500.btm s5600-vrp310-r1510p09.bin switch ip address : server ip address : ftp user name

22、:switch ftp user password :hello 6根据实际情况,完成以上信息的输入,回车后系统界面如下: are you sure you want to download this file to flash? yes or no(y/n),7键入y,系统开始文件下载;键入n,系统将返回下载程序菜单。以键入y为例,回车后,系统开始进行自动进行程序的下载和升级操作。 loading.done free flash space: 5358592 bytes writing flash. . .done! 8当操作完成后,终端界面出现如下提示信息,提示选择文件属性,这里选择mai

23、n,输入后回车,系统更新完毕。 please input the file attribute (main/backup/none):main the attribute of s5600-vrp310-r1510p08.bin is changed from main to none! 9补充说明 这里的s5600-vrp310-r1510p08.bin是系统之前使用的主机软件; 作为ftp server的计算机与配置计算机可以是同一台设备; 交换机不随机提供ftp的服务器程序。 如果系统flash空间已经满了,需要首先删除flash中不用的文件,为新的主机文件准备足够的空间。,通过以太口应

24、用tftp方式升级主机软件,组网需求: 计算机通过配置线与交换机console口相连,配置交换机。交换机通过以太口直接相连到tftp server,利用tftp server上的app主机软件,通过tftp方式对交换机主机软件进行升级。,1如图所示,交换机通过一个以太网口与tftp server相连,通过console口与配置计算机相连。 2在tftp server上运行服务器程序,设定ip地址(这里设为),指定需要加载的程序所在的文件路径。 3在配置计算机上运行超级终端程序,启动交换机,根据超级终端显示的提示按ctrl+b,进入bootrom主菜单。 boot menu

25、 1. download application file to flash 下载应用程序到flash中 2. select application file to boot 选择启动文件 3. display all files in flash 显示flash中所有文件 4. delete file from flash 删除flash中的文件 5. modify bootrom password 修改bootrom密码 6. enter bootrom upgrade menu 进入bootrom升级菜单 7. skip current configuration file 设置重启不运行当前配置文件 8. set bootrom password recovery 恢复bootrom密码 9. set switch startup mode 设置交换机启动模式 0. reboot 重新启动交换机 enter your choice(0-9):,4选择选项1后键入回车,系统会出现以下提示。 1. set tftp protocol parameter 2. set ftp protocol parameter 3. s

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论