Cisco思科企业路由器密码重置
此时如果可以通过调试线访问路由器的话,检查是否有
show version
命令权限。输出的最后一行提示了设置文件寄存器的地址。如果没有种种原因,无法访问路由器,那么此时设置文件寄存器的地址应为0x2102
。Router>show version <output omitted> Configuration register is 0x2102
重启路由器(
reload
),并在启动后的60s内中断启动,以进入ROMMON模式。中断方式见附录。在
rommon 1>
后输入confreg 0x2142
以从闪存启动。此条命令会使路由器在下次重置时跳过启动设置步骤。rommon 1 > confreg 0x2142 You must reset or power cycle for new config to take effect
在
rommon 2>
后输入reset
以重启路由器。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>
在设置向导质询中回答
no
或者按Ctrl-C
以跳过初始化设置向导。Would you like to enter the initial configuration dialog? [yes/no]: n
输入
enable
进入Enable模式Router>enable Router#
如果要恢复密码,输入
configure memory
或copy startup-config running-config
。Router#copy startup-config running-config
输入
show running-config
以确定活动设置文件已被更改。输入
configure terminal
。Router#configure termial
如要更改密码,输入
enable secret <password>
,使用hostname(config)#
提示符。此时,可以重置路由器的其他密码。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
在计划使用的各个Interface中执行
no shutdown
命令。执行
write memory
或copy running-config startup-config
来将配置文件写入启动过程。Router#copy running-config startup-config
输入
configure termial
,返回到全局配置模式。Router#configure terminal
输入
config-register 0x2102
并按Ctrl-z
以保存更改并退出privilege EXEC
模式。Router(config)#config-register 0x2102 Router(config)#^Z
输入
reload
重启路由器,此时路由器使用0x2102
配置寄存器启动。Router#reload Your passwords have now been reset.
附录
Hyperterminal
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
Sun Workstation
UNIX
Ctrl-\l
Ctrl-\b
MicroPhone Pro
IBM Compatible
Windows
Ctrl-Break
Minicom
IBM Compatible
Linux
Ctrl-a f
ProComm Plus
IBM Compatible
DOS or Windows
Alt-b
SecureCRT
IBM Compatible
Windows
Ctrl-Break
Telix
IBM Compatible
DOS
Ctrl-End
Telnet
N/A
N/A
Ctrl-], then type send brk
Telnet to Cisco
IBM Compatible
N/A
Ctrl-]
Teraterm
IBM Compatible
Windows
Alt-b
Terminal
IBM Compatible
Windows
Break
Ctrl-Break
Tip
Sun Workstation
UNIX
Ctrl-], then Break or Ctrl-c
~#
VT 100 Emulation
Data General
N/A
F16
Windows NT
IBM Compatible
Windows
Break-F5
Shift-F5
Shift-6 Shift-4 Shift-b (^$B)
Z-TERMINAL
Mac
Apple
Command-b
N/A
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