本檔案將說明為什麼系統訊息「System returned to ROM by abort」或「System returned to ROM by trace trap」會顯示在show version指令的輸出中。本檔案也解釋為什麼啟動並執行的路由器可能返回ROMmon模式。
本文件沒有特定需求。
本文件所述內容不限於特定軟體和硬體版本。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路正在作用,請確保您已瞭解任何指令可能造成的影響。
如需文件慣例的詳細資訊,請參閱思科技術提示慣例。
除了硬體和軟體版本等資訊以外,show version指令的輸出也顯示有關如何重新啟動系統的資訊。例如,通過reload命令重新啟動的路由器會顯示消息「System returned to ROM by reload」 ,而通過電源重啟以重新啟動的路由器則顯示消息「System returned to ROM by power-on」。有時可能會看到以下消息:
Router uptime is 1 minute
System returned to ROM by abort at PC 0x8032A6EC
System image file is "flash:C2600-i-mz.122-10b.bin"
或
Router uptime is 2 minutes
System returned to ROM by trace trap at PC 0x32C2064
System image file is "flash:/c2500-js-l.122-10b"
「abort」或「trace trap」訊息的出現表示組態暫存器可能設定為可在正常操作中啟用break鍵的值。位元編號08(十六進位制: 0x0100)(如果已設置)將禁用Break鍵(即出廠預設值)。如果將其重設為0(顯式如0x2002所示,或隱式如0x2所示,相當於0x0002),Break鍵將被啟用。當Break鍵啟用時,Break序列會導致路由器進入ROMmon模式,即使路由器已經啟動並處於正常操作也是如此。即使沒有故意通過控制檯傳送中斷訊號,某些行為不當或重新載入的終端也可能意外地向路由器傳送與break序列類似的訊號。
如需不同組態暫存器值的詳細資訊,請參閱組態暫存器位元含義。
您可以在show version指令的結尾檢查組態暫存器的值:
Router#show version
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-JS-L), Version 12.2(10b), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Fri 12-Jul-02 02:13 by pwade
Image text-base: 0x0307AA24, data-base: 0x00001000
ROM: System Bootstrap, Version 11.0(10c), SOFTWARE
BOOTLDR: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)
R1 uptime is 9 minutes
System returned to ROM by trace trap at PC 0x32C2064
System image file is "flash:/c2500-js-l.122-10b"
cisco 2500 (68030) processor (revision F) with 16384K/2048K bytes of memory.
Processor board ID 04796554, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
SuperLAT software (copyright 1990 by Meridian Technology Corp).
TN3270 Emulation software.
Basic Rate ISDN software, Version 1.1.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read ONLY)
Configuration register is 0x2002
為防止路由器無意中恢復到ROMmon模式,請將配置暫存器更改為禁用Break鍵的值。為此,請將配置暫存器的第八位更改為1(最常用的值為0x2102)。
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#config-register 0x2102
Router(config)#^Z
00:20:13: %SYS-5-CONFIG_I: Configured from console by console
Router#show version
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-JS-L), Version 12.2(10b), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Fri 12-Jul-02 02:13 by pwade
Image text-base: 0x0307AA24, data-base: 0x00001000
ROM: System Bootstrap, Version 11.0(10c), SOFTWARE
BOOTLDR: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)
Router uptime is 20 minutes
System returned to ROM by trace trap at PC 0x32C2064
System image file is "flash:/c2500-js-l.122-10b"
cisco 2500 (68030) processor (revision F) with 16384K/2048K bytes of memory.
Processor board ID 04796554, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
SuperLAT software (copyright 1990 by Meridian Technology Corp).
TN3270 Emulation software.
Basic Rate ISDN software, Version 1.1.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read ONLY)
Configuration register is 0x2002 (will be 0x2102 at next reload)
使用配置暫存器集的第八位,系統受到保護,以防出現中斷訊號,否則可能導致路由器進入ROMmon模式。新的配置暫存器設定僅在下次重新載入時生效。請確保在禁用Break鍵之前安排此路由器的停機時間。
註:無論配置暫存器中第8位的狀態如何,在路由器重新載入或通電(啟動過程中)後的前60秒始終啟用Break鍵。如果透過組態暫存器停用或啟用Break金鑰,路由器只會在正常作業期間受到影響,而在開機順序期間不會受到影響。