本檔案介紹如果在TinyRom中阻塞(boot#提示符),如何復原Cisco 800系列路由器。
本文件沒有特定需求。
本文件所述內容不限於特定軟體和硬體版本。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路正在作用,請確保您已瞭解任何指令可能造成的影響。
如需文件慣例的詳細資訊,請參閱思科技術提示慣例。
首先,確定快閃記憶體中是否仍有有效的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
|
初始版本 |