Cisco思科企业路由器密码重置


Cisco思科企业路由器密码重置

  1. 此时如果可以通过调试线访问路由器的话,检查是否有show version命令权限。输出的最后一行提示了设置文件寄存器的地址。如果没有种种原因,无法访问路由器,那么此时设置文件寄存器的地址应为0x2102。

    1
    2
    3
    Router>show version
    <output omitted>
    Configuration register is 0x2102

  2. 重启路由器(reload),并在启动后的60s内中断启动,以进入ROMMON模式。中断方式见附录。

  3. 在rommon 1>后输入confreg 0x2142以从闪存启动。此条命令会使路由器在下次重置时跳过启动设置步骤。

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

  4. 在rommon 2>后输入reset 以重启路由器。

    1
    2
    3
    4
    5
    6
    7
    rommon 2 > reset
    System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)
    Copyright (c) 1999 by cisco Systems, Inc.
    TAC:Home:SW:IOS:Specials for info
    C2600 platform with 32768 Kbytes of main memory
    <output Omitted>
    router>

  5. 在设置向导质询中回答no或者按Ctrl-C以跳过初始化设置向导。

    1
    Would you like to enter the initial configuration dialog? [yes/no]: n

  6. 输入enable进入Enable模式

    1
    2
    Router>enable
    Router#

  7. 如果要恢复密码,输入configure memory或copy startup-config running-config。

    1
    Router#copy startup-config running-config

  8. 输入show running-config 以确定活动设置文件已被更改。

  9. 输入configure terminal。

    1
    Router#configure termial

  10. 如要更改密码,输入enable secret <password>,使用hostname(config)# 提示符。此时,可以重置路由器的其他密码。

    1
    2
    3
    4
    5
    6
    7
    8
    9
    Router# conf t
    Router(config)#enable secret <new_secret_password>
    Router(config)#enable password <new_enable_password>
    Router(config)#line vty 0 15
    Router(config-line)#password <new_vty_password>
    Router(config-line)#login
    Router(config-line)#line con 0
    Router(config-line)#password <new_console_password>
    Router(config)#^z

  11. 在计划使用的各个Interface中执行no shutdown 命令。

  12. 执行write memory或copy running-config startup-config来将配置文件写入启动过程。

    1
    Router#copy running-config startup-config

  13. 输入configure termial,返回到全局配置模式。

    1
    Router#configure terminal

  14. 输入config-register 0x2102并按Ctrl-z以保存更改并退出privilege EXEC模式。

    1
    2
    Router(config)#config-register 0x2102
    Router(config)#^Z

  15. 输入reload重启路由器,此时路由器使用0x2102配置寄存器启动。

    1
    2
    Router#reload
    Your passwords have now been reset.

附录

Hyperterminal

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
IBM Compatible 
Windows XP
Ctrl-Break

IBM Compatible
Windows 2000
Ctrl-Break

IBM Compatible
Windows 98
Ctrl-Break

(version 595160)
IBM Compatible
Windows 95
Ctrl-F6-Break

Kermit

1
2
3
4
Sun Workstation
UNIX
Ctrl-\l
Ctrl-\b

MicroPhone Pro

1
2
3
IBM Compatible 
Windows
Ctrl-Break

Minicom

1
2
3
IBM Compatible
Linux
Ctrl-a f

ProComm Plus

1
2
3
IBM Compatible
DOS or Windows
Alt-b

SecureCRT

1
2
3
IBM Compatible
Windows
Ctrl-Break

Telix

1
2
3
IBM Compatible
DOS
Ctrl-End

Telnet

1
2
3
N/A
N/A
Ctrl-], then type send brk

Telnet to Cisco

1
2
3
IBM Compatible
N/A
Ctrl-]

Teraterm

1
2
3
IBM Compatible
Windows
Alt-b

Terminal

1
2
3
4
IBM Compatible
Windows
Break
Ctrl-Break

Tip

1
2
3
4
Sun Workstation
UNIX
Ctrl-], then Break or Ctrl-c
~#

VT 100 Emulation

1
2
3
Data General 
N/A
F16

Windows NT

1
2
3
4
5
IBM Compatible 
Windows
Break-F5
Shift-F5
Shift-6 Shift-4 Shift-b (^$B)

Z-TERMINAL

1
2
3
Mac 
Apple
Command-b

N/A

1
2
3
4
5
6
7
8
9
10
11
Break-Out Box 
N/A
Connect pin 2 (X-mit) to +V for half a second

Cisco to aux port
N/A
Control-Shft-6, then b

IBM Compatible
N/A
Ctrl-Break

文章作者: sfc9982
版权声明: 本博客所有文章除特別声明外,均采用 CC BY-NC-ND 4.0 许可协议。转载请注明来源 sfc9982 !
  目录