您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > Cisco-Catalyst交换机密码恢复策略
CiscoCatalyst交换机密码恢复策略如果交换机的login密码忘记了,别急别急,只要你有PC,有类似超级终端(HyperTerminal)这样是终端程序,连接到交换机的console口,那么密码的恢复就N简单了.1.对于Catalyst2900/3500XL系列来说:拔下交换机的电源线,然后按住交换机的Mode按钮,再重新插上交换机的电源线.直到端口Port1x的LED熄灭之后释放Mode按钮.就这么简单,别告诉我你不知道Mode按钮在哪啊-_-#2.对于Catalyst2940/2950L系列来说:拔下交换机的电源线,然后按住交换机的Mode按钮,再重新插上交换机的电源线.直到STAT的LED熄灭之后释放Mode按钮.3.对于Catalyst2955系列来说:Catalyst2955没有没有外部的Mode按钮,因此就不能使用之前的那种方法来进行密码恢复.在交换机启动时,对于Windows系列的PC,按下Ctrl+Break键;对于UNIX系列的工作站,按下Ctrl+C.如下:C2955BootLoader(C2955−HBOOT−M)Version12.1(0.0.514),CISCODEVELOPMENTTESTVERSIONCompiledFri13−Dec−0217:38bymadisonWS−C2955T−12starting...BaseethernetMACAddress:00:0b:be:b6:ee:00Xmodemfilesystemisavailable.InitializingFlash...flashfs[0]:19files,2directoriesflashfs[0]:0orphanedfiles,0orphaneddirectoriesflashfs[0]:Totalbytes:7741440flashfs[0]:Bytesused:4510720flashfs[0]:Bytesavailable:3230720flashfs[0]:flashfsfscktook7seconds....doneinitializingflash.BootSectorFilesystem(bs:)installed,fsid:3ParameterBlockFilesystem(pb:)installed,fsid:4/---接下来交换机会在15秒内自动启动,等出现该信息之后,按下Ctrl+Break键或Ctrl+C键----/Thesystemhasbeeninterruptedpriortoinitializingtheflashfilesystemtofinishloadingtheoperatingsystemsoftware:flash_initload_helperbootswitch:接下来输入flash_init命令:switch:flash_initInitializingFlash...flashfs[0]:143files,4directoriesflashfs[0]:0orphanedfiles,0orphaneddirectoriesflashfs[0]:Totalbytes:3612672flashfs[0]:Bytesused:2729472flashfs[0]:Bytesavailable:883200flashfs[0]:flashfsfscktook86seconds....doneInitializingFlash.BootSectorFilesystem(bs:)installed,fsid:3ParameterBlockFilesystem(pb:)installed,fsid:4switch:接着输入load_helper命令:switch:load_helperswitch:再输入dirflash:命令显示交换机的文件系统:switch:dirflash:Directoryofflash:/2−rwx1803357datec3500xl−c3h2s−mz.120−5.WC7.bin4−rwx1131dateconfig.text5−rwx109dateinfo6−rwx389dateenv_vars7drwx640datehtml18−rwx109dateinfo.ver403968bytesavailable(3208704bytesused)switch:把配置文件重命名:switch:renameflash:config.textflash:config.oldswitch:输入boot命令启动交换机:switch:bootLoadingflash:c3500xl−c3h2s−mz.120−5.WC7.bin...#####################################################################################################################################################################################Fileflash:c3500xl−c3h2s−mz.120−5.WC7.binuncompressedandinstalled,entrypoint:0x3000executing...(略)不进入setup模式:−−−SystemConfigurationDialog−−−Atanypointyoumayenteraquestionmark'?'forhelp.Usectrl−ctoabortconfigurationdialogatanyprompt.Defaultsettingsareinsquarebrackets'[]'.Continuewithconfigurationdialog?[yes/no]:n进入特权模式,恢复原始的配置文件:Switch#renameflash:config.oldflash:config.textDestinationfilename[config.text]Switch#把配置文件保存在内存里:Switch#copyflash:config.textsystem:running−configDestinationfilename[running−config]?1131bytescopiedin0.760secsSwitch#进入全局配置模式,取消密码设置:Switch(config)#noenablesecret保存配置:Switch#writememoryBuildingconfiguration...[OK]Switch#4.对于Catalyst3550/3750系列来说:1.通过带有支持Xmodem协议的超级终端程序的PC连接到交换机的console口,把波特率设置为9600.2.拔掉交换机的电源.3.按下交换机上的Mode按钮,与此同时,重新插上交换机的电源线.当交换机端口1X上的LED熄灭后可以松开Mode按钮1到2秒.之后将显示一些指示信息:Thesystemhasbeeninterruptedpriortoinitializingtheflashfilesystem.Thefollowingcommandswillinitializetheflashfilesystem,andfinishloadingtheoperatingsystemsoftware:flash_initload_helperbootswitch#4.初始化flash文件系统:switch#flash_init5.加载帮助文件:switch#load_helper6.显示闪存里的内容:switch#dirflash:7.重命名配置文件:switch#renameflash:config.textflash:config.text.old8.启动系统,并且如果提示进入setup模式,输入N:switch#bootContinuewiththeconfigurationdialog?[yes/no]:N9.进入特权模式,把配置文件名恢复为原始文件名:Switch#renameflash:config.text.oldflash:config.text10.把配置文件写进内存:Switch#copyflash:config.textsystem:running-configSourcefilename[config.text]?Destinationfilename[running-config]?11.进入全局配置模式更改密码:Switch(config)#enablesecret{password}12.退出,并保存到startup-config文件里:Switch(config)#copyrunning-configstartup-config
本文标题:Cisco-Catalyst交换机密码恢复策略
链接地址:https://www.777doc.com/doc-4251876 .html