设为首页 收藏本站
查看: 1153|回复: 0

[经验分享] Cisco FLASH 被误删后,用xmodem重新快速灌IOS

[复制链接]

尚未签到

发表于 2018-7-21 08:08:35 | 显示全部楼层 |阅读模式
  先打开超级终端,进入rommon 模式(Ctrl+Break组合键),键入confreg, 如下:
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  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
  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,记住,  一定这么做!否则出现乱码! 然后关闭这个超级终端,重新建立一个超级终端连接,(期间系统重新启动)启动后,出现
  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镜像文件所在地以及选择使用“xmodem”协议,点击“发送”即可
  然后等待10-20分钟左右就把3-6M的IOS灌进去了!
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  (修改回计算机串口与超级终端、路由器confreg下的xmodem等9600的传输速率)
  (注:实际用的时候,我发现这个命令总是改不成功,后来发现在line con 0下面有了一个speed   115200,所以即使改register成功,启动以后router又执行speed   115200,还是不行,所以如果有这个问题,记得把这个语句no掉)
  Router>en 进入新IOS的特权模式
  Router#reload 重启系统

  Proceed with>
  00:01:04: %SYS-5-RELOAD:>
  System Bootstrap, Version 11.3(2)XA4,>  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)
  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
  ( 最好关电源)

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-539360-1-1.html 上篇帖子: cisco交换机恢复密码 下篇帖子: CISCO路由器上使用 TCP intercept 防止DOS***
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表