CISCO思科设备的IOS恢复_第1页
CISCO思科设备的IOS恢复_第2页
CISCO思科设备的IOS恢复_第3页
CISCO思科设备的IOS恢复_第4页
CISCO思科设备的IOS恢复_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

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

文档简介

1、Cisco设备IOS的两种恢复方法一般cisco的交换机或者路由器在 FLAHS损害或者误删IOS 的情况下,需要使用到IOS的恢复功能,对于思科的设备来说,主 要分为路由器和交换机,目前来说不论对于交换机还是路由器,IOS的恢复方法主要有以下2种,第一种是基于串口自带的x-modem 传 送IOS到交换机或者路由器;第二种是基于 tftp服务器传送IOS到 交换机或者路由器,以上这2种方法的前提是需要进入路由器和交换 机的ROMMON模式进行一些参数的配置,进入ROMMON的方法 和之前的路由器交换机的密码恢复的方式一样,下面就2种方法分别 介绍第一种方法:X-Modem先打开超级终端,进入

2、rommon 模式(Ctrl+Break组合键),键 入 confreg,女口下:rommon 1 confreg 回车Con figuratio n Summaryen abled are:load rom after n etboot failscon sole baud: 9600boot: image specified by the boot system comma ndsor default to: cisco2-C2600do you wish to cha nge the con figurati on? y/n n: y (选择yes)enable diagnostic m

3、ode? 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)cha nge con sole baud rate

4、? y/n n: y ( 选择 yes)en ter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 24004 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 0: 7 ( 选择 7, 用最大的115200速率的xmodem 传输)change the boot characteristics? y/n n: n ( 选择 no)Con figuratio n Summaryen abled are:load rom after n etboot failsconsole baud: 115200boot: image sp

5、ecified by the boot system comma ndsor default to: cisco2-C2600do you wish to cha nge the con figurati on? y/n n: n (选择no)You must reset or power cycle for new config to take effectrom mon 2 reset回车【注意】在此时键入reset键之前,开始定义串口速度(我的电 脑-端口属性-串口速度调为115200),然后再修改超级终端里 设置速率为115200,记住,一定这么做!否则出现乱码!然后关闭这个超级终端,

6、重新建立一个超级终端连接,(期间系统重新启动) 启动后,出现rommon 1 提示符然后,输入rom mon 1 xmodem -rDo 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

7、-6M的IOS灌进去了!(修改回计算机串口与超级终端、路由器confreg下的xmodem 等9600的传输速率)(注:实际用的时候,我发现这个命令总是改不成功,后来发现在line con 0 下面有了一个speed 115200,所以即使改register 成功,启动以后router又执行speed 115200,还是不行,所以如果 有这个问题,记得把这个语句 no掉)Routeren 进入新IOS的特权模式Router#reload 重启系统Proceed with reload? con firm 回车00:01:04: %SY S-5-RELOAD: Reload requestedS

8、ystem Bootstrap, Versio n 11.3(2)XA4, RELEASESOFTWARE (fc1)Copyright (c) 1999 by cisco Systems, Inc.TAC:Home:SW:IOS:Specials for infoPC = 0xfff0a530, Vector = 0x500, SP = 0x680127b0C2600 platform with 24576 Kbytes of mai n memoryPC = 0xfff0a530, Vector = 0x500, SP = 0x80004684mon itor: comma nd boot

9、 aborted due to user in terruptrommon 1 confreg ( 输入 confreg ”命令)Con figuratio n Summaryen abled are:load rom after n etboot failsco nsole baud: 115200boot: image specified by the boot system comma ndsor default to: cisco2-C2600do you wish to cha nge the con figurati on? y/n n: y (选择yes)enable diagn

10、ostic 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)cha nge con sole ba

11、ud rate? y/n n: y ( 选择 yes)en ter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 24004 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 7: 0 ( 选择 0, 改回用标准速率速率9600的xmodem 传输)change the boot characteristics? y/n n: n ( 选择 no)Con figuratio n Summaryen abled are:load rom after n etboot failsco nsole baud: 9600boot: i

12、mage specified by the boot system comma ndsor default to: cisco2-C2600do you wish to change the configuration? y/n n: nYou must reset or power cycle for new config to takeeffectrom mon 2 此时手工改回计算机串口与超级终端 2者传输速率为9600,然 后敲入rommon 2 reset( 最好关电源)第二种方法:TFTP在一台机器上安装TFTP服务器软件,将IOS文件放置在TFTP 服务器的默认根目录下,打开TF

13、TP服务器,用控制线将这台机器与 ROUTER连接起来,另外用交叉网线连接机器的网卡和ROUTER的以太口。(也可以用普通的网线将 ROUTER和交换机相连再连接机 器)做好以上工作后,打开机器的超级终端工具,连接上ROUTER,按Ctrl+Break组合键,此时窗口中出现的命令行提示符为:ROMMON1(其中1 ”代表命令行的行数)。在提示符后输入命令:ROMMON 1 IP_ADDRESS二 ROUTER的 IP 地址(要禾口 TFTP服务器在同一网段内)ROMMON 2 IP_SUBNET_MASK二 ROUTER的子网掩码ROMMON 3 DEFAUT_GATEWA Y二默认网关地址

14、(可以没有,也可以是TFTP服务器)ROMMON 4 TFTP_SERVER= TFTP 服务器 IP 地址ROMMON 5 TFTP_FILE二IOS 文件名(只给出文件名,不需要路径)ROMMON 6 tftpd nld回车【注意】前面的几条命令必须使用大写,而最后的tftpd nld则要用小写。在tftpdnld命令执行后,只要根据提示选择,就可完成 文件的传输。当文件传输完后,将自动回到命令行下,输入reset重启ROUTER,重启后就又回到了熟悉的IOS模式下甚至连以前配置 的信息都不会丢失。操作中需要注意的几个问题:A. 在连接运行tftp server的PC机至路由器时,必需使用

15、路由 器的第一个以太口,即EtherntO(对2500系列等),EthernetO/O (对 2600系列等),其它系列略有差别,可根据使用手册进行确定。B. 在使用连接电缆时,一定要用交叉线,因这种情况属 DTE与 DCE之间的连接。C. 在运行tftp server的PC机上,一定要有相应的路由器的IOS 映象文件,可以通过多种渠道和多种方式获得该文件。D. tftp server的地址可以随意定义,但必须与路由器定义的地址 在同一网段上。可以看到,以上两种方法都需要有IOS文件,如果没有备份原 文件的话,可以找个同一版本的IOS来替代Whe n you are old and grey

16、and full of sleep,And no ddi ng by the fire, take dow n this book,And slowly read, and dream of the soft lookYour eyes had once, and of their shadows deep;How many loved your mome nts of glad grace,And loved your beauty with love false or true,But one man loved the pilgrim soul in you,And loved the

17、sorrows of your cha nging face;And bending dow n beside the glow ing bars,Murmur, a little sadly, how love fledAnd paced upon the mountains overheadAnd hid his face amid a crowd of stars.The furthest dista nee in the worldIs not betwee n life and deathBut whe n I sta nd in front of youYet you dont know thatI love you.The furthest dista nee in the worldIs not whe n I sta nd in front of youYet you cant see my loveBut whe n un doubtedly knowing the love from bothYet cannot be together.The furthest dista nee in the worldIs not being apar

温馨提示

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

评论

0/150

提交评论