Chinaunix首页 | 论坛 | 博客
  • 博客访问: 40426
  • 博文数量: 18
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 200
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-15 10:08
文章分类

全部博文(18)

文章存档

2014年(1)

2010年(4)

2009年(13)

我的朋友

分类: 网络与安全

2010-03-16 14:53:11

今天去工作时,因不知cisco交换机的密码浪费了点时间。为方便以后高效处理此类问题特作此文档。


1
    用超级终端或SCRT连到交换机的CONSOLE口。
2
    先关闭交换机的电源,按住MODE键的同时打开电源。当SYST灯变成琥珀色时松开MODE键。
系统启动将被中断,并显示如下信息:
1.    flash_init
2.    load_helper
3.    boot
switch:
些时请在输入以下命令:
Switch: flash init
初始化flash
Switch: load_helper
Switch: dir flash:
显示交换机系统文件信息。

switch: dir flash:
Directory of flash:/

2    -rwx  616                      vlan.dat
VLAN
信息
3    -rwx  5                        private-config.text
5    -rwx  1435                     config.text  
配置文件
7    drwx  192                      c2960-lanbase-mz.122-35.SE5
系统当前的IOS信息
24177152 bytes available (8336896 bytes used)
储存空间信息
Switch
Rename flash:config.text flash:config.old   把配置文件改名
Swith
boot 重新启动

重启后如下:
Continue with configuration dialog? [yes/no]: n

Switch>enable  
已不需要密码
Switch#
把原来更改名的文件重新改过来
Switch#rename flash:config.old flash:config.text
再把config.text文件COPY到内存中
Switch#copy flash:config.text system:running-config
到了关键时候了。马上设置你的密码吧!
Switch# conf t
Switch(config)#enable secret evsoft
到现在为密码修改已经成功!值得庆祝一下了!:)
现在还没有结束哟!最后还有一步
到特权模式下保存你的配置!不然系统重新加载就前功尽弃了。
Switch#copy run start
Switch#reload
这下可真的结束了!

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