思科路由器忘记密码怎么重置

断电重启路由器,在开机过程中按下Ctrl+Pause/break,或者只按下Pause/break(没有测试),在PT(Cisco Packet Tracert)中则需要按Ctrl+C。路由器会进入rommon >模式。

切换到0x2142模式(重启后配置不保存)

bash 复制代码
rommon 1 > confreg 0x2142        //切换到0x2142模式

rommon 2 > reset                 //重启,在PT中需要输入boot

初始化配置会话选择no。

bash 复制代码
         --- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]: no

进入路由器后将启动配置(startup-config)导入到 运行配置(running-config)。

cpp 复制代码
Router>en
Router#copy startup-config running-config

删除enable密码。

cpp 复制代码
Router#conf t
Router(config)#no enable password 

将配置保存的启动配置(startup-config)中。

cpp 复制代码
Router#copy running-config startup-config

切换到正常模式(0x2102),重启即可。

cpp 复制代码
Router#conf t
Router(config)#config-register 0x2102
Router(config)#end
Router#reload

使用show version可以看到当前处于什么模式。

cpp 复制代码
R1#show version 
Cisco IOS Software, 2800 Software
......
......
......

Configuration register is 0x2102
相关推荐
LabVIEW开发15 分钟前
使用 LabVIEW 获取文件的创建日期:从内置函数到 Windows API 封装
网络·windows·labview·labview知识·labview功能·labview程序
DevOpenClub20 分钟前
全球区域与 IP 定位工作台案例方案
大数据·网络·网络协议·tcp/ip
wuyk55523 分钟前
从零吃透 Modbus 通信|第 6 章:线圈功能码 05/0F 实现 & Modbus‑TCP 基础入门
c语言·网络·网络协议·tcp/ip
NJCloud1 小时前
Docker 私有仓库部署:Registry、加密传输与认证鉴权
运维·网络·docker·云原生·容器
CC城子1 小时前
Bootloader + OTA -Ymodem 协议
网络·ymoden
又见情义1 小时前
RK3568 + RTL8211F 网络唤醒(WOL)功能适配全记录
android·网络·驱动开发
Titan20241 小时前
HTTPS基础知识梳理
服务器·网络·c++·网络协议·学习·http·https
自然石人2 小时前
石都随笔:深耕不张扬,平凡自有千钧力
网络·经验分享·百度·传媒·新浪微博
新时代牛马2 小时前
epoll 源码路径:从epoll_ctl 到ep_poll 的就绪唤醒
网络·数据库·网络协议
简单Janeee2 小时前
[Vue 3 从零到上线]-第九篇:更美更强——引入 UI 库与网络请求 (Axios)
网络·vue.js·ui