本產品的文件集力求使用無偏見用語。針對本文件集的目的,無偏見係定義為未根據年齡、身心障礙、性別、種族身分、民族身分、性別傾向、社會經濟地位及交織性表示歧視的用語。由於本產品軟體使用者介面中硬式編碼的語言、根據 RFP 文件使用的語言,或引用第三方產品的語言,因此本文件中可能會出現例外狀況。深入瞭解思科如何使用包容性用語。
思科已使用電腦和人工技術翻譯本文件,讓全世界的使用者能夠以自己的語言理解支援內容。請注意,即使是最佳機器翻譯,也不如專業譯者翻譯的內容準確。Cisco Systems, Inc. 對這些翻譯的準確度概不負責,並建議一律查看原始英文文件(提供連結)。
本文說明如何將Cisco Catalyst 6500/6000系列交換器從損毀或遺失開機載入器中復原。
思科建議您瞭解以下主題:
SP(管理引擎) — 這是系統的交換機元件。
RP(路由處理器)MSFC — 這是系統的路由器元件。
Cisco IOS®軟體— c6sup-xx映像
本檔案假設您的系統在刪除開機載入器映像或映像損毀前已執行Cisco IOS軟體映像。
本檔案所述內容不限於特定軟體版本。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
如需文件慣例的詳細資訊,請參閱思科技術提示慣例。
註:您可以使用TFTP/FTP將軟體映像檔案從PC傳輸到您的裝置。本檔案會使用Cisco TFTP/FTP伺服器應用程式的輸出。思科已終止此應用程式並且不再支援它。如果您沒有TFTP/FTP伺服器,請從其他來源獲取任何第三方TFTP伺服器應用程式。
本節提供執行CatOS/Cisco IOS軟體或Cisco IOS軟體/CatOS轉換時要瞭解的重要資訊和術語。
CatOS系統軟體 - Catalyst 6500/6000 CatOS軟體是在Supervisor Engine上執行的映像,用來處理所有第2層(L2)交換器功能。在Supervisor Engine上執行的映像稱為CatOS。
Cisco IOS系統軟體 - Catalyst 6500/6000系列交換機上的Cisco IOS軟體是運行Catalyst 6500/6000系列交換機的單個Cisco IOS映像。Supervisor Engine和MSFC都運行單個捆綁的Cisco IOS映像。
CatOS 系統軟體:
若是CatOS,Supervisor Engine上的CatOS映像以cat6000* 開始,而MSFC上的Cisco IOS映像以c6msfc*開始。Supervisor Engine和MSFC上使用的映像的範例如下:
cat6000-sup.6-1-1b.bin 是Catalyst 6500/6000 Supervisor Engine CatOS映像,版本6.1(1b)。
c6msfc-boot-mz.121-4.E1是Catalyst 6500/6000 MSFC啟動映像(Cisco IOS軟體版本12.1(4)E1)。
c6msfc-ds-mz.121-4.E1是Catalyst 6500/6000 MSFC映像(Cisco IOS軟體版本12.1(4)E1)。
c6msfc2-jsv-mz.121-4.E1是Catalyst 6500/6000 MSFC2映像(Cisco IOS軟體版本12.1(4)E1)。
Cisco IOS® 系統軟體:
對於Cisco IOS軟體,軟體中心中列出了四種類型映像。隨著MSFC2和Supervisor引擎2的發佈,必須更改命名以指示可支援的代碼。
c6supxy表示可在其上運行的Supervisor Engine/MSFC組合,其中x是Supervisor Engine,而y表示MSFC。
c6sup — 這是Cisco IOS映像的原始名稱。它運行在Supervisor引擎1 MSFC1上。
c6sup11 - Supervisor引擎1,MSFC1
c6sup12 - Supervisor引擎1,MSFC2
c6sup22 — 管理引擎2,MSFC2
以下是幾個範例:
c6sup-is-mz.120-7.XE1是Catalyst 6500/6000 Supervisor Engine Cisco IOS映像(搭載Supervisor Engine 1/MSFC1),Cisco IOS軟體版本12.0(7)XE1。
c6sup11-is-mz.121-4.E1是Catalyst 6500/6000 Supervisor Engine Cisco IOS映像(含Supervisor Engine 1/MSFC1),Cisco IOS軟體版本12.1(4)E1。
c6sup12-is-mz.121-4.E1是Catalyst 6500/6000 Supervisor Engine Cisco IOS映像(含Supervisor Engine 1/MSFC2),Cisco IOS軟體版本12.1(4)E1。
c6sup22-psv-mz.121-5c.EX是Catalyst 6500/6000 Supervisor Engine Cisco IOS映像(含Supervisor Engine 2/MSFC2),Cisco IOS軟體版本12.1(5c)EX。
注意:您可以從軟體中心的交換機軟體和Cisco IOS軟體部分找到並下載所有這些映像,以及完整的其他映像清單。
執行Cisco IOS軟體的Catalyst 6500/6000交換器有兩個開機快閃記憶體區域。Supervisor Engine(SP)上的引導快閃記憶體區域保留Cisco IOS映像,MSFC(RP)的區域保留引導載入程式映像。若要在Catalyst 6500/6000上執行Cisco IOS軟體,需要同時安裝兩個映像。
註意:運行Cisco IOS軟體時,MSFC2不需要MSFC2引導快閃記憶體裝置中的引導載入程式映像(c6msfc*-boot)才能成功引導。但是,如果您決定恢復到CatOS軟體,請將引導載入器映像保留在RP引導快閃記憶體中。根據ROMmon版本,引導載入程式映像包 show version
命令輸出清單是實際的引導載入程式或引導映像(根據 bootldr
變數。
如果啟動載入器映像已損壞或已從MSFC1(RP)啟動快閃記憶體中刪除,則下次重新載入會導致交換機進入RP ROMmon。這時,無法啟動交換器以在其上執行Cisco IOS軟體。
註:如果RP以前在引導快閃記憶體上具有MSFC引導映像(c6msfc-xx),則Catalyst 6500/6000可以一直引導到路由器提示(Router >)。但是,這一次RP運行的是舊的MSFC映像(c6msfc-xx),而不是Cisco IOS映像。如果您希望Catalyst 6500/6000成功運行Cisco IOS映像,則必須執行本文檔提供的引導快閃記憶體恢復過程。「恢復過程」部分提供此過程。如果要驗證RP是運行Cisco IOS映像還是運行舊的MSFC映像,請發出 show version
命令。對於本文檔,請考慮MSFC在其開機快閃記憶體中沒有舊的MSFC開機映像。
由於以下任何原因,交換機可能會進入連續引導環路或ROMmon模式:
未正確設定開機變數以從有效軟體映像開機交換器。
配置暫存器設定不正確。
快閃記憶體中的軟體映像遺失或損毀,或存在軟體升級失敗。
風扇托架安裝不正確或不相容管理引擎- C6KENV-2-FANUPGREQ。
系統會顯示類似以下的錯誤消息:
00:01:56: %C6KENV-SP-2-FANUPGREQ: Module 5 not supported without fan upgrade 00:01:56: %C6KENV-SP-2-SHUTDOWN_SCHEDULED: shutdown for module 5 scheduled in 300 seconds.
此問題可能是以下任何一種情況導致的:
安裝Supervisor引擎和風扇托架時出現相容性問題。Supervisor可能需要高速風扇托架。
風扇托架安裝錯誤。
風扇托架損壞。
執行交換機恢復過程之前,請先解決風扇托架問題。根據問題的根本原因,完成以下步驟之一以解決問題:
升級系統風扇托架。
重新拔插風扇托架。
更換風扇托架。
有關運行Cisco IOS®軟體的Cisco Catalyst交換機上的Supervisor引擎和風扇托架相容性的詳細資訊,請參閱Cisco IOS版本12.2SX版本說明的風扇托架部分。
有關如何將Supervisor Engine從此問題中恢復的說明,請參閱本文檔的恢復過程部分。
如果您有MSFC1,則無法啟動交換機,並且丟失了駐留在RP引導快閃記憶體上的引導載入程式映像。您可以通過以下方式之一丟失映像:
下載過程中發生刪除或損壞。
檔案是以ASCII格式(而不是二進位制格式)通過FTP傳輸的。
本節提供如果您發現無法將RP從ROMmon中取出,要執行的當前恢復。
使用Xmodem過程將引導載入程式映像載入到RP引導快閃記憶體中。此過程要求在Supervisor Engine模組(SP)上運行Cisco IOS映像。
RP引導載入程式映像大約為1.8 MB,大約需要45分鐘才能載入。以下警告適用於Xmodem過程:
Xmodem過程不會將下載的映像儲存到MSFC引導快閃記憶體中。
Xmodem過程僅在MSFC中載入和運行引導載入程式並將其置於引導模式。
在啟動模式下,必須先格式化MSFC啟動快閃記憶體,然後才能將啟動載入器映像複製到其中。
必須將要載入的啟動載入器映像放在Supervisor引擎slot0(PC卡)中。
您只能從RP ROMmon執行此過程。如果由於某種原因而位於錯誤的ROMmon(SP ROMmon)並嘗試執行Xmodem,您將看到「不可執行」消息。
註:從這一點出發,本文檔使用斜體表示SP ROMmon,使用藍色文本表示RP ROMmon來區分SP和RP ROMmon提示。
如果Catalyst 6500/6000執行Cisco IOS映像,且引導載入程式映像已損壞或從MSFC1(RP)丟失,則下次重新載入時,交換機將進入RP ROMmon或SP ROMmon。這取決於Catalyst 6500/6000上的環境變數設定。
找出交換機所在的ROMmon。
此資訊非常重要,因為您只能從RP ROMmon執行恢復過程。為了做出判斷,請重新啟動交換機並檢視在交換機進入ROMmon之前出現的啟動消息。
如果在重新通電交換機後看到以下消息,您會知道Catalyst 6500/6000位於SP ROMmon中:
System Bootstrap, Version 5.3(1) Copyright (c) 1994-1999 by cisco Systems, Inc. c6k_sup1 processor with 65536 Kbytes of main memory !--- The System Bootstrap, Version 5.3(1) and c6k_sup1 processor
!--- keywords show that the switch is in the SP ROMmon. rommon 1 >
如果在重新通電交換機後看到以下消息,您會知道Catalyst 6500/6000位於RP ROMmon中:
boot: cannot determine first file name on device "bootflash:" System Bootstrap, Version 12.0(3)XE, RELEASE SOFTWARE Copyright (c) 1998 by cisco Systems, Inc. Cat6k-MSFC platform with 65536 Kbytes of main memory !--- The System Bootstrap, Version 12.0(3)XE and Cat6k-MSFC
!--- keywords show that the switch is in the RP ROMmon. rommon 1 >
如果發現交換機位於SP ROMmon中,請轉到步驟2。如果交換機位於RP ROMmon中,請轉到步驟3。
從SP ROMmon發出boot 命令。
該命令將交換機置於RP ROMmon中:
rommon 1 >boot Self decompressing the image : ################################################# !--- Output suppressed. boot: cannot determine first file name on device "bootflash:" System Bootstrap, Version 12.0(3)XE, RELEASE SOFTWARE Copyright (c) 1998 by cisco Systems, Inc. Cat6k-MSFC platform with 131072 Kbytes of main memory rommon 1 > !--- You are at the RP ROMmon.
您可以驗證啟動映像是否確實存在於啟動快閃記憶體上,以及MSFC上是否未設定或設定了BOOTLDR=變數。
發出此組命令以驗證:
rommon 1 >set PS1=rommon ! > CONFIG_FILE= ?=0 BOOTLDR=bootflash:c6msfc-boot-mz.121-4.E1 SLOTCACHE=cards; BOOT=sup-bootflash:c6sup11-jsv-mz.121-6.E,1; rommon 2 >dir bootflash: File size Checksum File name !--- Notice that there is no boot loader file
!--- present in the RP boot Flash. rommon 3 >
返回SP ROMmon,確保SP引導快閃記憶體或PC卡上存在Cisco IOS映像 (slot0)
.
記下映像的名稱,可在繼續恢復過程時使用該名稱。關閉並重新開啟交換機電源。如有必要,按中斷順序進入SP ROMmon。
註:在此過程的步驟1中,如果您發現交換機在重新通電後進入RP ROMmon,您必須按中斷順序進入SP ROMmon。請確保在SP將控制權轉移到RP之前按中斷順序。否則,交換機將再次返回到RP ROMmon。如果您發現交換機已進入SP ROMmon,則無需按中斷順序操作。只需將交換機重新通電。在此示例中,Break序列被命中以進入SP ROMmon:
rommon 4 > !--- The switch is power cycled and you start to see these messages: System Bootstrap, Version 5.3(1) Copyright (c) 1994-1999 by cisco Systems, Inc. c6k_sup1 processor with 65536 Kbytes of main memory !--- As soon as you as you see this message, !--- hit the break sequence. Refer to the
!--- Use Standard Break Key Sequence Combinations for Password Recovery
!--- document for a complete list of break keys on different devices. Autoboot executing command: "boot bootflash:c6sup11-jsv-mz.121-6.E" monitor: command "boot" aborted due to user interrupt Exit at the end of BOOT string rommon 1 > !--- You are at the SP ROMmon.
發出 dir bootflash:
命令和 dir slot0:
命令驗證SP或PC卡是否具有Cisco IOS映像。
此外,請確保啟動載入器映像存在於 slot0:
.繼續此過程時需要此啟動載入器映像。
rommon 1 >dir bootflash: File size Checksum File name 13465088 bytes (0xcd7600) 0x326c0628 c6sup11-jsv-mz.121-6.E rommon 2 >dir slot0: File size Checksum File name 1675428 bytes (0x1990a4) 0x58701c18 c6msfc-boot-mz.121-4.E1
注意:此時請記下映像的名稱,因為可以在繼續恢復過程時使用這些名稱。另請注意,在這種情況下,SP引導快閃記憶體上存在Cisco IOS映像。您必須看到以下兩者:
SP引導快閃記憶體或PC卡上的Cisco IOS映像
上的引導載入程式映像 slot0
:
注意:如果您沒有看到這兩個映像,請找到另一個能夠通過TFTP傳輸檔案或將這些映像複製到PC卡的平台。將這些映像複製到PC卡上。
發出 boot bootflash:cisco_ios_image
命令啟動SP。
交換器會傳回RP ROMmon:
rommon 3 >boot bootflash:c6sup11-jsv-mz.121-6.E !--- If you found the Cisco IOS image on the PC Card (slot0:),
!--- issue this command instead: !--- rommon 3 >boot slot0:c6sup11-jsv-mz.121-6.E Self decompressing the image : ################## !--- Output suppressed. ################################################# [OK] 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 Cisco Internetwork Operating System Software IOS (tm) c6sup1_sp Software (c6sup1_sp-SPV-M), Version 12.1(6)E, EARLY DEPLOYMENT RELEASE SOFTWARE (fc3) TAC Support: http://www.cisco.com/cgi-bin/ibld/view.pl?i=support Copyright (c) 1986-2001 by cisco Systems, Inc. Compiled Sat 17-Mar-01 00:52 by eaarmas Image text-base: 0x60020950, data-base: 0x605FC000 Start as Primary processor 00:00:03: %SYS-3-LOGGER_FLUSHING: System pausing to ensure console debugging output. !--- The SP transfers the control to the RP. 00:00:03: %OIR-6-CONSOLE: Changing console ownership to route processor System Bootstrap, Version 12.0(3)XE, RELEASE SOFTWARE Copyright (c) 1998 by cisco Systems, Inc. Cat6k-MSFC platform with 131072 Kbytes of main memory open(): Open Error = -9 loadprog: error - on file open open: failed to find and/or load the bootloader: "bootflash:c6msfc-boot-mz.121-4.E1" loadprog: error - on file open boot: cannot load "cisco2-Cat6k-MSFC" System Bootstrap, Version 12.0(3)XE, RELEASE SOFTWARE Copyright (c) 1998 by cisco Systems, Inc. Cat6k-MSFC platform with 131072 Kbytes of main memory boot: cannot determine first file name on device "bootflash:" System Bootstrap, Version 12.0(3)XE, RELEASE SOFTWARE Copyright (c) 1998 by cisco Systems, Inc. Cat6k-MSFC platform with 131072 Kbytes of main memory rommon 1 > !--- Now, the switch is back at RP ROMmon.
發出 xmodem
命令,以便在RP上下載啟動載入器映像。
Catalyst 6500/6000的預設主控台連線埠速度為每秒9600位元(bps)。如果以這種速度使用Xmodem協定,典型的引導載入程式映像傳輸可能需要45分鐘。如果使用Ymodem協定並將控制檯埠速度更改為38,400 bps,則可以顯著增加資料吞吐率。在此速度下,典型的啟動載入程式映像傳輸大約需要10分鐘。雖然增加控制檯埠速度可以大大加快映像傳輸速度,但此過程涉及幾個額外的步驟。該過程的此步驟介紹了這兩種方法,您可以選擇要使用的方法。
若要繼續,請選擇使用Xmodem以9600 bps傳輸引導載入程式映像,或使用Ymodem以38,400 bps傳輸引導載入程式映像。
使用Xmodem以9600 bps傳輸啟動載入器映像
確保您在PC上具有用於Xmodem傳輸的本地引導載入程式映像。發出 xmodem -s9600 -c
命令,以開始下載啟動載入器映像:
rommon 1 >xmodem -s9600 -c !--- The -s9600 option sets the speed
!--- while the -c option performs checksum. Do not start sending the image yet... Invoke this application for disaster recovery. Do you wish to continue? y/n [n]: y Note, if the console port is attached to a modem, both the console port and the modem must be operating at the same baud rate. Use console speed 9600 bps for download [confirm] !--- Press Enter. Download can be performed at 9600. Make sure your terminal emulator is set to this speed before sending file. Ready to receive file ... !--- As soon as you see the message "Ready to receive file",
!--- start to send the file from Microsoft HyperTerminal with the Xmodem
!--- protocol. Use these steps on the HyperTerminal in order to send
!--- the file: !--- 1) From the HyperTerminal menu bar, choose Transfer > Send File.
!--- This brings up a Send File window.
!--- 2) Click Browse in order to select the file.
!--- 3) Verify the protocol to be Xmodem.
!--- If it is something other than Xmodem, select Xmodem from the
!--- drop-down menu. !--- 4) Click Send.
!--- This starts the transfer of the file. Returning console speed to 9600. Please reset your terminal emulator to this speed... Download Complete! Self decompressing the image : ################### ################################################## ################################################## #################### [OK] 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 Cisco Internetwork Operating System Software IOS (TM) MSFC Software (C6MSFC-BOOT-M), Version 12.1(4)E1, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) Copyright (c) 1986-2000 by cisco Systems, Inc. Compiled Mon 13-Nov-00 17:23 by eaarmas Image text-base: 0x60008950, database: 0x603E0000 cisco Cat6k-MSFC (R5000) processor with 114688K/16384K bytes of memory. Processor board ID SAD0350047X R5000 CPU at 200Mhz, Implementation 35, Rev 2.1, 512KB L2 Cache Last reset from power-on X.25 software, Version 3.0.0. 123K bytes of non-volatile configuration memory. 4096K bytes of packet SRAM memory. 16384K bytes of Flash internal SIMM (Sector size 256K). Press RETURN to get started! 00:00:02: %SYS-5-RESTART: System restarted -- Cisco Internetwork Operating System Software IOS (TM) MS Router(boot)>
註:此過程最多可能需要35至45分鐘。此外,第一次Xmodem傳輸可能會失敗,並顯示以下錯誤消息:
"Error : compressed image checksum is incorrect 0xBAA10EAA Expected a checksum of 0x6F65EA12 *** System received a Software forced crash *** signal= 0x17, code= 0x5, context= 0x0 PC = 0x800080d4, Cause = 0x20, Status Reg = 0x3040d003"
請勿重置RP。發出 xmodem
再次發出指令,然後等待35到45分鐘。這次傳輸成功。
註:Xmodem下載不會將啟動載入程式映像複製到MSFC啟動快閃記憶體中。下載僅載入和解壓縮映像即可運行MSFC。您必須從Supervisor Engine複製開機載入程式映像 slot0
,進入MSFC引導快閃記憶體中。
註:完成Xmodem過程後,請繼續執行步驟8。
使用Ymodem以38,400 bps的速度傳輸啟動載入器映像
xmodem -y -s38400
命令,以開始下載啟動載入器映像:rommon 1 >xmodem -y -s38400 !--- The -y option selects the Ymodem protocol.
!--- The -s38400 option sets the speed*.* Do not start sending the image yet... Invoke this application for disaster recovery. Do you wish to continue? y/n [n]: y Note, if the console port is attached to a modem, both the console port and the modem must be operating at the same baud rate. Use console speed 38400 bps for download [confirm] !--- Press Enter. Download can be performed at 38400. Make sure your terminal emulator is set to this speed before sending file. Ready to receive file ... !--- As soon as you see the message "Ready to receive file",
!--- perform these steps on the HyperTerminal in order to send the file:
!--- 1) Click Disconnect.
!--- 2) Click Properties > Configure *.*
!--- 3) Choose 38400 from the drop-down menu in order to set the bps,
!--- and click OK in order to confirm.
!--- 4) Click Connect in order to reconnect at 38,400 bps.
!--- 5) Choose Transfer > Send File.
!--- This brings up a Send File window.
!--- 6) Click Browse in order to select the file.
!--- 7) Verify the protocol to be Ymodem.
!--- If it is something other than Ymodem, select Ymodem from
!--- the drop-down menu.
!--- 8) Click Send.
!--- This starts the transfer of the file. Returning console speed to 9600. Please reset your terminal emulator to this speed... !--- When the transfer is complete, you see "Returning console speed to
!--- 9600" and then "Please reset your terminal emulator to this speed..."
!--- 1) Click Disconnect in HyperTerminal.
!--- 2) Click Properties > Configure.
!--- 3) Choose 9600 from the drop-down menu,
!--- and click OK in order to confirm.
!--- 4) Click Connect in order to reconnect at 9600 bps.
!--- On the basis of the amount of time necessary in order
!--- to complete these steps and reconnect at 9600 bps,
!--- you either see the bootup or simply the Router(boot)> prompt. Download Complete! Self decompressing the image : ################### ################################################## ################################################## #################### [OK] 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 Cisco Internetwork Operating System Software IOS (TM) MSFC Software (C6MSFC-BOOT-M), Version 12.1(4)E1, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) Copyright (c) 1986-2000 by cisco Systems, Inc. Compiled Mon 13-Nov-00 17:23 by eaarmas Image text-base: 0x60008950, database: 0x603E0000 cisco Cat6k-MSFC (R5000) processor with 114688K/16384K bytes of memory. Processor board ID SAD0350047X R5000 CPU at 200Mhz, Implementation 35, Rev 2.1, 512KB L2 Cache Last reset from power-on X.25 software, Version 3.0.0. 123K bytes of non-volatile configuration memory. 4096K bytes of packet SRAM memory. 16384K bytes of Flash internal SIMM (Sector size 256K). Press RETURN to get started! 00:00:02: %SYS-5-RESTART: System restarted -- Cisco Internetwork Operating System Software IOS (TM) MS Router(boot)>
註:Ymodem下載不會將啟動載入程式映像複製到MSFC啟動快閃記憶體中。下載僅載入和解壓縮映像即可運行MSFC。您必須從Supervisor Engine複製開機載入程式映像 slot0:
到MSFC引導快閃記憶體中。
9.在將RP引導載入程式映像複製到它之前,請格式化RP引導快閃記憶體。
發出這組命令以格式化RP引導快閃記憶體:
Router(boot)>enable Router(boot)#format bootflash: Format operation may take a while. Continue? [confirm] !--- Press Enter. Format operation can destroy all data in "bootflash:". Continue? [confirm] !--- Press Enter. Formatting sector 1 Format of bootflash complete Router(boot)#dir bootflash: Directory of bootflash:/ No files in directory 15990784 bytes total (15990784 bytes free)
10.將c6msfc-boot映像從 slot0:
到RP引導快閃記憶體中。
註:此階段需要考慮兩個重要因素,如下所示:
其 copy
命令在引導模式下無法正常工作。
其 dir slot0:
命令和 dir sup-slot0:
在引導模式下無法識別命令。
如果嘗試發出這些命令,則會看到以下內容:
Router(boot)#dir slot0: % Invalid input detected at '^' marker. !--- You cannot look at the directory with the use of either
!--- one of these commands. You must know that
!--- the boot image is on the Flash card
!--- and know the name of the image in advance. Router(boot)#dir sup-slot0: %Error opening sup-slot0:/ (Invalid argument)
而是使用以下兩個命令之一來複製開機映像。使用的命令取決於軟體版本:
如果運行的版本低於c6msfc-boot-mz.121-12c.E2,則命令為 download
.
在version6msfc-boot-mz.121-12c.E2和更新版本中,命令名稱會更改。命令如下 emergency-download
.
註: download
命令和emergency-download命令是隱藏命令。您無法使用Tab鍵來完成這些配置,並且必須使用正確的命令語法才能將引導映像成功複製到RP引導快閃記憶體中。以下是正確的命令語法:
Router(boot)#download slot0: c6msfc-boot-mz.121-4.E1 bootflash:c6msfc-boot-mz.121-4.E1 !--- This command should be on one line. Attempt to download 'slot0:c6msfc-boot-mz.121-4.E1' ... okay Starting download of 'slot0:c6msfc-boot-mz.121-4.E1': 1675428 bytes!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Chksum: Verified! Writing image to bootflash:c6msfc-boot-mz.121-4.E1 !!!!!!!!!!!!!!!!!!!!!! CCCCCCCCCCCCCCCCCCCCCCCC %Download successful !--- Verify that the image is copied successfully. Router(boot)#dir bootflash: Directory of bootflash:/ 1 -rw- 1675428 Jan 01 2000 00:01:43 c6msfc-boot-mz.121-4.E1 15990784 bytes total (14315228 bytes free) Router(boot)#
11.啟動執行Cisco IOS軟體的交換器,並驗證以下專案:
配置暫存器設定為至少0x102。
正確設定了正確的引導變數。
發出此組命令,以設定和驗證開機變數:
Router(boot)#show bootvar BOOT variable = sup-bootflash:c6sup11-jsv-mz.121-6.E,1; CONFIG_FILE variable = BOOTLDR variable = bootflash:c6msfc-boot-mz.121-4.E1 Configuration register is 0x2102 Router(boot)#
請注意,在這種情況下,所有引導變數均已正確設定,且配置暫存器值已設定為0x2102。如果您發現引導變數未正確設定,請發出以下一組命令以更改引導變數和配置暫存器值:
Router(boot)#configure terminal Enter configuration commands, one per line. End with CNTL/Z. !--- Set the configuration register value. Router(boot)(config)#config-register 0x2102 !--- Set the boot variable. Router(boot)(config)#boot system flash sup-bootflash:c6sup11-jsv-mz.121-6.E !--- Set the boot loader variable. Router(boot)(config)#boot bootldr bootflash:c6msfc-boot-mz.121-4.E1 Router(boot)(config)#end Router(boot)# 00:01:53: %SYS-5-CONFIG_I: Configured from console by console !--- Save the configuration. Router(boot)#write memory Building configuration... [OK] !--- Verify the settings. Router(boot)#show bootvar BOOT variable = sup-bootflash:c6sup11-jsv-mz.121-6.E,1; CONFIG_FILE variable = BOOTLDR variable = bootflash:c6msfc-boot-mz.121-4.E1 Configuration register is 0x0 (can be 0x2102 at next reload) Router(boot)#
12.重新載入RP
RP附帶載入的Cisco IOS軟體:
Router(boot)#reload Proceed with reload? [confirm] 00:09:23: %SYS-5-RELOAD: Reload requested System Bootstrap, Version 12.0(3)XE, RELEASE SOFTWARE Copyright (c) 1998 by cisco Systems, Inc. Cat6k-MSFC platform with 131072 Kbytes of main memory Self decompressing the image : ############## ############################################# ############################################# ################################### [OK] Attempt to download 'sup-bootflash:c6sup11-jsv-mz.121-6.E' ... okay Starting download of 'sup-bootflash:c6sup11-jsv-mz.121-6.E': 8722810 bytes !!!!!!!!!!!!!!!!!!!!!!!!!! Chksum: Verified! Self decompressing the image : #################### !--- Output suppressed. ########################################## [OK] 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 Cisco Internetwork Operating System Software IOS (TM) c6sup1_rp Software (c6sup1_rp-JSV-M), Version 12.1(6)E, EARLY DEPLOYMENT RELEASE SOFTWARE (fc3) TAC Support: http://www.cisco.com/cgi-bin/ibld/view.pl?i=support Copyright (c) 1986-2001 by cisco Systems, Inc. Compiled Sat 17-Mar-01 00:14 by eaarmas Image text-base: 0x60020950, database: 0x6165E000 cisco Catalyst 6000 (R5000) processor with 114688K/16384K bytes of memory. Processor board ID SAD04281AF6 R5000 CPU at 200Mhz, Implementation 35, Rev 2.1, 512KB L2 Cache Last reset from power-on Bridging software. X.25 software, Version 3.0.0. SuperLAT software (copyright 1990 by Meridian Technology Corp). TN3270 Emulation software. 24 Ethernet/IEEE 802.3 interface(s) 1 Virtual Ethernet/IEEE 802.3 interface(s) 48 FastEthernet/IEEE 802.3 interface(s) 2 Gigabit Ethernet/IEEE 802.3 interface(s) 381K bytes of nonvolatile configuration memory. 4096K bytes of packet SRAM memory. 16384K bytes of Flash internal SIMM (Sector size 256K).. Press RETURN to get started! 00:00:03: %SYS-3-LOGGER_FLUSHED: System was paused for 00:00:00 to ensure console debugging output. 00:00:04: %C6KPWR-4-PSINSERTED: power supply inserted in slot 1. 00:00:04: %C6KPWR-4-PSOK: power supply 1 turned on. 00:47:01: %SYS-SP-5-RESTART: System restarted -- Cisco Internetwork Operating System Software IOS (TM) c6sup1_SP Software (c6sup1_sp-SPV-M), Version 12.1(6)E, EARLY DEPLOYMENT RELEASE SOFTWARE (fc3) TAC Support: http://www.cisco.com/cgi-bin/ibld/view.pl?i=support Copyright (c) 1986-2001 by cisco Systems, Inc. Compiled Sat 17-Mar-01 00:52 by eaarmas Cisco Internetwork Operating System Software IOS (TM) c6sup1_RP Software (c6sup1_rp-JSV-M), Version 12.1(6)E, EARLY DEPLOYMENT RELEASE SOFTWARE (fc3) TAC Support: http://www.cisco.com/cgi-bin/ibld/view.pl?i=support Router >
13.確認交換器執行的是Cisco IOS映像。
發出 show version
指令:
Router >show version Cisco Internetwork Operating System Software IOS (TM) c6sup1_RP Software (c6sup1_rp-JSV-M), Version 12.1(6)E, EARLY DEPLOYMEN T RELEASE SOFTWARE (fc3) TAC Support: http://www.cisco.com/cgi-bin/ibld/view.pl?i=support Copyright (c) 1986-2001 by cisco Systems, Inc. Compiled Sat 17-Mar-01 00:14 by eaarmas Image text-base: 0x60020950, database: 0x6165E000 ROM: System Bootstrap, Version 12.0(3)XE, RELEASE SOFTWARE BOOTFLASH: MSFC Software (C6MSFC-BOOT-M), Version 12.1(4)E1, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) Test uptime is 51 minutes System returned to ROM by reload (SP by power-on) System image file is "sup-bootflash:c6sup11-jsv-mz.121-6.E" cisco Catalyst 6000 (R5000) processor with 114688K/16384K bytes of memory. Processor board ID SAD04281AF6 R5000 CPU at 200Mhz, Implementation 35, Rev 2.1, 512KB L2 Cache Last reset from power-on Bridging software. X.25 software, Version 3.0.0. SuperLAT software (copyright 1990 by Meridian Technology Corp). --More--
確保RP和SP都設定為自動啟動。
14.發出此組命令,以檢查並變更開機變數(如果需要),使系統正常開機且開機時具有Cisco IOS映像:
註: remote
此步驟使用的命令在早期Cisco IOS軟體版本中受支援。在Cisco IOS軟體版本12.1(5c)EX和更新版本中,此命令格式已變更。在低於Cisco IOS軟體版本12.1(5c)EX的版本中,命令格式為 remote command command
. 在Cisco IOS軟體版本12.1(5c)EX和更新版本中,您可以使用命令格式 remote command switch command
.在復原過程中,請檢查交換器上使用的Cisco IOS軟體版本,並使用適當的命令格式。
Router >enable !--- Check the boot variables on the RP. Router#show bootvar BOOT variable = sup-bootflash:c6sup11-jsv-mz.121-6.E,1; CONFIG_FILE variable = BOOTLDR variable = bootflash:c6msfc-boot-mz.121-4.E1 Configuration register is 0x2102 !--- Check the boot variables on the SP. Router#remote command show bootvar !--- See the "Note" that is given at beginning of this step
!--- in order to use this command. Router-sp# BOOT variable = bootflash:c6sup11-jsv-mz.121-6.E,1; CONFIG_FILE variable = BOOTLDR variable does not exist Configuration register is 0x2102 Router#dir sup-bootflash: Directory of sup-bootflash:/ 1 -rw- 13465088 Jan 12 2000 22:39:01 c6sup11-jsv-mz.121-6.E 15990784 bytes total (2525568 bytes free) Router#dir bootflash: Directory of bootflash:/ 1 -rw- 1675428 Jan 01 2000 00:01:43 c6msfc-boot-mz.121-4.E1 15990784 bytes total (14315228 bytes free)
如果您檢視這些輸出,會注意到開機變數設定正確,且存在在Catalyst 6500/6000上搭載MSFC1的情況下執行Cisco IOS映像所需的所有檔案。
如果您發現RP或SP上的引導變數設定不正確,請發出此組命令以更正這些變數:
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. !--- Set the configuration register value. Router (config)#config-register 0x2102 !--- Set the boot variable. Router(config)#boot system flash sup-bootflash:c6sup11-jsv-mz.121-6.E !--- Set the boot loader variable. Router (config)#boot bootldr bootflash:c6msfc-boot-mz.121-4.E1 Router(config)#end Router# 00:01:53: %SYS-5-CONFIG_I: Configured from console by console !--- Save the configuration. Router#write memory Building configuration... [OK] !--- Verify the settings on the RP. Router#show bootvar BOOT variable = sup-bootflash:c6sup11-jsv-mz.121-6.E,1; CONFIG_FILE variable = BOOTLDR variable = bootflash:c6msfc-boot-mz.121-4.E1 Configuration register is 0x0 (can be 0x2102 at next reload) !--- Verify the settings on the SP. Router#remote command show bootvar !--- See the "Note" that is given at beginning of this
!--- step in order to use this command. Router-sp# BOOT variable = bootflash:c6sup11-jsv-mz.121-6.E,1; CONFIG_FILE variable = BOOTLDR variable does not exist Configuration register is 0x0 (can be 0x2102 at next reload)
15.重新載入路由器以檢視其是否正確啟動。
Router#reload Proceed with reload? [confirm] !--- Press Enter. !--- Output suppressed.
Supervisor Engine 720/MSFC3包含一些與先前版本不同的功能。這些變化包括:
MSFC3的Supervisor引擎720不需要啟動映像。引導MSFC3的基本功能嵌入ROMmon(包括TFTP功能)。您可以從以下任一選項啟動MSFC3映像:
bootflash
sup-disk0(disk0)
sup-disk1(disk1)
sup-bootflash
Supervisor Engine 720附帶有64 MB的Supervisor Engine bootflash和64 MB的MSFC bootflash。有兩個插槽可用於CompactFlash II型卡(disk0和disk1),它們可提供額外的儲存。
Supervisor Engine 720採用Policy Feature Card 3(PFC3),該卡配備高效能專用積體電路(ASIC)複合體,支援一系列基於硬體的功能。PFC3支援:
路由和橋接
Qos
組播資料包複製
此外,PFC3還會處理訪問控制清單(ACL)等安全策略。
Supervisor 720不支援Xmodem恢復過程。
MSFC3是Supervisor引擎720的組成部分。因此,在這些交換機中,它是非模組化的。
Supervisor Engine 720中的Cisco IOS映像顯示為s720xy 形式,其中xy 表示Supervisor Engine 720上的MSFC/PFC組合。x是MSFC版本,y是PFC版本。以下版本以粗體顯示:
s72033 - MSFC3、PFC3
以下是Supervisor Engine 720的Cisco IOS軟體命名慣例範例:
s72033-jk9s-mz.122-14.SX是Catalyst 6500 Supervisor Engine 720 Cisco IOS軟體版本12.2(14)SX映像(搭載Supervisor Engine 720/MSFC3/PFC3a)。
遇到以下任一情況時,無法啟動交換器:
Supervisor Engine開機快閃記憶體(sup-bootflash)中存在的Cisco IOS映像已刪除,或開機變數指定無效的位置。引導變數指定的位置可以包括:
bootflash
sup-disk0(disk0)
sup-disk1(disk1)
sup-bootflash
這裡,bootflash是指MSFC3引導快閃記憶體區域。但是在ROMmon模式中, dir bootflash:
命令是指sup-bootflash.在正常模式下,sup-bootflash指的是Supervisor引擎720內部快閃記憶體。sup-disk0和sup-disk1是指外部快閃記憶體PC卡(PCMCIA)。影象可以儲存在以上清單中的任何位置。
下載過程中發生刪除或損壞。
檔案是以ASCII格式(而不是二進位制格式)通過FTP傳輸的。
如果您發現無法將Supervisor Engine 720從ROMmon中取出,本節提供要執行的當前恢復。
假設重新載入後交換器使用以下輸出進入ROMmon模式:
!--- Output suppressed. System Bootstrap, Version 8.1(3) Copyright (c) 1994-2004 by cisco Systems, Inc. Cat6k-Sup720/SP processor with 1048576 Kbytes of main memory Autoboot: failed, BOOT string is empty rommon 1 >
交換機現在停滯在ROMmon模式。
註:在ROMmon模式下,術語「bootflash」指的是「sup-boot flash」。
如從丟失/損壞的Cisco IOS映像或ROMmon模式中恢復Supervisor Engine 720一節所述,Supervisor Engine 720不支援Xmodem恢復過程。
因此,請始終將映像的副本保留在disk0、disk1或MSFC引導快閃記憶體中。如果您在disk0或disk1上沒有任何複製,並且遇到映像丟失/損壞的問題,恢復的唯一方法就是從另一台交換機上複製快閃記憶體磁碟上的映像。
現在,回到場景。當處於ROMmon模式時,發出以下命令,以驗證引導快閃記憶體中是否存在有效的映像:
發出 dir bootflash:
指令。
rommon 1 >dir bootflash: File size Checksum File name !--- Notice that there is no file present in the boot Flash.
發出 dir disk0:
命令,以驗證 disk0
包含有效的映像。
註:請確保將此映像複製到快閃記憶體磁碟( disk0
或 disk1
)從另一個包含相同有效映像的交換機上獲取。若要進行複製,您可以移除快閃卡(表示為 disk0
或 disk1
),並將快閃記憶體卡插入另一台功能正常的交換機。然後,將映像從該交換器複製到此快閃卡中,並將快閃卡重新插入交換器。請提前妥善執行此步驟,以避免交換機停機。
rommon 13 >dir disk0: File size Checksum File name 45463592 bytes (0x104aecc) 0x9a2f0302 s720333-psv-mz.122-18.SXD7.bin !--- This output indicates that disk0 contains a valid copy of the image.
使用中提供的映像從ROMmon模式啟動交換機 disk0
.
發出以下命令:
rommon 2 >boot disk0:s72033-psv-mz.122-18.SXD7.bin !--- This is the name of the Cisco IOS image in disk0. Loading image, please wait ... Self decompressing the image : ################################################# ################################################################################ ################################################################################ ################################################################################ ####################### [OK] 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 Cisco Internetwork Operating System Software IOS (tm) s72033_sp Software (s72033_sp-PSV-M), Version 12.2(18)SXD7, RELEASE SOF TWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2005 by cisco Systems, Inc. Compiled Tue 13-Dec-05 21:47 by kellythw Image text-base: 0x4002100C, data-base: 0x40FD8000 00:00:03: %SYS-3-LOGGER_FLUSHING: System pausing to ensure console debugging out put. 00:00:03: %PFREDUN-6-ACTIVE: Initializing as ACTIVE processor 00:00:04: %SYS-3-LOGGER_FLUSHING: System pausing to ensure console debugging out put. 00:00:04: %SYS-3-LOGGER_FLUSHED: System was paused for 00:00:00 to ensure consol e debugging output. 00:00:04: %OIR-6-CONSOLE: Changing console ownership to route processor System Bootstrap, Version 12.2(17r)S2, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 2004 by cisco Systems, Inc. Cat6k-Sup720/RP platform with 1048576 Kbytes of main memory Download Start !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!! !--- Now the image is downloaded into the RP (MSFC3) boot Flash
!--- automatically. So now the console transfers to RP. Download Completed! Booting the image. Self decompressing the image : ################################################# ################################################################################ ########################### [OK] Restricted Rights Legend !--- Output suppressed. Cisco Internetwork Operating System Software IOS (tm) s72033_rp Software (s72033_rp-PSV-M), Version 12.2(18)SXD7, RELEASE SOF TWARE (fc1) !--- Output suppressed. 65536K bytes of Flash internal SIMM (Sector size 512K). Press RETURN to get started! !--- Output suppressed. 00:01:40: %OIR-SP-6-INSCARD: Card inserted in slot 5, interfaces are now online Cat6509>
現在,交換機處於RP模式。
在RP模式下,發出以下命令,以便將映像複製到sup-bootflash:
Cat6509>enable cat6509#copy disk0:s72033-psv-mz.122-18.SXD7.bin sup-bootflash: Destination filename [s72033-psv-mz.122-18.SXD7.bin]? Copy in progress...CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC !--- Output suppressed. 45463592 bytes copied in 322.160 secs (141121 bytes/sec) !--- The copy command moves the image that is present in
!--- disk0 into the sup-bootflash. Cat6509-E# cat
將引導變數設定為在下次重新載入後從sup-bootflash引導。
發出以下命令:
Cat6509-E#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Cat6509-E(config)#boot system sup-bootflash:s72033-psv-mz.122-18.SXD7.bin Cat6509-E(config)#exit !--- Now the boot variable is set to boot the image from sup-bootflash during the
!--- next reload. You can also specify the boot variable to boot from the
!--- disk0 itself. Cat6509-E#copy run start Destination filename [startup-config]? Building configuration... [OK] !--- Now the configuration is saved into NVRAM. Cat6509-E#reload Proceed with reload? [confirm]y 00:04:34: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Comm and. 00:04:37: %SYS-SP-3-LOGGER_FLUSHING: System pausing to ensure console debugging output. 00:04:37: %OIR-SP-6-CONSOLE: Changing console ownership to switch processor !--- Output suppressed. System Bootstrap, Version 8.1(3) Copyright (c) 1994-2004 by cisco Systems, Inc. Cat6k-Sup720/SP processor with 1048576 Kbytes of main memory !--- Output suppressed. Loading image, please wait ... Self decompressing the image : ################################################# ######################[OK] !--- This indicates that the switch boots properly. !--- Output suppressed. Press RETURN to get started! !--- Output suppressed. Cat6509-E>enable Cat6509-E#show boot BOOT variable = sup-bootflash:s72033-psv-mz.122-18.SXD7.bin,1 !--- This informs the device to search for the image from sup-bootflash for boot. CONFIG_FILE variable = BOOTLDR variable = Configuration register is 0x2102 Standby is not up.
註:您可以使用boot system命令設定多個引導變數。如果指定的啟動變數有效,交換機將根據您指定的啟動變數的順序嘗試啟動。
Supervisor Engine 32/MSFC2A與Supervisor Engine 720/MSFC3有許多相似之處。相似之處包括:
Supervisor Engine 32不需要MSFC中的單獨啟動載入器映像。
MSFC2A是Supervisor引擎32的組成部分。因此,在這些交換機中,它是非模組化的。
在恢復程式方面,Supervisor引擎32和Supervisor引擎720之間也存在一些差異。這些變化包括:
Supervisor引擎32支援Xmodem恢復過程。
Supervisor引擎32中存在的映像稱為「sup-bootdisk」。在Supervisor Engine 720中,映像稱為「sup-bootflash」。
Supervisor引擎32僅支援單個外部CompactFlash slot (disk0)
. 內部CompactFlash記憶體的預設大小為64 MB。
Supervisor Engine 32 Cisco IOS映像在主控台上以s32xy 格式顯示,其中xy 表示Supervisor Engine 32上的MSFC/PFC組合。x是MSFC版本,y是PFC版本。
以下是Supervisor Engine 32的Cisco IOS軟體命名慣例範例:
s3223-ipbasek9_wan-mz.122-18.SXF是Catalyst 6500 Supervisor Engine 32 Cisco IOS軟體版本12.2(18)SXF映像(搭載Supervisor Engine 32/MSFC2A/PFC3B)。
導致基於Supervisor Engine 720的交換機進入ROMmon模式的環境同樣適用於基於Supervisor Engine 32的交換機。有關詳細資訊,請參閱本文檔的Supervisor 720恢復過程部分。
假設重新載入後,交換器現在停滯在ROMmon模式,並在主控台顯示以下提示符:
rommon 1 >
完成以下步驟即可進行疑難排解:
發出此命令,以確定啟動盤中是否有有效的映像可用:
註:ROMmon模式下的bootdisk指的是sup-bootdisk。同樣,對於Supervisor Engine 720,bootflash(在ROMmon模式下)指的是sup-bootflash。請參見Supervisor 720恢復過程部分。
rommon 2 >dir bootdisk: File size Checksum File name !--- Notice that there is no image present in the boot disk.
確保交換機的disk0中有有效的Cisco IOS映像,以便該映像可用於從ROMmon模式啟動,以進行進一步的故障排除。
如果disk0中沒有有效的Cisco IOS映像,請使用使用Xmodem的啟動載入器恢復過程將映像移動到此交換機的disk0上。
當disk0上有有效的映像時,發出以下命令以驗證:
rommon 3 >dir disk0: Initializing ATA monitor library... Directory of disk0: 2 45302724 -rw- s3223-ipbase_wan-mz.122-18.SXF4.bin !--- This indicates that a valid Cisco IOS image is available on disk0.
發出以下命令:
rommon 4 >boot disk0:s3223-ipbase_wan-mz.122-18.SXF4.bin !--- Boot the device with the image in disk0. Initializing ATA monitor library... Self extracting the image... [OK] Self decompressing the image : ##################################################### ########################################### [OK] !--- Output suppressed. Press RETURN to get started! !--- This indicates that the switch has moved into the RP mode properly. !--- Output suppressed. 6500>enable 6509#configure terminal Enter configuration commands, one per line. End with CNTL/Z.
在6509>提示下,執行以下復原程式:
6509>enable 6500#dir disk0: Directory of disk0:/ 1 -rw- 45302724 Apr 7 2006 03:56:18 +00:00 s3223-ipbase_wan-mz.122-18. SXF4.bin 64233472 bytes total (18927616 bytes free) 6509#dir sup-bootdisk: Directory of sup-bootdisk:/ No files in directory !--- This indicates that there is no file in sup-bootflash. 255938560 bytes total (255938560 bytes free)
發出此命令,以複製上的映像 disk0
到bootdisk:
6509#copy disk0:s3223-ipbase_wan-mz.122-18.SXF4.bin sup-bootdisk: Destination filename [s3223-ipbase_wan-mz.122-18.SXF4.bin]? y Copy in progress...CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC !--- Output suppressed. 45302724 bytes copied in 115.432 secs (392462 bytes/sec) !--- The image is copied into sup-bootdisk. 6509#copy run start !--- Save the configuration into NVRAM. Destination filename [startup-config]? Building configuration... [OK]
發出how bootcommand以驗證是否已設定任何啟動變數。
6509#show boot BOOT variable = !--- No boot variable is set. CONFIG_FILE variable does not exist BOOTLDR variable = Configuration register is 0x2102 Standby is not present.
指定啟動變數以使交換機能夠從中查詢有效的Cisco IOS映像 disk0
或sup-bootdisk。
在此情境中,指定開機變數以指向中的映像 disk0
</strong。以下是程式:
6509(config)#boot system disk0:s3223-ipbase_wan-mz.122-18.SXF4.bin 6509(config)#exit 6509#copy run start Destination filename [startup-config]? Building configuration... [OK]
重新載入交換器。
6509#reload !--- Output suppressed. Autoboot executing command: "boot disk0:s3223-ipbase_wan-mz.122-18.SXF4.bin. !--- The switch boots from the location that the boot system command specifies. elf decompressing the image : ########################## !--- Output suppressed. [OK] !--- Output suppressed. Press RETURN to get started! !--- This indicates that the image is successfully loaded from disk0. 6509>enable 6509#dir sup-bootdisk: Directory of sup-bootdisk:/ 1 -rw- 45302724 Apr 10 2006 04:27:24 +00:00 y !--- This indicates that a valid Cisco IOS image is now available in !--- sup-bootdisk. !--- You can also check the boot variable in this way: 6509#show boot BOOT variable = disk0:s3223-ipbase_wan-mz.122-18.SXF4.bin,12; CONFIG_FILE variable does not exist BOOTLDR variable = Configuration register is 0x2102
修訂 | 發佈日期 | 意見 |
---|---|---|
2.0 |
28-Mar-2023 |
已更新格式。已更正CCW警報。重新認證。 |
1.0 |
03-Jan-2002 |
初始版本 |