Chinaunix首页 | 论坛 | 博客
  • 博客访问: 998314
  • 博文数量: 116
  • 博客积分: 3758
  • 博客等级: 中校
  • 技术积分: 1316
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-17 11:49
个人简介

这家伙很懒。。。

文章分类

全部博文(116)

文章存档

2016年(3)

2015年(2)

2014年(1)

2013年(9)

2012年(25)

2011年(50)

2010年(12)

2009年(14)

分类: 系统运维

2013-11-22 10:29:15

本文详细描述了对于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
六、输入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引导系统。(如果输入reset命令交换机将被重置为出厂设置)
九、当出现如下提示 时,输入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 密码 (全局登陆密码)
2900xl(config)#line vty 0 4
2900xl(config)#password 密码(telnet时的密码)
2900xl(config)#login           
2900xl(config)#exit
十 三、telnet到交换机上,验证密码是否修改成功
十四、将配置保存copy running-config startup-config 和wr效果是一样的,大部分人都会使用wr在特权模式下 
2900xl#wr    
十五  重启交换机查看修改是否生效
2900xl#reolad


以上步骤 中,第十一、十二步需要特别注意,前者是为了保留配置后者需要注意的是如果不使用no enable secret的话,新密码将不起作用。
阅读(4566) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~