分类: 网络与安全
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
3 -rwx 5
5 -rwx 1435
7 drwx 192
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
这下可真的结束了!