计算机网络/计算机科学与应用/系统/运维/开发

密码恢复和基本配置

密码恢复和基本配置

先将路由器关闭在打开 同时 60秒 按ctrl+c 或ctrl+break 中断路由启动  进入rommon模式

Self decompressing the image :
################
monitor: command "boot" aborted due to user interrupt
rommon 1 > confreg 0x2142
rommon 2 > reset
System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)
Initializing memory for ECC
..
c2811 processor with 524288 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled
Readonly ROMMON initialized
Self decompressing the image :
########################################################################## [OK]
              Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706
Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 04:52 by pt_team
Image text-base: 0x60080608, data-base: 0x6270CD50
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.
Processor board ID FTX0947Z18E
M860 processor: part number 0, mask 49
2 FastEthernet/IEEE 802.3 interface(s)
191K bytes of NVRAM.
63488K bytes of ATA CompactFlash (Read/Write)
Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 04:52 by pt_team
         --- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>
Router>
Router>
恢复原有配置
Router>
Router>
Router>en
Router>enable 
Router#copy startup-
Router#copy startup-config run
Router#copy startup-config running-config 
Destination filename [running-config]? 
675 bytes copied in 0.416 secs (1622 bytes/sec)
Rt99a#
%SYS-5-CONFIG_I: Configured from console by console
Rt99a#
Rt99a#
Rt99a#
Rt99a#conf t
Rt99a#conf terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Rt99a(config)#
Rt99a(config)#en
Rt99a(config)#ena
Rt99a(config)#enable se
Rt99a(config)#enable secret 99cisco
Rt99a(config)#line con 0
Rt99a(config-line)#password 99con0
Rt99a(config-line)#login
Rt99a(config-line)#exit
Rt99a(config)#conf
% Incomplete command.
Rt99a(config)#
Rt99a(config)#conf-re
Rt99a(config)#conf-res
Rt99a(config)#conf-reg
Rt99a(config)#config
Rt99a(config)#config-register 0x2102
Rt99a(config)#end
Rt99a#
%SYS-5-CONFIG_I: Configured from console by console
Rt99a#wri
Rt99a#write 
Building configuration...
[OK]
Rt99a#reload
Proceed with reload? [confirm]
System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)
Initializing memory for ECC
..
c2811 processor with 524288 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled
Readonly ROMMON initialized
Self decompressing the image :
########################################################################## [OK]
              Restricted Rights Legend
....中间省略
User Access Verification
Password: 
Rt99a>en
Password: 
Rt99a#
Rt99a#
Rt99a#conf t
Rt99a#conf terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Rt99a(config)#no ip domain-lo
Rt99a(config)#no ip domain-lookup 
Rt99a(config)#line conso
Rt99a(config)#line console 0
Rt99a(config-line)#logging suync
Rt99a(config-line)#logging  syn
Rt99a(config-line)#logging  synchronous 
Rt99a(config-line)#exec-
Rt99a(config-line)#exec-timeout 0 0 
Rt99a(config-line)#
Rt99a(config-line)#line vty 0 4
Rt99a(config-line)#logging sy
Rt99a(config-line)#logging synchronous 
Rt99a(config-line)#no exec
Rt99a(config-line)#no exec-timeout 
Rt99a(config-line)#exit
Rt99a(config)#service pass
Rt99a(config)#service password-encryption 
Rt99a(config)#end
Rt99a#
%SYS-5-CONFIG_I: Configured from console by console
Rt99a#write
Building configuration...
[OK]
Rt99a#
Rt99a#
Rt99a#


顺,不妄喜;逆,不惶馁;安,不奢逸;危,不惊惧。--史记

评论

^