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

断电重启路由器,在开机过程中按下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
相关推荐
如夏倾城3 小时前
VRRP(虚拟路由器冗余协议Virtual Router Redundancy Protocol)
网络·python·网络协议·安全·智能路由器·负载均衡·信息与通信
张小姐的猫6 小时前
【基于 WebSocket 的多用户网页五子棋】—— 认识第三方库Websocketpp
网络·websocket·网络协议
LightBreeze20027 小时前
IS-IS 基本概念详解——报文类型、地址结构与网络拓扑
网络·lsp·路由协议·net·is-is
小乖写代码1 天前
提交注册验证 · WhatsApp /v2/register
android·网络·账号注册
多弗朗皮卡丘1 天前
网络基础:数据链路层与其他协议或技术
linux·网络·tcp/ip
我不会插花弄玉1 天前
9.数据链路层【由浅入深-网络】
网络
进击的荆棘2 天前
Linux网络——网络基础概念
linux·运维·服务器·网络
LightBreeze20022 天前
从 LSA 到路由计算,彻底理解 OSPF 的区域路由与防环机制
网络·智能路由器·ospf·lsa·spf
忆挽篱笙歌2 天前
通信连接,匿名管道
linux·服务器·网络
九英里路2 天前
protobuf快速上手
网络·c++·中间件·json·谷歌·序列化·protobuf