Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2550397
  • 博文数量: 271
  • 博客积分: 6659
  • 博客等级: 准将
  • 技术积分: 3141
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-17 10:24
文章分类

全部博文(271)

文章存档

2016年(2)

2015年(12)

2014年(7)

2013年(19)

2012年(22)

2011年(81)

2010年(128)

分类: 系统运维

2011-02-21 22:12:48

1.首先通过console口登陆Cisco 2950交换机
2.拔掉Cisco 2950交换机的电源线,然后再插上,让交换机进行初始化
3.在插上电源的同时紧紧长按Cisco 2950前面板左侧下方的mode按钮,系统会进入启动帮助模式
4.然后输入命令行:
初始化flash文件系统:
flash_init
接着输入:
加载帮助文件:
load_helper
接着输入:

dir flash:
系统会提示类似如下的信息:
Directory of flash:
2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-h-mz-112.8-SA
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
把系统使用的配置文件config.text重名为.old文件,相当于删除了在用配置文件,该配置文件就是存放原有系统密码的。
然后输入命令行:
boot
系统将重新引导
此时重新引导后就相当于出厂模式
提示如下信息时输入N
Enter N at the prompt to start the Setup program, Continue with the configuration dialog? [yes/no] : N
然后输入enable进入特权模式,此时不需要输入密码,密码为空。
然后输入rename flash:config.old flash:config.text ,把原来的配置文件恢复回来,如果不需要还原原有配置从该步起就不
做下面的操作。
拷贝该配置文件到内存当中
Switch# copy flash:config.text system:running-config
Source filename [config.text]? (press Return)
Destination filename [running-config]? (press Return)
然后输入如下指令清空enable密码
switch#configure terminal
switch(config)#no enable secret
最后保存退出即可。
write memory

阅读(1839) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-03-06 13:32:18

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com