cisco3750-12G 交换机密码恢复步骤
 
       23号哪天晚上,当我配制好cisco 3750交换机后,心情一阵轻松,想着给交换机加个密码吧,边说边干,谁知道,手太快了,就回车了,当我退出时,才想起登陆密码的事,开始着急登陆,结果悲哀,死活进不去了
 
      一会领导要来测试东区网络,我那个急呀,幸亏知道步骤,可没有测试过,现总结如下
故,告诉那些辛苦的兄弟们,以后牵涉到密码和配制,千万要留档,不然,掏力不出好呀!
      
        1、给交换机断电
  
  2、用计算机超级终端登陆:9600-8-n-1 无流控制  
  3、按住交换机前面板的“mode”突起按钮,然后给设备供电,当千兆口1上面的灯不亮后,松掉“mode”突起按钮
  
  4、这时计算机超级终端上显示:
  The system has been interrupted prior to initializing the flash file system.
  The following commands will initialize the flash file system, and finish loading
  the operating system software:
  flash_init
  load_helper
  boot
  
  5、flash_init 敲入
  
  6、load_helper 敲入
  
  7. 输入dir flash:
  这时显示:
  Directory of flash:
  2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-h-mz-112.8-SA
  4 drwx 3776 Mar 01 1993 01:23:24 html
  66 -rwx 130 Jan 01 1970 00:01:19 env_vars
  68 -rwx 1296 Mar 01 1993 06:55:51 config.text
  1728000 bytes total (456704 bytes free)
  
  8、输入rename flash:config.text flash:config.old
  
  9、敲入boot,重启动交换机
  
  10、交换机启动完后显示:Continue with the configuration dialog? [yes/no] :
  输入N
  
  11、输入enable
  
  12、进入enable模式后,输入rename flash:config.old flash:config.text
  
  13、接着按以下步骤操作:以下命令不要简写
  
  Switch# copy flash:config.text system:running-config
  Source filename [config.text]? (press Return)
  Destination filename [running-config]? (press Return)
  14 。接着按以下步骤操作:
  switch#configure t
  switch(config)#no ena secret (去掉超级管理密码)
        switch(config)#ena secret cisco (重设置密码为cisco)
  switch(config)#no ena password (如果有的话则去掉了)
  switch(config)#exit
  switch#write mem
        switch#copy running-config staring-config