cisco2960恢复出厂设置
- 格式:docx
- 大小:184.42 KB
- 文档页数:7
Cisco 2960交换机密码恢复
目录
Cisco 2960交换机密码恢复 .......................................................... 1
一、 准备工具 ............................................................ 2
二、 交换机两种密码恢复 ...................................................... 3
2.1知道交换机密码恢复出厂设置 ........................................... 3
2.2不知道交换机密码恢复出厂设置 ......................................... 3 、准备工具
串口线,串口・USB线
USB 一端接电脑USB 口,另一端接交换机console 口: 确保电脑有串口端口(没有的需要安装usb-232驱动);
"2 GZIDC-PC
>••42 DVD/CD-ROM 驱般
> IDE ATA/ATAPI 担制器
> B处理器
> —瞬
(COM ?□ LPT) I
L-?T Prolific USB-to-Serial Comm Port (COM3) I
WHW — ------- 1
【竺每台电脑的串旦可能忝士榜 個其他潍 打痔人体溝入
「彳 芦音、视频和游戏控制器
i> a鼠^OM他指针诙
通用串行总邂制器 古计算机管理]本地)
,腿該工員
> ©矽计划聞
>闵剰牛襲器
t> fij共享文件夹
0曼本i蝴户和■徑冃1 国鯉莒理
t>去服勢和逾用程序 二、交换机两种密码恢复
2. 1知道交换机密码恢复出厂设置
SZswitch>enable
Password:
SZswitchstartup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] 按回车
[OK]
Erase of nvram: complete
SZswitch#
*Mar 1 00:48:40.342: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
SZswitch#reload
System configuration has been modified・ Save? [yes/no]: no
Proceed with reload? [confirm] hl| 车
Would you like to enter the initial configuration dialog? (yes/no]: no
Switch>e n
Switch#show run
Building configuration...
2. 2不知道交换机密码恢复出厂设置
Cisco交换机与路由器的密码恢复是不一样的,交换机没有电源开关(也就是说接上电源就 启动了),如何恢复,但又使配置文件不变呢? 使用secureCRT连接 E保存会话S 目在一个标签中打开on [ 连接」I 取消
实操:首先拔掉交换机电源.在把电源插进交换机,快速按交换机MODE键然后松开就进 入了
SWITCH模式了。
Switch:(这个就是SWITCH模式,安全模式)
Boot Sector Filesystem (bs) install&d., fsid: 2
Base ether net MAC Address: 6c: 99:89: d.d:8f :80
Xmodem file system is available.
The password-recovery mechanisjn is enabled・
Initializing: Flash・・・
flashfs[0]: filesystem check interrupted!
■・.done Initializing: Flash.
The system has been interruptedj or encoiantered an error during initializion of the
flash filesystem・ The following
cojniriands will initialize the flash filesystern., and finish
loading the operating systeni software:
f lash.init
boot
switch;
switch;
switch:
switch: flash」nit
Initializing Flash..・
flashfs(O): 538 files, 19 directories
flashfs(O): 0 orphaned files, 0 orphaned directories
flashfs(O): Total bytes: 32514048
flashfs(O): Bytes used: 10887680
flashfs(O): Bytes available: 21626368 丁启动时显示快速连接on 数振流控制 匚
DTR/DSRC) V
RTS/CTS (R.)
XOW/XOFFCX) flashfs(O): flashfs fsck took 11 seconds.
...done Initializing Flash.
switch: flash init
53S files r 19 directories
G orphaned files r G orphaned directories Total bytes: 32514048
Bytes used: 10887680
Bytes available: 21626368 flashfs fsck took 11 seconds.
...done Initializing Flash.
看看flash里而的文件: dir flash:
switch: dir flash:
Directory of flash:/
2 ・ rwx 616 vian .dal:
3 drwx 192 c2960-IsnbasiEZ ・ 122-50 .SE
555 ・「wx 5 private-config.text
556 -rwx 2072 multiple・fs
558 -rwx 3361 config ."text:
21626368 bytes available (10887680 bytes used)
交换所有的配宜以及密码都保存在config.text文档里,那么居然密码都保存在这个文档里, 启动时不加载这个文档就跳过了密码,所有更改该文件需即可,这样就可以直接进入交换机。
switch: rename flash:config.text flash:old-config.text
2 -rwx 616 vian.dat
3 drwx 192 C2960-lanb as e-mz.122- 50.SE
555 ・rwx 5 private-config ・ text
556 -rwx 2072 multiple-fs
558 -rwx 3361 config.text
21626368 bytes available (10887680 bytes used)
switch: rename flash:config ・text flash:old-config.text
在执行佗set然后重启交换机
switch: reset
Are you sure you want to reset the system (y/n)?y System resetting…
Boot Sector Filesystem (bs) installed, fsid: 2
Base ethernet MAC Address: 6c:99:89:dd:8f:80 Xmodem file system is available.
The password-recovery mechanism is enabled. Initializing Flash...
Would you like to enter the initial configuration dialog? [yes/no]: no Initializing Flash ・・・
flashfs[0]
■flashfs
[G]
flashfs[0]
flashfs[0]
flashfs[0]
flashfs[e] Enabl© secret earning
Tn order to access the device manager, an enable secret is required
If you enter the initial configuration dialog, you will be prompted for the enable secret if you choose
not to enter the intial configuration dialog, ar if you exit setup without settin< please set an enable
secret using the fallowing CLI in configuration mode- enable sec ret D ccleartext passwords
Would you like to enter the initial configuration dialog? [yes/no]:
% Please answer 'yes' or 'no'・
Would you like to wnter the inltial configuration dialog? (yes/no)j no^l Switch>|
然后再加载以前的配置 copy flash:old-config.text running-config
Switch#copy old-config.text 「unning-config Desti nat:丄 o n ti Lename L「unn ing ・ con
tig J ?
xMar 1 00:05:16・904: %SYS-6・CLOCKUPDATE: System clock has been updated 1 1993, configu「wd from console
by console., until 'password' is set
% Login disabled on line 16, until 1 password1 is set
3361 bytes copied in 2・197 secs (1530 bytes/sec) SZswitch#show wn