思科Catalyst交换机密码恢复妙招
发布时间:2010-09-07 23:38:53 作者:佚名 我要评论
如果交换机的login密码忘记了咋办啊? 别急别急,只要你有PC,有类似超级终端(Hyper Terminal)这样是终端程序,连接到交换机的console口,那么密码的恢复就简单了。 1.对于Catalyst 2900/3500XL系列来说: 拔下交换机的电源线,然后按
如果交换机的login密码忘记了咋办啊?
别急别急,只要你有PC,有类似超级终端(Hyper Terminal)这样是终端程序,连接到交换机的console口,那么密码的恢复就简单了。
1.对于Catalyst 2900/3500XL系列来说:
拔下交换机的电源线,然后按住交换机的Mode按钮,再重新插上交换机的电源线.直到端口Port 1x的LED熄灭之后释放Mode按钮。
就这么简单,别告诉我你不知道Mode按钮在哪啊。
2.对于Catalyst 2940/2950L系列来说:
拔下交换机的电源线,然后按住交换机的Mode按钮,再重新插上交换机的电源线.直到STAT的LED熄灭之后释放Mode按钮。
3.对于Catalyst 2955系列来说:
Catalyst 2955没有没有外部的Mode按钮,因此就不能使用之前的那种方法来进行密码恢复.在交换机启动时,对于Windows系列的PC,按下Ctrl+Break键;对于UNIX系列的工作站,按下Ctrl+C.如下:
C2955 Boot Loader (C2955−HBOOT−M) Version 12.1(0.0.514), CISCO DEVELOPMENT TEST
VERSION
Compiled Fri 13−Dec−02 17:38 by madison
WS−C2955T−12 starting...
Base ethernet MAC Address: 00:0b:be:b6:ee:00
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 19 files, 2 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 4510720
flashfs[0]: Bytes available: 3230720
flashfs[0]: flashfs fsck took 7 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
/---接下来交换机会在15秒内自动启动,等出现该信息之后,按下Ctrl+Break键或Ctrl+C键----/
The system has been interrupted prior to initializing the flash file system to finish
loading the operating system software:
flash_init
load_helper
bootswitch:
接下来输入flash_init命令:
switch:flash_init
Initializing Flash...
flashfs[0]: 143 files, 4 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 2729472
flashfs[0]: Bytes available: 883200
flashfs[0]: flashfs fsck took 86 seconds
....done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch:
接着输入load_helper命令:
switch:load_helper
switch:
再输入dir flash:命令显示交换机的文件系统:
switch:dir flash:
Directory of flash:/
2 −rwx 1803357 c3500xl−c3h2s−mz.120−5.WC7.bin
4 −rwx 1131 config.text
5 −rwx 109 info
6 −rwx 389 env_vars
7 drwx 640 html
18 −rwx 109 info.ver
403968 bytes available (3208704 bytes used)
switch:
把配置文件重命名:
switch:rename flash:config.text flash:config.old
switch:
输入boot命令启动交换机:
switch:boot
Loading "flash:c3500xl−c3h2s−mz.120−5.WC7.bin"...###############################
################################################################################
######################################################################
File "flash:c3500xl−c3h2s−mz.120−5.WC7.bin" uncompressed and installed, entry po
int: 0x3000
executing...
(略)
不进入setup模式:
−−− System Configuration Dialog −−−
At any point you may enter a question mark '?' for help.
Use ctrl−c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.
Continue with configuration dialog? [yes/no]: n
进入特权模式,恢复原始的配置文件:
Switch#rename flash:config.old flash:config.text
Destination filename [config.text]
Switch#
把配置文件保存在内存里:
Switch#copy flash:config.text system:running−config
Destination filename [running−config]?
1131 bytes copied in 0.760 secs
Switch#
进入全局配置模式,取消密码设置:
Switch(config)#no enable secret
保存配置:
Switch#write memory
Building configuration...
[OK]
Switch#
搞定了@_@
4.对于Catalyst 3550/3750系列来说:
1.通过带有支持Xmodem协议的超级终端程序的PC连接到交换机的console口,把波特率设置为9600。
2.拔掉交换机的电源。
3.按下交换机上的Mode按钮,与此同时,重新插上交换机的电源线。当交换机端口1X上的LED熄灭后可以松开Mode按钮1到2秒,之后将显示一些指示信息:
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
switch#
4.初始化flash文件系统:
switch#flash_init
5.加载帮助文件:
switch#load_helper
6.显示闪存里的内容:
switch#dir flash:
7.重命名配置文件:
switch#rename flash:config.text flash:config.text.old
8.启动系统,并且如果提示进入setup模式,输入N:
switch#boot
Continue with the configuration dialog? [yes/no]: N
9.进入特权模式,把配置文件名恢复为原始文件名:
Switch#rename flash:config.text.old flash:config.text
10.把配置文件写进内存:
Switch#copy flash:config.text system:running-config
Source filename [config.text]?
Destination filename [running-config]?
11.进入全局配置模式更改密码:
Switch(config)#enable secret {password}
12.退出,并保存到startup-config文件里:
Switch(config)#copy running-config startup-config
其实有的时候硬件安全比软件安全还要重要些.不然人人都抗个本本,.连根线到console口去恢复密码了。
别急别急,只要你有PC,有类似超级终端(Hyper Terminal)这样是终端程序,连接到交换机的console口,那么密码的恢复就简单了。
1.对于Catalyst 2900/3500XL系列来说:
拔下交换机的电源线,然后按住交换机的Mode按钮,再重新插上交换机的电源线.直到端口Port 1x的LED熄灭之后释放Mode按钮。
就这么简单,别告诉我你不知道Mode按钮在哪啊。
2.对于Catalyst 2940/2950L系列来说:
拔下交换机的电源线,然后按住交换机的Mode按钮,再重新插上交换机的电源线.直到STAT的LED熄灭之后释放Mode按钮。
3.对于Catalyst 2955系列来说:
Catalyst 2955没有没有外部的Mode按钮,因此就不能使用之前的那种方法来进行密码恢复.在交换机启动时,对于Windows系列的PC,按下Ctrl+Break键;对于UNIX系列的工作站,按下Ctrl+C.如下:
C2955 Boot Loader (C2955−HBOOT−M) Version 12.1(0.0.514), CISCO DEVELOPMENT TEST
VERSION
Compiled Fri 13−Dec−02 17:38 by madison
WS−C2955T−12 starting...
Base ethernet MAC Address: 00:0b:be:b6:ee:00
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 19 files, 2 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 4510720
flashfs[0]: Bytes available: 3230720
flashfs[0]: flashfs fsck took 7 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
/---接下来交换机会在15秒内自动启动,等出现该信息之后,按下Ctrl+Break键或Ctrl+C键----/
The system has been interrupted prior to initializing the flash file system to finish
loading the operating system software:
flash_init
load_helper
bootswitch:
接下来输入flash_init命令:
switch:flash_init
Initializing Flash...
flashfs[0]: 143 files, 4 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 2729472
flashfs[0]: Bytes available: 883200
flashfs[0]: flashfs fsck took 86 seconds
....done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch:
接着输入load_helper命令:
switch:load_helper
switch:
再输入dir flash:命令显示交换机的文件系统:
switch:dir flash:
Directory of flash:/
2 −rwx 1803357 c3500xl−c3h2s−mz.120−5.WC7.bin
4 −rwx 1131 config.text
5 −rwx 109 info
6 −rwx 389 env_vars
7 drwx 640 html
18 −rwx 109 info.ver
403968 bytes available (3208704 bytes used)
switch:
把配置文件重命名:
switch:rename flash:config.text flash:config.old
switch:
输入boot命令启动交换机:
switch:boot
Loading "flash:c3500xl−c3h2s−mz.120−5.WC7.bin"...###############################
################################################################################
######################################################################
File "flash:c3500xl−c3h2s−mz.120−5.WC7.bin" uncompressed and installed, entry po
int: 0x3000
executing...
(略)
不进入setup模式:
−−− System Configuration Dialog −−−
At any point you may enter a question mark '?' for help.
Use ctrl−c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.
Continue with configuration dialog? [yes/no]: n
进入特权模式,恢复原始的配置文件:
Switch#rename flash:config.old flash:config.text
Destination filename [config.text]
Switch#
把配置文件保存在内存里:
Switch#copy flash:config.text system:running−config
Destination filename [running−config]?
1131 bytes copied in 0.760 secs
Switch#
进入全局配置模式,取消密码设置:
Switch(config)#no enable secret
保存配置:
Switch#write memory
Building configuration...
[OK]
Switch#
搞定了@_@
4.对于Catalyst 3550/3750系列来说:
1.通过带有支持Xmodem协议的超级终端程序的PC连接到交换机的console口,把波特率设置为9600。
2.拔掉交换机的电源。
3.按下交换机上的Mode按钮,与此同时,重新插上交换机的电源线。当交换机端口1X上的LED熄灭后可以松开Mode按钮1到2秒,之后将显示一些指示信息:
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
switch#
4.初始化flash文件系统:
switch#flash_init
5.加载帮助文件:
switch#load_helper
6.显示闪存里的内容:
switch#dir flash:
7.重命名配置文件:
switch#rename flash:config.text flash:config.text.old
8.启动系统,并且如果提示进入setup模式,输入N:
switch#boot
Continue with the configuration dialog? [yes/no]: N
9.进入特权模式,把配置文件名恢复为原始文件名:
Switch#rename flash:config.text.old flash:config.text
10.把配置文件写进内存:
Switch#copy flash:config.text system:running-config
Source filename [config.text]?
Destination filename [running-config]?
11.进入全局配置模式更改密码:
Switch(config)#enable secret {password}
12.退出,并保存到startup-config文件里:
Switch(config)#copy running-config startup-config
其实有的时候硬件安全比软件安全还要重要些.不然人人都抗个本本,.连根线到console口去恢复密码了。
相关文章
- KOOK开黑啦游戏卡顿画面掉帧如何解决?kook语音是专为游戏用户研发的一款在线语音交流软件,它能够帮助用户在打游戏的过程中与队友保持一个在线沟通的状态,下文中为大家带2024-06-13
- RayLink如何进行文件传输?远程控制软件是一种常见的工具,可以方便地在不同设备之间传输文件,在本文中将介绍如何使用远程控制软件来实现文件传输,需要的朋友快来看看吧2024-06-12
- RayLink无人值守怎么实现?RayLink 是一款专为视觉行业打造的高清、流畅远程控制软件,它支持跨平台操作,无论是Windows、Mac、Linux还是移动设备,都能轻松实现远程控制和2024-06-12
RayLink如何添加或删除设备 Raylink详细使用教程
RayLink如何添加或删除设备?RayLink是一款功能强大的远程控制管理软件,支持跨平台连接,让用户能够轻松控制电脑、手机等设备,下文中为大家带来了RayLink添加或删除设备的2024-06-12- RayLink如何用设备码发起远程协助?RayLink是一款专为视觉行业设计的高清、流畅远程控制软件,支持跨平台操作,下文中为大家带来了设备码发起远程协助的方法,需要的朋友快2024-06-12
- 抖音聊天电脑版怎么使用?抖音聊天PC端是一款好用的聊天软件,下文中为大家带来了抖音聊天创建群聊的方法,需要的朋友快来看看吧2024-06-12
rsync 免密方式远程同步文件时 password file must not be other-acces
今天做rsync远程同步时,为了从备份源站点中使用免密方式同步文件,但提示password file must not be other-accessible,原来默认的权限太高了,不能随意让别的用户访问2024-06-07- 微信保存的图片通常存储在微信的缓存文件夹中,具体位置可能因操作系统、微信版本等因素而异,以下是常见操作系统下微信图片缓存的位置2024-06-03
outlook邮箱已读邮件怎么显示未读? outlook点击不变已读的教程
outlook点击的邮件就会变成已读,想要继续显示未读状态,我们通过设置就可以实现,下面我们就来看看详细的设置教程2024-05-17outlook怎么增减pst文件大小? 减小邮箱和Outlook数据文件大小教程
发送和接收的电子邮件越多,Outlook 邮箱的增长就越大,收到邮箱超过其大小限制的邮件,如果将信息存储在 Outlook 数据文件 (.pst) 或脱机 Outlook 数据文件 (.ost) 中,该2024-05-17
最新评论