设为首页收藏本站language 语言切换
查看: 1692|回复: 6
收起左侧

[原创] 实验4:交换机Cisco3550密码恢复

[复制链接]
发表于 2018-12-5 08:05:29 | 显示全部楼层 |阅读模式
实验4:交换机Cisco3550密码恢复
1.拨下交换机电源线.
2.按住交换机前面板MODE键的同时插上电源.
3.直到交换机前面板端口1的灯从绿色到不亮,松开MODE键.
4.这时配置端会出现:
Xmodem file system is available.
The password-recovery mechanism is enabled.

The system has been interrupted prior to initializing the flash filesystem.
The following commands will initialize the flash filesystem,and finish the operating system software:
flash_init


boot
初始化flash: switch:flash_init
Initializing Flash...
flashfs[0]: 18 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 15998976
flashfs[0]: Bytes used: 5088256
flashfs[0]: Bytes available: 10910720
flashfs[0]: flashfs fsck took 17 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
加载系统帮助文件: switch: load_helper
查看flash的文件有哪些: switch: dir flash:
Directory of flash:/

2    -rwx  736       <date>               vlan.dat
3    -rwx  342       <date>               system_env_vars
5    drwx  192       <date>               c3550-i5q3l2-mz.121-11.EA1
7    -rwx  0         <date>               env_vars
8    -rwx  2088      <date>               config.text
9    -rwx  47        <date>               private-config.text
10910720 bytes available (5088256 bytes used)
密码在config.text里面,重命名该文件后重启系统:
switch: rename flash:config.text flash:config.text1
switch: boot
Loading "flash:c3550-i5q3l2-mz.121-11.EA1/c3550-i5q3l2-mz.121-11 .EA1.bin"...
......
--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: no


Press RETURN to get started!
这时系统加载不到配置文件,所以不需要输入特权用户的密码.
Switch>enable
Switch#rename flash:config.text1 flash:config.text
Destination filename [config.text] y
Switch#copy flash:config.text system:running-config
Destination filename [running-config]?
2088 bytes copied in 1.112 secs (2088 bytes/sec)
Switch3550#config terminal
重设新密码 Switch3550(config)#enable secret cisco
Switch3550(config)#write mem
Switch3550(config)#end
Switch3550#reload

Q:为什么要初始化和加载系统帮助文件?

发表于 2019-1-1 15:39:58 | 显示全部楼层
感谢楼主分享。
板凳 2019-1-1 15:39:58 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2019-1-6 12:00:46 | 显示全部楼层
感谢楼主分享!
地板 2019-1-6 12:00:46 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-27 14:52 , Processed in 0.056282 second(s), 22 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表