本文档介绍如何在阻塞于 TinyRom 中(boot# 提示符)的情况下来恢复 Cisco 800 系列路由器。
本文档没有任何特定的要求。
本文档不限于特定的软件和硬件版本。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。
有关文档规则的详细信息,请参阅 Cisco 技术提示规则。
首先,请确定闪存中是否仍然存在有效 Cisco IOS® 软件映像。
使用 list 命令来显示存储在闪存中的文件:
boot# boot# list Status Size Dev Name ------ 48K flash TinyROM-1.0(2) ------ 48K flash TinyROM-1.0(3) --Dr-x 2600K flash c800-y6-mw.120-5.T ---r-x 2863K flash c800-y6-mw.121-5 !--- Here it is 5184K free 8192K total boot#
如果映像的状态为“—r-x”。
如果不存在“x”,则说明该映像可能已损坏,需要将其删除。使用 delete [filename] 命令将其标记为已删除,并使用 erase 命令有效删除标记为已删除的所有文件。
如果存在“D”,则说明该映像已标记为已删除。可以使用 undelete [filename] 命令恢复已删除的映像。
注意:在第八次删除特定文件时,该文件将被永久删除,并且undelete [filename] 命令不再适用于该文件名。
下面的内容将讨论以下情况:
如果闪存中没有有效的 Cisco IOS 软件映像,那么您有四种不同的选择:
从 TFTP 服务器启动。您能够启动路由器,但是不会在闪存中安装有效的 Cisco IOS 软件映像。
如果您已从 TFTP 服务器启动,那么即使闪存中没有 Cisco IOS 软件映像,路由器现在也应该正常运行。
注意:如果路由器重新启动后未连接到TFTP服务器,您将再次进入TinyROM。
如果您已下载映像,则闪存中现在应存在有效的 Cisco IOS 软件映像,但是您仍必须引导它。为此,请按照闪存中有效的 Cisco IOS 软件映像部分中的过程进行操作。
如果闪存中存在有效的 Cisco IOS 软件映像,那么您只需将变量 boot-action、file-name 和 ios-conf 设置为正确的值,如下所示:
boot# set boot-action=? ----------------------------------------------------------------- set boot-action ={flash|tftp|none} Default boot action to take on power up: flash => run file-name from flash. tftp => tftp file-name (script or image) into RAM, then run it. none => enter CLI and wait for commands from user ----------------------------------------------------------------- boot# set boot-action=flash boot# set file-name=c800-y6-mw.121-5 !--- Or, whatever is your valid Cisco IOS Software image filename. boot# set ios-conf=0x2102
保存新值,然后使用 boot 命令启动路由器。
boot# save save: succeeded (0 seconds). boot# boot# boot Booting "c800-y6-mw.121-5" ..., 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
版本 | 发布日期 | 备注 |
---|---|---|
1.0 |
14-Dec-2001
|
初始版本 |