思科ISR4K,1100和ASR路由器密码恢复

1.概要说明

本文对思科ISR4K 、ISR1100以及ASR等路由器进行密码恢复或重置操作。

2.操作步骤

2.1.rommon模式

首先在设备启动的时候,通过<ctrl + Break>操作让设备进入rommon模式。通过命令confreg命令

确认是否忽略配置。

2.2.查看用户名

2.1完成之后,就可以进入系统,这个时候不是让输入账号密码,我们可以直接进入查看,通过show run查看用户名是没有的,是因为在启动配置中存在。

2.3.修改账号密码

我们可将启动配置复制到运行配置,然后进一步查看我们的show run,确认相关账号密码情况。

进一步修改账号密码,如下所示admin用户,密码cisco456,确认完成之后保存即可。

需要注意的是,主机将寄存器值修改会0x2102,并write保存!

3.CLI操作记录

3.1.进入rommon

<ctrl + Break>

monitor: command "boot" aborted due to user interrupt
rommon 1 >

3.2.指定寄存器值

可以将寄存器值指定为0x2142,启动后就忽略原有配置。

rommon 1 > confreg 0x2142
You must reset or power cycle for new config to take effect
rommon 2 > reset

3.3.设置账号密码

正常启动后可能会直接进入>模式或者让我们配置初始化的配置。

program load complete, entry point: 0x80008000, size: 0xf54134
Self decompressing the image : ##
<output omitted>
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: no
Press RETURN to get started!

进一步修改账号密码。

Router>
Router> enable
Router# copy startup-config running-config
Destination filename [running-config]? (hit enter)
Building configuration...
[OK]
Router# configure terminal
Router(config)# enable password cisco
Router(config)# enable secret enter
Router(config)# line console 0
Router(config-line)# password hello
Router(config)# username admin privilege 15 secret enternow

3.4.修改寄存器值

设置账号密码后,记得将寄存器值修改回去。并保存配置。

Router(config)# config-register 0x2102
Router(config)# exit
Router# copy running-config startup-config
Destination filename [startup-config]? (hit enter)
Building configuration...
[OK]
Router# reload

这样设备启动回来之后,就可以输入我们新添加的账号密码啦~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

剪刀石头布Cheers

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值