Cisco路由器口令的恢复【图文】

Cisco路由器口令的恢复【图文】

原标题:"Cisco路由器口令的恢复【图文】"关于路由器的知识分享。 - 素材来源网络 编辑:kaka。

摘 要

Cisco路由器是广泛应用的计算机网络通信设备之一。在日常运行中,路由器在整个系统中起着重要的作用,免不了经常对它进行操

 Cisco路由器是广泛应用的计算机网络通信设备之一。在日常运行中,路由器在整个系统中起着重要的作用,免不了经常对它进行操作。例如:

Cisco路由器口令的恢复【图文】

  修改路由器配置文件、诊断网络故障等。一旦密码被遗忘,就对工作造成极大麻烦,此时,如何恢复密码变得尤为重要。

  Flash Memory是只读的,所以要修改Flash Memory, 内容时,首先要进入Boot ROM Monitor运行模式下。

  .ROM Monitor运行环境主要用于密码的恢复。

  要进入不同的运行环境,就需要对Configuration Register Value进行设置,详见下表Register Value与运行环境之关系,以满足用户对不同运行环境的需要。

  运行环境与Register Value

  ------------------------------------------------------------------

  运行环境     提示符   RegisterValue 主要应用

  IOS        Router> 0x2102 正常运行模式

  Boot ROM Monitor Router(boot)> 0x1 操作系统版本升级

  ROM Monitor > 0x0 密码的恢复

  ------------------------------------------------------------------

  Configuration Register Value及其含义:

  ------------------------------------------------------------------

  ConfigurationRegisterValue 含义

  0x2102 缺省设置。

  bit13=0x2000 Flash引导失败5次后,自动从Rom引导。

  bit8=0x0100 关闭Break键。

  Boot field=0x2 从Flash中引导正常运行模式。

  0x2101

  bit13=0x2000 Flash引导失败5次后,自动从Rom引导。

  bit8=0x0100 关闭Break键。

  Boot field=0x1 进入Boot Rom运行模式。Router(boot)>

  0x142

  bit8=0x0040 进入 Rom Monitor运行模式。>

  Boot field=0x2 从Flash中引导正常运行模式。

  ------------------------------------------------------------------

  当用户忘记或错误地修改了口令,需要进行恢复时,可以按照如下步骤操作:

  1.进入rom中断状态

  2.读出当前引导方式:

  >e/s2000002

  3.作如下改变,忽视nvram引导:

  >o/r0x**4*

  4.重 酚善?: >i

  5.进入steup模式,对所有问题回答no

  6.进入超级用户:

  router>enable

  7.下载nvram:

  router#config memory

  8.恢复初始启动值,并激活所有端口:

  "hostname"#config terminal

  "hostname"(config)#config-register 0x"value"

  "hostname"(#config)#interface xx

  "hostname"(config-if)#no shutdown

  9.查询口令:

  "hostname"#show configuration(show startup-config)

  10.修改和存储口令:

  "hostname"#config terminal

  "hostname"(config-line)#line console0

  "hostname"(config-line)#login

  "hostname"(config-line)#password xxxxxxxx

  "hostname"(config-line)#(cntl-z)

  "hostname"#write memory(copy running-config startup-config)

  11.将RegisterValue恢复为缺省设置:

  不然路由器重起后已做的配置可能会丢失!

  "hostname"#config terminal

  "hostname"(config)#config-register 0x2102

以上就是关于“Cisco路由器口令的恢复【图文】”的教程,由路由器指南网整理

本文来自投稿,不代表路由百科立场,如若转载,请注明出处:https://www.qh4321.com/172697.html

(0)
WiFi设置

相关推荐