2950系列交换机密码恢复过程
2950系列交换机密码恢复过程!
雨 发表于 2005-6-18 21:33:00 简介:本文详细描述了对于2900xl/3500xl/2950/3550系列交换机的enable密码恢复流程 一、将一台终端或装有超级终端软件的PC接到交换机的console口上。终端参数设置如下: 速率:9600bps 检较位:无 数据位:8 停止位:1 流控:无 二、拨掉电源 三、按住前面板的mode键不放,插上电源,等3-5秒后松开mode键。你会看到如下提示: 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 四、输入flash_init 五、输入load _helper 六、输入dir flash: 注意,不要少了flash后面的冒号,屏幕出现如下提示。 Directory of flash: 2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-c3h2s-mz-12.1-WC5.bin 4 drwx 3776 Mar 01 1993 01:23:24 html 66 -rwx 130 Jan 01 1970 00:01:19 env_vars 68 -rwx 1296 Mar 01 1993 06:55:51 config.text 1728000 bytes total (456704 bytes free) 七、输入rename flash:config.text flash:config.old 八、输入boot引导系统。 九、当出现如下提示时,输入N: Continue with the configuration dialog? [yes/no] : N 十、用en进入enable状态,并将文件config.old改回config.text,命令如下: rename flash:config.old flash:config.text 十一、将原配置装入内存,命令如下: 2900# copy flash:config.text system:running-config 十二、修改密码: 2900xl#conf t 2900xl(config)#no enable secret 2900xl(config)#enable secret ultra 2900xl(config)#exit 十三、telnet到交换机上,验证密码是否修改成功 十四、将配置写入nvram 2900xl#wr mem 以上步骤中,第十一、十二步需要特别注意,前者是为了保留配置,后者需要注意的是如果不使用no enable secret的话,新密码将不起作用。
阅读全文() | 回复(1) | 引用通告() | 编辑
回复:2950系列交换机密码恢复过程! baidu发表评论于2005-6-18 21:36:00 #1 2950交换机密码恢复(摘自《组建交换式局域网》) 有时候我们忘记了交换机的密码,如何恢复密码呢?在此我们使用Catalyst 2950为例介绍恢复交换机密码的方法,这种方法可以在Catalyst 3500XL、Catalyst 2900XL、Catalyst 3550和Catalyst 2950系列交换机上使用。具体方法如下:
首先拔掉交换机的电源,按住交换机面板上的mode键,对交换机重新加电,进入初始化模式: 例5-81 对交换机重新加电 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: 初始化模式只支持很有限的命令,这个操作系统实际上是最小的IOS文件,在前面我们介绍的更新IOS文件的方法中,只有xmodem可以在这个模式下使用。 在初始化模式下,我们使用flash_init命令初始化flash。 例5-82 利用flash_init命令初始化flash switch: flash_init Initializing Flash... flashfs[0]: 20 files, 3 directories flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 7741440 flashfs[0]: Bytes used: 3965952 flashfs[0]: Bytes available: 3775488 flashfs[0]: flashfs fsck took 9 seconds. ...done initializing flash. Boot Sector Filesystem (bs:) installed, fsid: 3 Parameter Block Filesystem (pb:) installed, fsid: 4 接着,加载load_helper命令,然后就可以用dir flash:命令查看flash中的文件信息了。 例5-83 加载load_helper命令并显示flash中的文件信息 switch: load_helper switch: dir flash: Directory of flash:/ 2-rwx 2664051 <date> c2950-i6q4l2-mz.121-11.EA1.bin
3-rwx 276 <date> env_vars 4-rwx 1125 <date> config.text 5-rwx 5 <date> private-config.text 6-rwx 684 <date> vlan.dat 7drwx 704 <date> html 19 -rwx 109 <date> info 20 -rwx 109 <date> info.ver 21 drwx 128 <date> crashinfo 3775488 bytes available (3965952 bytes used) 本文出自 51CTO.COM技术博客我们只需将config.text文件更换名称,就可以让交换机在重新启动后启动初始化配置对话框。 重命名的命令格式为rename flash:oldname flash:newname。 初始化模式下重新启动的命令为reset。 例5-84 重命令config.text文件并重新启动交换机 switch: rename flash:config.text flash:config.old switch: reset Are you sure you want to reset the system (y/n)?y System resetting... 【注意】正常模式下重新启动交换机的命令为reload,和初始化模式下是有区别的。 交换机重新启动后,会提示是否进入初始化对话框,此时原先的配置文件已经被重命名为config.old,如果我们想还原刚才的配置(除了密码),可以按照例5-85所示中的步骤进行操作: 例5-85 还原所有的配置(除密码) Switch#rename flash:config.old flash:config.text Destination filename [config.text]? Switch#copy flash:config.text system:running-config Destination filename [running-config]? Switch#c onfig t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#en Switch(config)#enable secet cisco Switch(config)#exit Switch#copy run start 例5-85中,在完成copy flash:config.text system:running-config后,我们仍处于特权EXEC模式,有更改密码的权限。因此在完成以上步骤以后,交换机的密码被我们修改了,但是其他方面仍然保持原有配置,我们达到了恢复密码的目的。 |


czywf
博客统计信息
热门文章
最新评论
友情链接