新客网WWW.XKER.COM:致力做中国最专业的网络学院!
学院: 操作系统 - 网络应用 - 服务器 - 网络安全 - 工具软件 - 办公软件 - Web开发 - 数据库 - 网页设计 - 图形图像 - 媒体动画 - 硬件学堂 - 存储频道 - QQ专区
您的位置:首页 > 网络学院 > 网络应用 > 交换技术 > 正文:Cisco设备IOS的两种恢复方法

Cisco设备IOS的两种恢复方法

新客网 XKER.COM 2008-06-27 来源:新客网搜集整理 收藏本文

  第一种方法:X-Modem

  曾经尝试过一种方法,就是当Flash被删除后,启动无法进入系统,可以用X-Modem来恢复它。当时我不小心删除了一台Cisco2950交换机的FlashIOS,导致系统无法启动,在查过不少资料后得到一个结论:唯一的方法通过X-Modem来恢复。我的恢复方法如下:

  1、用控制线连接交换机console口与计算机串口1,用带有xmodem功能的终端软件连接(win2000 and xp的超级终端就带这功能)。

  2、设置连接方式为串口1(如果连接的是其他串口就选择其他串口),速率9600,无校验,无流控,停止位1。或者点击默认设置也可以。

  3、连接以后计算机回车出现交换机无ios的界面,一般的提示符是:switch:

  4、拔掉交换机后的电源线重新启动交换机

  5、在超级终端输入:

    switch:flash_init

    会出现如下提示:

    Initializing Flash...

  6:输入拷贝指令:

    switch:copy xmodem: flash:image_filename.bin

    出现如下提示:

    Begin the Xmodem or Xmodem-1K transfer now...

  7、系统提示不断出现C这个字母就可以开始传文件了

  8、点击超级终端菜单:传送---发送文件,在协议选项中选择Xmodem或者Xmodem-1K协议,然后选择ios的影像文件(*.bin),开始传送。

  9、因为不能改速率,所以传送得很慢,我的大概传送了80分钟左右,请耐心等待。

  10、传送完毕后提示:

    File "xmodem:" successfully copied to ....

    switch:

  11、在提示符下输入

    switch:boot

    启用新的ios系统

  12、重新加电完成恢复工作。

  这个是我恢复的方法,现在看来非常的不科学,效率低。后来看了别人同样用X-Modem

  恢复IOS,但是效率要高的方法:

  先打开超级终端,进入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 回车

共3页: 上一页 [1] [2] [3] 下一页
标签:Cisco   IOS  
收藏】 【评论】 【推荐】 【投稿】 【打印】 【关闭
发表评论
要记得去论坛讨论,点击注册新会员匿名评论
评论内容:不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
推荐阅读
阅读排行
随机推荐
实用信息推荐