网管联盟 | 网管论坛 | 网管u家 | 网管博客 | 网管软件 | 网管求职 | 小游戏 | 网管搜索 | 网管原创 | 网管聚合 | 网管读摘 | 网管焦点 | 世界素材 | 会员投稿 | 会员中心 
中国网管联盟
Windows Linux Cisco 网络技术 数据库 黑客攻防 DotNet Java PHP 认证 新闻资讯 服务器 存储资讯 网络设备 网管学堂 技术专题 焦点 网吧频道
 当前位置: > bitsCN.com > CISCO > 路由技术 > IOS > 技术分析:Cisco设备IOS的两种恢复方法  

技术分析:Cisco设备IOS的两种恢复方法

2007-10-03  作者:bitsCN整理  来源:中国网管联盟  点评 投稿 收藏

  第一种方法:X-Modem

  曾经尝试过一种方法,就是当Flash被删除后,启动无法进入系统,可以用X-Modem来

网管u家u.bitscn@com

恢复它。当时我不小心删除了一台Cisco2950交换机的FlashIOS,导致系统无法启动,在查

中国网管联盟bitsCN.com

过不少资料后得到一个结论:唯一的方法通过X-Modem来恢复。我的恢复方法如下: 中国网管论坛bbs.bitsCN.com

  1、用控制线连接交换机console口与计算机串口1,用带有xmodem功能的终端软件连接 网管网www_bitscn_com

(win2000 and xp的超级终端就带这功能)。
  2、设置连接方式为串口1(如果连接的是其他串口就选择其他串口),速率9600,无

网管u家u.bitscn@com

校验,无流控,停止位1。或者点击默认设置也可以。
  3、连接以后计算机回车出现交换机无ios的界面,一般的提示符是:switch:
  4、拔掉交换机后的电源线重新启动交换机
  5、在超级终端输入: 网管bitscn_com

  switch:flash_init
  会出现如下提示:
  Initializing Flash... 网管论坛bbs_bitsCN_com

  6:输入拷贝指令:
  switch:copy xmodem: flash:image_filename.bin
  出现如下提示:
  Begin the Xmodem or Xmodem-1K transfer now...
  7、系统提示不断出现C这个字母就可以开始传文件了
  8、点击超级终端菜单:传送---发送文件,在协议选项中选择Xmodem或者Xmodem-1K协

中国网管联盟bitsCN.com

议,然后选择ios的影像文件(*.bin),开始传送。
  9、因为不能改速率,所以传送得很慢,我的大概传送了80分钟左右,请耐心等待。
  10、传送完毕后提示:
  File "xmodem:" successfully copied to ....
  switch:
  11、在提示符下输入
  switch:boot
  启用新的ios系统

网管联盟bitsCN_com

  12、重新加电完成恢复工作。
  这个是我恢复的方法,现在看来非常的不科学,效率低。后来看了别人同样用X-Modem 中国网管论坛bbs.bitsCN.com

恢复IOS,但是效率要高的方法:
  先打开超级终端,进入rommon 模式(Ctrl+Break组合键),键入confreg,如下:

网管网www.bitscn.com

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  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,用最大
  的115200速率的xmodem传输)
  change the boot characteristics? y/n [n]: n (选择 no)
  Configuration Summary 网管联盟bitsCN_com
  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 回车 中国网管联盟bitsCN.com

  【注意】在此时键入 reset键之前,开始定义串口速度(我的电脑---端口属性----串 网管u家u.bitscn@com

口速度调为115200),然后再修改超级终端里设置速率为115200,记住,一定这么做!否

网管bitscn_com

则出现乱码! 然后关闭这个超级终端,重新建立一个超级终端连接,(期间系统重新启动

中国网管论坛bbs.bitsCN.com

)启动后,出现rommon 1> 提示符然后,输入
  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镜像文件所在地

网管下载dl.bitscn.com

以及选择使用“xmodem”协议,点击“发送”即可然后等待10-20分钟左右就把3-6M的IOS 中国网管论坛bbs.bitsCN.com

灌进去了! 网管bitscn_com

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  (修改回计算机串口与超级终端、路由器confreg下的xmodem 等9600的
  传输速率)
  (videre注:实际用的时候,我发现这个命令总是改不成功,后来发现在line con 0 网管网www_bitscn_com

下面有了一个speed 115200,所以即使改register成功,启动以后router又执行speed

网管下载dl.bitscn.com

115200,还是不行,所以如果有这个问题,记得把这个语句no掉)
  Router>en 进入新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
  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 net in IP bcast address"? y/n [n]: n (选择 no)

网管下载dl.bitscn.com

  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,然后敲入rommon 2 >reset( 网管下载dl.bitscn.com

最好关电源)他的方法有两个地方和我的不一样,首先是他在启动后进入了rommon模式,其

网管联盟bitsCN@com

次是他修改了串口的速率,这样就比我快的多了。 网管论坛bbs_bitsCN_com

 

网管网www_bitscn_com

中国网管论坛bbs.bitsCN.com


TAGs   恢复   方法   设备   分析   技术   选择   y/n   no   文件   连接   >      
 上一篇:比较Cicsco CatOS 和Cisco IOS   下一篇:没有了
技术分析:Cisco设备IOS的两种恢复方法 评论:
loading.. 评论加载中…
评论:请自觉遵守互联网相关政策法规,评论不得超过250字。

验证码: 注册用户
本类热门排行:
最新推荐文章:
网管论坛交流: