CCNA网络技术实验手册:交换机密码恢复

2019-07-14 03:30发布

 

  【实验环境】 Cisco catalyst 2950交换机 【实验目的】 练习忘记交换机特权模式密码后的恢复过程 【实验拓扑】 无,真机环境 【实验步骤】 1、切断交换机电源。 2、使用Console线连接PC与交换机,打开超级终端 3、接通交换机电源,按住交换机前面板的"MODE"键不放,直到超级终端上显示交换机进入"C2950 Boot Loader"模式 C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950-24 starting...
Base ethernet MAC Address: 00:1b:2a:47:54:00
Xmodem file system is available. The system has been interrupted prior to initializing the
flash filesystem.  The following commands will initialize
the flash filesystem, and finish loading the operating
system software: flash_init
load_helper
boot switch: 4、在提示符后输入"flash_init"初始化FLASH switch: flash_init
Initializing Flash...
flashfs[0]: 409 files, 5 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 4886528
flashfs[0]: Bytes available: 2854912
flashfs[0]: flashfs fsck took 7 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4 5、使用rename命令更名保存密码的文件,默认的密码保存文件为"config.text" switch: rename flash:config.text flash:slyar.com 6、使用boot命令重新启动交换机 switch: boot
Loading "flash:/c2950-i6q4l2-mz.121-22.EA8a.bin"...###### 7、等待一段时间后,即可正常使用交换机了 Press RETURN to get started!
Switch>en
Switch# 8、进入特权模式,恢复密码保存文件(配置信息也在里面) Switch#rename flash:slyar.com flash:config.text 9、恢复交换机配置信息 Switch#copy flash:config.text running-config
Destination filename [running-config]?
1709 bytes copied in 1.308 secs (1307 bytes/sec) 10、修改特权模式密码 Switch#conf t
Switch(config)#enable secret slyar
Switch(config)#end 11、保存配置信息 Switch#wr
Building configuration...
[OK]