此产品的文档集力求使用非歧视性语言。在本文档集中,非歧视性语言是指不隐含针对年龄、残障、性别、种族身份、族群身份、性取向、社会经济地位和交叉性的歧视的语言。由于产品软件的用户界面中使用的硬编码语言、基于 RFP 文档使用的语言或引用的第三方产品使用的语言,文档中可能无法确保完全使用非歧视性语言。 深入了解思科如何使用包容性语言。
思科采用人工翻译与机器翻译相结合的方式将此文档翻译成不同语言,希望全球的用户都能通过各自的语言得到支持性的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 Cisco Systems, Inc. 对于翻译的准确性不承担任何责任,并建议您总是参考英文原始文档(已提供链接)。
本文档介绍如何在Cisco Connected Grid Router 2010(CGR 2010)上执行以太网交换机模块(ESM)的出厂重置或口令恢复。 此过程还可用于恢复具有已损坏软件映像的ESM模块。
作者:Sumedha Phatak和Duy Nguyen,Cisco 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。清除xmodem的ESM会话以成功传输。
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.在交换机上:提示符,请使用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.使用新密码将当前配置复制到启动配置。
switch_austin#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK]