Cisco交换机系列密码恢复

新宿舍购置了三台cisco的2918 48口交换机,回来让同事调试熟悉,最后确认上架使用。不过在最后我为了演示一个功能,把特权密码给弄来无法修改了,最后简单的处理,就恢复了。话说,这还是第一次恢复交换机的密码,以前恢复过路由器的密码。

事发原因:
console和vty全部使用了login local,我把user的特权降到了7级,最高是15(所有权限),导致无法登陆。我擦!

解决办法如下:

1、 设置WINDOWS超级终端,有效连接。
2、拔下交换机的电源线。

3、重新连接交换机电源的同时按住交换机前面板上的mode(模式)键,直到交换机上1X端口指示灯不再亮(大约15~20秒)。将出现以下信息:

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

switch: (我这里直接是:,有的是>,可能是交换机高低的问题。)

4、switch: ? (查看所能执行的命令清单)
5、switch: 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.text1728000 bytes total (456704 bytes free)
6、switch>;rename flash:config.text flash:config.old
把配置文件更名后,在switch: 下键入boot引导设备,在系统开始进行设置的时候,按N键,设置完成后,出现如下信息:
Continue with the configuration dialog? [yes/no] :
键入n
7、出现switch>;提示符后,键入en进入配置模式

8、重新命名配置文件:

switch: rename flash:config.old flash:config.text

9、拷贝配置文件到内存中
Switch# copy flash:config.text system:running-config
Destination filename [running-config]? (press Return)
按回车键,将配置文件重新装入。
10、改变口令
switch#config terminal
switch(config)#enable username xxx pri 15 sec xxxx
11、将当前配置写入配置文件
switch(config)#wr

此方法我在cisco2918上实验过,其他的非三层交换机方法类似。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值