本產品的文件集力求使用無偏見用語。針對本文件集的目的,無偏見係定義為未根據年齡、身心障礙、性別、種族身分、民族身分、性別傾向、社會經濟地位及交織性表示歧視的用語。由於本產品軟體使用者介面中硬式編碼的語言、根據 RFP 文件使用的語言,或引用第三方產品的語言,因此本文件中可能會出現例外狀況。深入瞭解思科如何使用包容性用語。
思科已使用電腦和人工技術翻譯本文件,讓全世界的使用者能夠以自己的語言理解支援內容。請注意,即使是最佳機器翻譯,也不如專業譯者翻譯的內容準確。Cisco Systems, Inc. 對這些翻譯的準確度概不負責,並建議一律查看原始英文文件(提供連結)。
本檔案介紹如何在Cisco Connected Grid Router 2010(CGR 2010)上執行乙太網路交換器模組(ESM)的出廠重設或密碼復原。 此過程還可用於恢復軟體映像損壞的ESM模組。
作者:Sumedha Phatak和Duy Nguyen,思科TAC工程師。
本文件沒有特定需求。
本文中的資訊係根據以下軟體和硬體版本:
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路正在作用,請確保您已瞭解任何指令可能造成的影響。
要執行出廠重置,請對ESM模組進行密碼恢復,或恢復CGR 2010上軟體映像損壞的ESM模組。
附註:此過程需要通過控制檯直接連線到CGR 2010。
步驟1.通過控制檯直接連線到CGR 2010。
步驟2.發出命令service-module gix/x/x reload以重新載入ESM:
service-module gi0/0/0 reload
步驟3.在ESM模組啟動時,使用引腳按ESM模組上的Express Setup(ES)按鈕以中斷啟動順序。
步驟4.通過發出service-module gix/x/x session輸入ESM。
步驟5.進入交換器一次:提示,初始化快閃記憶體:發出flash_init。在步驟5.之後,請按照相應的部分操作。
步驟6.刪除config.text和vlan.dat檔案。
switch: delete flash:config.text switch: delete flash:vlan.dat
步驟7.載入系統映像並發出命令boot flash:<image-name>。
步驟8.使用x-modem可將新映像複製到ESM上。在ESM交換機上:提示,按enter鍵多次清除該行。
步驟9.按Control + Shift + 6 + X返回CGR 2010。清除ESM會話,以便成功傳輸xmodem。
service-module gigabitEthernet 0/0/0 session clear
步驟10.進入CGR後,使用copy命令copy flash:<file from CGR2010> xmodem:將新的ESM映像複製到xmodem。
cgr2010-ast03-lab#copy flash:test1 xmodem:test2 **** WARNING **** x/ymodem is a slow transfer protocol limited to the current speed settings of the auxiliary/console ports. The use of the auxiliary port for this download is strongly recommended. During the course of the download no exec input/output will be available. ---- ******* ---- Proceed? [confirm] Destination filename [test2]? Service Module slot number? [1]: 0 Service Module interface number? [0]: 1k buffer? [confirm] Max Retry Count [10]: 2 Xmodem send on slot 0 interface 0. Please be sure there is enough space on receiving side. Continue? [confirm] Ready to send file...........C!!! 3072 bytes copied in 24.596 secs (125 bytes/sec)
步驟11.將ESM映像複製到xmodem後:成功登入到ESM模組。
service-module gigabitEthernet 0/0/0 session
步驟12.在switch:在ESM上提示,使用boot命令載入適當的映像。
switch: boot flash:grwicdes-ipservicesk9-mz.152-5.E1.bin Loading flash:grwicdes-ipservicesk9-mz.152-5.E1.bin...######################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
#######################################################################################################################
File flash:grwicdes-ipservicesk9-mz.152-5.E1.bin uncompressed and installed, entry point: 0x1000000
executing...
步驟13.發出dir flash:指令。
Switch#dir flash: Directory of flash:/ 2 -rwx 3401 Jan 1 1970 00:08:20 +00:00 config.text.back 3 -rwx 24872960 Jan 1 1970 00:57:43 +00:00 grwicdes-ipservicesk9-mz.152-5.E1.bin 4 -rwx 3423 Jan 1 1970 00:27:29 +00:00 config.text.backup
步驟14.輸入rename flash:config.text flash:config.old以重新命名配置檔案。
switch: rename flash:config.text flash:config.old
步驟15.發出boot 指令。
switch: boot Loading flash:/grwicdes-ipservicesk9-mz.152-5.E1.bin...#####################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################################################################################
############################################################################################################# File flash:/grwicdes-ipservicesk9-mz.152-5.E1.bin uncompressed and installed, entry point: 0x1000000 executing...
步驟16.顯示提示時輸入n以中止初始組態對話方塊。
Enable secret warning ---------------------------------- In order to access the device manager, an enable secret is required If you enter the initial configuration dialog, you will be prompted for the enable secret If you choose not to enter the intial configuration dialog, or if you exit setup without setting the enable secret, please set an enable secret using the following CLI in configuration mode- enable secret 0 <cleartext password> ---------------------------------- Would you like to enter the initial configuration dialog? [yes/no]: no Copyright (c) 1986-2016 by Cisco Systems, Inc. Compiled Wed 23-Nov-16 02:30 by prod_rel_team *Mar 1 00:01:23.718: %SYS-5-CONFIG_I: Configured from console by console
步驟17.交換器顯示提示時,輸入en以進入啟用模式。
Switch>en Switch#
步驟 18.
輸入rename flash:config.old flash:config.text,將組態檔重新命名為其原始名稱。
Switch#rename flash:config.old flash:config.text
步驟19.將組態檔複製到記憶體中。
Switch#copy flash:config.text running-config
步驟20.覆寫目前的密碼。
步驟21.使用新密碼將當前配置複製到startup-config。
switch_austin#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK]