交換機密碼恢復

本實驗以WS-3550-48 SMI爲例,詳細描述對於2900xl/3500xl/2950/3550系列交換機的密碼恢復流程

一、將一臺終端或裝有超級終端軟件的PC接到交換機的console口上。終端參數設置如下:
速率:9600bps
校驗位:無
數據位:8
停止位:1
流控:無
二、撥掉電源
三、按住前面板的mode鍵不放,插上電源,等35秒後鬆開mode鍵。你會看到如下提示:

Interrupt within 5 seconds to abort boot process.

Boot process terminated.

The system is unable to boot automatically.  The BOOT

environment variable needs to be set to a bootable

p_w_picpath.

switch:

switch: ?

           ? -- Present list of available commands

        boot -- Load and boot an executable p_w_picpath

         cat -- Concatenate (type) file(s)

        copy -- Copy a file

      delete -- Delete file(s)

         dir -- List files in directories

  flash_init -- Initialize flash filesystem(s)

      format -- Format a filesystem

        fsck -- Check filesystem consistency

        help -- Present list of available commands

 load_helper -- Load and initialize a helper p_w_picpath

      memory -- Present memory heap utilization information

       mkdir -- Create dir(s)

        more -- Concatenate (display) file(s)

      rename -- Rename a file

       reset -- Reset the system

       rmdir -- Delete empty dir(s)

         set -- Set or display environment variables

   set_param -- Set system parameters in flash

       sleep -- Pause (sleep) for a specified number of seconds

        trap -- Cause a software breakpoint to occur

 -- MORE --

        type -- Concatenate (type) file(s)

       unset -- Unset one or more environment variables

四、輸入flash_init       //初始化flash文件系統
五、輸入load _helper   
六、輸入dir flash:
注意,不要少了flash後面的冒號,屏幕出現如下提示。
Directory of flash:/

3    -rwx  0         <date>               env_vars

4    -rwx  344       <date>               system_env_vars

5    -rwx  3624      <date>               config.text

6    -rwx  5         <date>               private-config.text

8    drwx  192       <date>               c3550-i9q3l2-mz.121-14.EA1a

86   -rwx  5         <date>               private-config.text.renamed

10243584 bytes available (5755392 bytes used)

七、輸入rename flash:config.text flash:config.old

switch: rename flash:config.text flash:config.old

八、輸入boot引導系統。

switch: boot

Loading "flash:c3550-i9q3l2-mz.121-14.EA1a/c3550-i9q3l2-mz.121-14.EA1a.bin"...##############################################################################################################################################################################################################################################################################################################################################################################################################

File "flash:c3550-i9q3l2-mz.121-14.EA1a/c3550-i9q3l2-mz.121-14.EA1a.bin" uncompressed and installed, entry point: 0x3000

executing...


九、當出現如下提示時,輸入N
Continue with the configuration dialog? [yes/no] : N
十、用en進入enable狀態,並將文件config.old改回config.text,命令如下:
rename flash:config.old flash:config.text
十一、將原配置裝入內存,命令如下:
switch# copy flash:config.text system:running-config
十二、修改密碼:
switch#conf t

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章