d8t74qb416 发表于 2016-6-5 10:22:58

Cisco 3500系列交换机密码恢复

  
1、拔掉交换机的电源线。
  2、用超级终端和控制线连到交换机,超级终端的设置是:
 
以下是引用片段:
  9600 baud rate 
  No parity 
  8 data bits 
  1 stop bit 
  No flow control  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? :
  输入N
  11、输入enable
  12、进入enable模式后,输入rename flash:config.old flash:config.text
  13、接着按以下步骤操作:
 
以下是引用片段:
  Switch# copy flash:config.text system:running-config 
  Source filename ? (press Return) 
  Destination filename ? (press Return)  14 、接着按以下步骤操作:
 
 
以下是引用片段:
  switch#configure terminal 
  switch(config)#no enable secret 
  switch(config)#no enable password 
  switch(config)#exit 
  switch#write memory  这时,系统就恢复没有密码的状态了。
  
  
  
  
  
  ################################################################
  1.先连接,打开securtCRT用serial登录
2.打开电源,在开机30秒内,按住交换机前面板左下方的MODE键
3.输入flash_init  à 开始初始化FLASH
4.执行dir flash:命令
5.执行rename flash:config.text flash:config.old命令,进行更名含有password的配置文件。
6.执行boot命令进入交换机特权模式       (到此只密码恢复)
7.在出现“would you like to enter the initial configuration dialog?”时,输入“no”
8.输入enable命令进入交换机特权模式,执行switch#rename flash:config.old   flash:config.text
9.执行copy flash:config.text   system:running-config,此命令是拷贝配置文件到当前系统中,就是恢复原来交换机配置
10.最后 WR 将配置写入,SHOW RUN ,没问题就RELOAD

  
页: [1]
查看完整版本: Cisco 3500系列交换机密码恢复