已阅读5页,还剩34页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Cisco路由器IOS映像恢复及升级方法 一、Cisco 1000,1600,2500,4000系列 1、IOS映像恢复的方法及步骤 1) 连接PC的COM1口与路由器的console口,使用PC的超级终端软件访问该路由器; 2) 开启路由器的电源开关,并在30秒内按下键盘的Ctrl+break,中断路由器的正常启动以进入rom监视模式,屏幕上提示符如下: 3) 键入如下命令: o /r 0x2101 改变路由器虚拟寄存器的默认值(0x2102); 4) 键入重启命令: i 路由器重启,当屏幕显示以下信息表明路由器重启完毕: System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE Copyright (c) 1986-1995 by cisco Systems 2500 processor with 1024 Kbytes of main memory Press RETURN to get started! 5) 路由器在虚拟寄存器的值为0x2101时自动进入rom启动模式: router(boot) 6) 此时,将TFTP服务器上的IOS映像文件恢复至路由器flash memory中,依次键入以下命令: router(boot)en router(boot)#copy tftp flash System flash directory: No files in System flash 0 bytes used, 4194304 available, 4194304 total Address or name of remote host 55?68(IP地址已作技术处理,下同) Source file name? igs-i-l.110-22a.bin(IOS映像文件名) Destination file name igs-i-l.110-22a.bin? Accessing file igs-i-l.110-22a.bin on 68. Loading igs-i-l.110-22a.bin from 68 (via Ethernet0): ! OK Device needs erasure before copying new file Erase flash device before writing? confirm Copy igs-i-l.110-22a.bin from server as igs-i-l.110-22a.bin into Flash WITH erase? yes/noy Erasing device. eeeeeeeeeeeeeeee .erased Loading igs-i-l.110-22a.bin from 68 (via Ethernet0): !(!表示恢复成功) 7) 还原路由器虚拟寄存器的默认值(0x2102),恢复路由器的正常启动顺序,依次键入以下命令: router(boot)#conf t router(boot)(config)#config-register 0x2102 router(boot)(config)#exit router(boot)#wr router(boot)#reload 2、IOS映像升级的方法及步骤 1) 升级之前先备份,将相关文件备份至TFTP服务器,键入如下命令: router#copy bootflash tftp(Cisco 2500系列路由器不存在bootflash,相应的是rom) router#copy flash tftp router#copy startup-config tftp 2) 因为Cisco 1000,1600,2500,4000系列路由器不允许在正常工作状态下重写flash memory,所以只有进入rom(或bootflash)启动模式才能升级IOS映像,依次键入以下命令: router#conf t router(config)#config-register 0x2101 router(config)#exit router#wr router#reload 3) 路由器重启完毕后进入rom(或bootflash)启动模式,从TFTP服务器将新的IOS映像文件拷贝至路由器的flash memory中: router(boot)#copy tftp flash 4) 还原路由器虚拟寄存器的默认值(0x2102),恢复路由器的正常启动顺序,依次键入以下命令: router(boot)#conf t router(boot)(config)#config-register 0x2102 router(boot)(config)#exit router(boot)#wr router(boot)#reload 二、Cisco 1700,2600,3600,7200系列 1、IOS映像恢复的方法及步骤 1) 连接PC的COM1口与路由器的console口,使用PC的超级终端软件访问该路由器; 2) 开启路由器的电源开关,并在30秒内按下键盘的Ctrl+break,中断路由器的正常启动以进入rom监视模式,屏幕上提示符如下: rommon 1 3) 键入xmodem命令: rommon 1xmodem c3640-i-mz.120-10.bin(IOS映像文件名) 4) 然后,路由器一直等待从PC上接收该IOS映像文件,此时在超级终端软件中点击发送选项,选择存放在PC本地硬盘中的IOS映像文件,确定后即开始下载文件至路由器的flash memory中,由于通讯带宽只有9600波特,整个文件下载时间约为1.5小时(依文件大小而定),屏幕显示信息如下: Do not start the sending program yet. device does not contain a valid magic number dir: cannot open device flash: WARNING: All existing data in flash will be lost! Invoke this application only for disaster recovery. Do you wish to continue? y/nn:y Ready to receive file c3640-i-mz.120-10.bin . Erasing flash at 0x307c0000 program flash location 0x30380000 Download Complete! program load complete, entry point: 0x80008000, size: 0x38f410 5) 接着,路由器将自动重启,屏幕显示信息如下: Self decompressing the image : # OK Press RETURN to get started! 2、IOS映像升级的方法及步骤 1) 同理,升级之前先备份,将关键文件备份至TFTP服务器,键入下列命令: router#copy bootflash tftp(Cisco 3600系列路由器不存在bootflash) router#copy flash tftp router#copy startup-config tftp 2) 因为Cisco 1700,2600,3600,7200系列路由器允许在正常工作状态下重写flash memory,所以直接键入以下命令就可完成IOS映像的在线升级: router#copy tftp flash router#reload 或者,为保险起见(以路由器停止服务为代价),在进入rom监视模式后才进行IOS映像的升级,则依次进行下列操作: 2) 在路由器重启加电后30秒内按下键盘的Ctrl+break,中断路由器的正常启动直接进入rom监视模式,屏幕上提示符如下: rommon 1 或者,在路由器重启过程完成后进行以下操作,同样可以进入路由器的rom监视模式: router#conf t router(config)#config-register 0x0 router(config)#exit router#wr router#reload rommon 1 3) 键入以下命令,将IOS映像的升级文件从TFTP服务器复制至路由器的flash memory中: rommon 1b c3640-i-mz.121-2.T 68 program load complete, entry point: 0x80008000, size: 0x4ed478 Self decompressing the image : #OK Loading c3640-i-mz.121-2.T from 68 (via Ethernet0/0):! OK - 5166484/10332160 bytes 4) 还原路由器虚拟寄存器的默认值(0x2102),恢复路由器的正常启动顺序,依次键入以下命令: rommon 1confreg 0x2102 5) 键入重启命令,使得新配置生效,完成IOS映像的离线升级: rommon 2reset 路由器IOS软件升级方法时间:2003-02-09 08:00来源:中国网管联盟 bitsCN编辑字体:大 中 小1,在Windows操作系统的计算机上安装Cisco TFTP Server软件(文件名为TFTPServer1-1-980730.exe);2,用Winzip软件将c2500-i-l.113-6.zip文件进行解压,解压后的文件名为c2500-i-l.113-6.bin,将此文件拷入硬盘中一子目录,如D:cisco。3,启动Cisco TFTP Server软件;4,在TFTP Server软件界面上选择“View”“Options”,在Options界面上,在“TFTP Server root”选项上选择“Browse”,将该目录指向c2500-i-l.113-6.bin文件所在的目录,如D:cisco或其它。5,进入要升级的路由器下,将以太网的地址配置成与安装TFTP软件的计算机在同一个网段,并能ping通该计算机(其实也可以不在同一网段,只要能保证能ping通即可)。6,在路由器特权状态下(如Router#下),键入Copy tftp flash系统提示:Address or name of remote host ?时键入TFTP软件所在机器IP地址。系统提示:Source filename ?时键入要升级的IOS软件文件名,在例中为c2500-i-l(此处为字母l,不是数字1).11(这两个是数字1,不是字母l)3-6.bin(注意.Bin不能丢)。系统提示Destination filename ?时,直接回车即可,表示和源文件名一致。后面还有其它提问,按提示操作即可(如还有提示删除以前的IOS文件,以及确认消息等)。等待系统提示完成时,升级过程完成。整个过程大约23分钟。7,重新启动。注意,在升级过程中,千万不可断电或造成路由器与TFTP服务器的网络不畅等问题!【流行网络技术】CISCO路由器IOS升级方法总结 CCIE建策科技-CISCO思科培训前不久,朋友在对一台带语音模快的CISCO2610进行IOS升级时,由于路由器的内存(flash)为8M,IOS软件为7M多,升级后路由器无法正常启动。启动后到rommon 1 状态,请求帮助。由于本人长期从事计算机网络管理工作,在对CISCO路由器的长期日常维护和管理实践中积累了一定的经验。现总结归纳出CISCO路由器IOS映像升级的几种方法,供广大网络爱好者或同仁参考。在介绍CISCO路由器IOS升级方法前,有必要对Cisco路由器的存储器的相关知识作以简单介绍。路由器与计算机相似,它也有内存和操作系统。在Cisco路由器中,其操作系统叫做互连网操作系统(Internetwork Operating System),常简称为IOS.路由器的存储器主要有: ROM:只读存储器包含路由器正在使用的IOS的一份副本; RAM:IOS将随机访问存储器分成共享和主存。主要用来存储运行中的路由器配置和与路由协议有关的IOS数据结构; FLASH (闪存):用来存储IOS软件映像文件,闪存是可以擦除内存,它能够用IOS的新版本覆写,IOS升级主要是闪存中的IOS映像文件进行更换。 NVRAM:非易失性随机访问存储器,用来存储系统的配置文件。 IOS升级方法一 在对能够正常启动的CISCO路由器的IOS进行升级时,比较简单。具体步骤如下: 1、寻找一种TFTP服务器软件(有CISCO公司的TFTPServer或3COM公司的3Cserver等,在升级较大IOS映象文件时,建议用3Cserver),安装在一台计算机上,将要升级的IOS映象文件拷贝到相关的目录中(例:D:),并运行TFTP服务器软件,通过菜单设置Root目录为拷贝IOS映象文件所在目录(如D:)。假设该计算机的IP地址为; 2、连接路由器的console口与PC机的COM1,使用PC的超级终端软件访问路由器,将路由器的地址设为2(与计算机的IP地址同网段即可)。建议在进行IOS升级前将原有IOS文件备份下来,防止待升级的IOS文件存在问题不可用; QUOTE:Router# dir flash: (查看目前IOS映象文件名,也可用Router#Show version) Directory of flash:/ 1 -rw- 5998292 C2600-I-MZ.122-11.BIN 8388608 bytes total (2390252 bytes free) Router#copy flash tftp (备份IOS文件) Source filename ?c2600-i-mz.122-11.bin Address or name of remote host ? (TFTP服务器地址) Destination filename c2600-i-mz.122-11.bin? ! ! 5998292 bytes copied in 324.071 secs (18509 bytes/sec) Router# 3、对路由器进行IOS升级; QUOTE:Router#copy tftp flash Address or name of remote host ? (TFTP服务器地址) Source filename ? c2600-i-mz.122-11.bin (需升级的新IOS映象文件名) Destination filename c2600-i-mz.122-11.bin? Do you want to over write? confirm Accessing t/c2600-i-mz.122-11.bin Erase flash: before copying? confirm Erasing the flash filesystem will remove all files! Continue? confirm Erasing device eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee erasedee Erase of flash: complete Loading c2600-i-mz.122-11.bin from (via Ethernet0/0):! ! ! OK - 5998292 bytes Verifying checksum OK (0xA0C0) 5998292 bytes copied in 318.282 secs (18846 bytes/sec) Router# IOS升级方法二 由于升级失败后或者路由器的config-register寄存器值为0x2101时,开启路由器时、或者在开启(某些型号)Cisco路由器的电源开关后30秒内按下Ctrl+break键,中断路由器的正常启动,路由器都会进入rom监视模式,即Router(boot),在这种情形下,对路由器的IOS进行升级,也比较简单。首先进入特权模式下,即 QUOTE:Router(boot)en Router(boot)#其他升级步骤同方法一,即:执行copy tftp flash命令,对IOS进行升级。升级完成后,不要忘了修改config-register寄存器值为0x2102(恢复正常值)。 QUOTE:Router(boot)# t Router(boot)( config)# config-register 0x2102 Router(boot)( config)#exit Router(boot)#wr Router(boot)#reload重启即可。回复 引用引用地址:/u8915517/d35613388.htm 复制链接08915517就想随便逛逛 发表于:2006-3-16 14:42:10第2楼 IOS升级方法三 由于不小心使用了命令erase flash或升级失败后或在开启(某些型号)Cisco路由器的电源开关后30秒内按下Ctrl+break键,中断路由器的正常启动,路由器都会进入rom监视模式,即 rommon 1,在这种情形下,对路由器的IOS进行升级,情况要稍微复杂一点。在rommon 1状态下,可键?请求帮助。(1为命令行序号,每执行1条命令自动加1) QUOTE:rommon 1 ? alias set and display aliases command boot boot up an external process break set/show/clear the breakpoint confreg configuration register utility cont continue executing a downloaded image context display the context of a loaded image cookie display contents of cookie PROM in hex dev list the device table dir list files in file system dis display instruction stream dnld serial download a program module frame print out a selected stack frame help monitor builtin command help history monitor command history meminfo main memory information repeat repeat a monitor command reset system reset set display the monitor variables stack produce a stack trace sync write monitor environment to NVRAM sysret print out info from last system return tftpdnld tftp image download unalias unset an alias unset unset a monitor variable xmodem x/ymodem image download rommon 2 在rommon 1状态下有两种升级IOS方法。 (一)、通过Xmodem命令(注:Xmodem与实际的modem没有任何联系 只是一个传输协议数据是通过终端的串口和路由器的Console口灌进去的)升级IOS,具体步骤如下: 1、用Cisco原配的线缆连接路由器的console口与PC机的COM1,使用PC机的超级终端软件访问路由器,这时不需要对PC和路由器配置任何地址。 2、在这个模式下,输入Xmodem命令,即: QUOTE:rommon 2 xmodem -c c2600-i-mz.122-11.bin (-c是带校验,c2600-i-mz.122-11.bin为存放在PC机上的IOS映像文件) WARNING: All existing data in bootflash will be lost! Invoke this application only for disaster recovery. Do you wish to continue? y/n n: y Ready to receive file c2600-i-mz.122-11.bin (此时在超级终端的传送栏目= 选择发送文件选项 = 再选择Xmodem 并指明IOS映像文件所在的路径,按发送即开始上传IOS,等待时间很长,视IOS的大小和传输速度。) QUOTE:Erasing flash at 0x607c0000 program flash location 0x605b0000 Download Complete! 传完以后,对整个系统初始化 显示如下: QUOTE:program load complete, entry point: 0x80008000, size: 0x5b85e0 Self decompressing the image : OK Smart Init is disabled. IOMEM set to: 10 Using iomem percentage: 10 Restricted Rights Legend Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c) of the Commercial Computer Software - Restricted Rights clause at FAR sec. 52.227-19 and subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer Software clause at DFARS sec. 252.227-7013. cisco Systems, Inc. 170 West Tasman Drive San Jose, California 95134-1706 Cisco Internetwork Operating System Software IOS (tm) C2600 Software (C2600-I-M), Version 12.2(11)T9, RELEASE SOFTWARE (fc1) TAC Support: /tac Copyright (c) 1986-2003 by cisco Systems, Inc. Compiled Mon 23-Jun-03 15:42 by cmong Image text-base: 0x8000809C, data-base: 0x80A68B48 cisco 2610 (MPC860) processor (revision 0x203) with 22528K/2048K bytes of memory Processor board ID JAD03483395 (1128032249) M860 processor: part number 0, mask 49 Bridging software. X.25 software, Version 3.0.0. 1 Ethernet/IEEE 802.3 interface(s) 2 Serial(sync/async) network interface(s) 32K bytes of non-volatile configuration memory. 8192K bytes of processor board System flash (Read/Write) Press RETURN to get started! *Mar 1 00:00:05.652: %PA-2-UNDEFPA: Undefined Port Adaptor type 100 in bay 1 *Mar 1 00:00:07.996: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up *Mar 1 00:00:07.996: %LINK-3-UPDOWN: Interface Serial0/0, changed state to down *Mar 1 00:00:07.996: %LINK-3-UPDOWN: Interface Serial0/1, changed state to down *Mar 1 00:00:09.142: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up *Mar 1 00:00:09.142: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down *Mar 1 00:00:09.142: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to down *Mar 1 00:00:09.458: %SYS-5-CONFIG_I: Configured from memory by console *Mar 1 00:00:11.245: %LINK-5-CHANGED: Interface Serial0/1, changed state to administratively down *Mar 1 00:00:12.275: %SYS-5-RESTART: System restarted Cisco Internetwork Operating System Software IOS (tm) C2600 Software (C2600-I-M), Version 12.2(11)T9, RELEASE SOFTWARE (fc1) TAC Support: /tac Copyright (c) 1986-2003 by cisco Systems, Inc. Compiled Mon 23-Jun-03 15:42 by cmong *Mar 1 00:00:12.279: %SNMP-5-COLDSTART: SNMP agent on host NE16 is undergoing a cold start Router采用这种方法时,由于使用console口来传送,速率为9600bps,需要时间较长。因此可修改console口速率利用xmodem命令实现快速升级IOS.具体方法如下: QUOTE:rommon 1 confreg 回车 Configuration Summary enabled are: load rom after netboot fails console baud: 9600 boot: image specified by the boot system commands or default to: cisco2-C2600 do you wish to change the configuration? y/n n: y (选择 yes) enable diagnostic mode? y/n n: n (选择 no) enable use net in IP bcast address? y/n n: n (选择 no) disable load rom after netboot fails? y/n n: n (选择 no) enable use all zero broadcast? y/n n: n (选择 no) enable break/abort has effect? y/n n: n (选择 no) enable ignore system config info? y/n n: n (选择 no) change console baud rate? y/n n: y (选择 yes) enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400 4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 0: 7 (选择 7,用最大的11520 速率的xmodem传输) change the boot characteristics? y/n n: n (选择 no) Configuration Summary enabled are: load rom after netboot fails console baud: 115200 boot: image specified by the boot system commands or default to: cisco2-C2600 do you wish to change the configuration? y/n n: n (选择 no) You must reset or power cycle for new config to take effect rommon 2 reset 回车注意:在按reset键前,需要修改串口速度(我的电脑端口属性串口速度调为115200),然后再修改超级终端里设置速率为115200,记住,一定要这么做,否则会出现乱码!然后关闭这个超级终端,重新建立一个超级终端连接,重新启动系统后,出现 QUOTE:rommon 1 提示符然后,输入 QUOTE:rommon 1 xmodem -r Do not start the sending program yet Invoke this application only for disaster recovery. Do you wish to continue? y/n n: y (选择 yes) Ready to receive file 此时,在超级终端的菜单上的“传送”“发送文件”选择IOS映像文件所在地以及选择使用“xmodem”协议,点击“发送”即可。等待10-20分钟左右就可升级完3-6M的IOS文件!待升级完成后,请记住修改回计算机串口与超级终端、路由器confreg下的xmodem等传输速率为9600bps. 方法如下: QUOTE:Routeren 进入新IOS的特权模式 Router#reload 重启系统 Proceed with reload? confirm 回车 00:01:04: %SYS-5-RELOAD: Reload requested System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1) Copyright (c) 1999 by cisco Systems, Inc. TAC:Home:SW:IOS:Specials for info PC = 0xfff0a530, Vector = 0x500, SP = 0x680127b0 C2600 platform with 24576 Kbytes of main memory PC = 0xfff0a530, Vector = 0x500, SP = 0x80004684 monitor: command boot aborted due to user interrupt 30秒内按ctrl+break键 rommon 1 confreg ( 输入“confreg”命令) Configuration Summary enabled are: load rom after netboot fails console baud: 115200 boot: image specified by the boot system commands or default to: cisco2-C2600 do you wish to change the configuration? y/n n: y (选择 yes) enable diagnostic mode? y/n n: n (选择 no) enable use nn IP bcast address? y/n n: n (选择 no) disable load rom after netboot fails? y/n n: n (选择 no) enable use all zero broadcast? y/n n: n (选择 no) enable break/abort has effect? y/n n: n (选择 no) enable ignore system config info? y/n n: n (选择 no) change console baud rate? y/n n: y (选择 yes) enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400 4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 7: 0 (选择 0,改回用标准速率速率9600的xmodem传输) change the boot characteristics? y/n n: n (选择 no) Configuration Summary enabled are: load rom after netboot fails console baud: 9600 boot: image specified by the boot system commands or default to: cisco2-C2600 do you wish to change the configuration? y/n n: n You must reset or power cycle for new config to take effect rommon 2 此时手工改回计算机串口与超级终端2者传输速率为9600 然后敲入 QUOTE:rommon 2 reset最好关掉电源后,重新启动。利用xmodem命令实现路由器IOS升级速度较慢,往往等上很长时间,为了快速升级,可以采用下列方法。08915517就想随便逛逛 发表于:2006-3-16 14:42:51第3楼 (二)通过tftpdnld命令升级IOS,具体步骤如下: 1、用Cisco原配的线缆连接路由器的console口与PC机的COM1,使用PC机的超级终端软件访问路由器;用一根双绞线连接路由器的eth0/0口与PC机的网卡。 2、将路由器的eth0/0口IP地址设为2;PC机的IP地址设为.将要升级的IOS映象文件拷贝到相关的目录中,并运行TFTP服务器软件,通过菜单设置Root目录为拷贝IOS映象文件所在目录。 3、通过se
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 物业车辆押金合同范本
- 演出个人合同范本模板
- 美甲学徒招人合同范本
- 网红物品售卖合同范本
- 货物仓库租赁合同范本
- 溧水位食堂外包协议书
- 2025年人力压迫性测试题及答案
- 2025年安徽文科数学试卷及答案
- 签了三方协议签了合同
- 行政服务外包合同范本
- 智能建造理论与实践 课件 第四章 智能建造技术与应用
- 小学生科普知识讲解大赛
- 党风监督员培训课件
- 不锈钢电梯门套合同
- 数字孪生简介介绍
- 华为H12-611 V1.0 HCIA-openEuler认证备考试题库及答案(高分刷题版)
- 职业道德与法律中职PPT完整全套教学课件
- 2022年包头市中小学教师招聘考试真题
- 娱乐场所安全保卫工作方案
- 数据中心基础设施管理系统DCIM技术方案
- GB/T 18033-2007无缝铜水管和铜气管
评论
0/150
提交评论