您的位置:首页 > 其它

Cisco 2950密码恢复

2009-12-11 22:04 471 查看
实验环境:
Cisco 2950

Cisco 2950上配置:

C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950T-24 starting...
Base ethernet MAC Address: 00:12:d9:05:b3:80
Xmodem file system is available.

The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
system software:

flash_init
load_helper
boot

switch: flash_init
Initializing Flash...
flashfs[0]: 86 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 6510080
flashfs[0]: Bytes available: 1231360
flashfs[0]: flashfs fsck took 9 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch: rename flash:config.text flash:config.old
switch: boot
Loading "flash:/c2950-i6q4l2-mz.121-22.EA1.bin"...###########################################################################################################################################################################################

File "flash:/c2950-i6q4l2-mz.121-22.EA1.bin" uncompressed and installed, entry point: 0x80010000
executing...

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 Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 12-Jul-04 08:18 by madison
Image text-base: 0x80010000, data-base: 0x8055C000

Initializing flashfs...
flashfs[1]: 86 files, 3 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 7741440
flashfs[1]: Bytes used: 6510080
flashfs[1]: Bytes available: 1231360
flashfs[1]: flashfs fsck took 9 seconds.
flashfs[1]: Initialization complete.
Done initializing flashfs.
POST: System Board Test : Passed
POST: Ethernet Controller Test : Passed
ASIC Initialization Passed

POST: FRONT-END LOOPBACK TEST : Passed
cisco WS-C2950T-24 (RC32300) processor (revision Q0) with 20873K bytes of memory.
Processor board ID FOC0848Z15Y
Last reset from system-reset
Running Enhanced Image
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:12:D9:05:B3:80
Motherboard assembly number: 73-6114-10
Power supply part number: 34-0965-01
Motherboard serial number: FOC08480XQL
Power supply serial number: DAB0846LEPZ
Model revision number: Q0
Motherboard revision number: A0
Model number: WS-C2950T-24
System serial number: FOC0848Z15Y

--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: n
00:00:16: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
00:00:20: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 12-Jul-04 08:18 by madison
00:00:20: %SNMP-5-COLDSTART: SNMP agent on host Switch is undergoing a cold start
00:00:23: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up
00:00:23: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Press RETURN to get started!

00:00:51: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down
00:00:52: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
Switch>en
Switch#rename flash:config.old flash:config.text
Destination filename [config.text]?
Switch#copy flash:config.text system:running-config
Destination filename [running-config]?
% Ambiguous command: " password 000000"
1260 bytes copied in 1.044 secs (1207 bytes/sec)
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#enable secret 333
Switch(config)#exit
Switch#
00:04:12: %SYS-5-CONFIG_I: Configured from console by console
Switch#write memory
Building configuration...
[OK]
Switch#exit

Switch con0 is now available

Press RETURN to get started.

Switch>en
Password:
Switch#

注意:按住交换机面板左侧的mode键,给交换机加电,初始化flash,更名含有password的配置文件,启动交换机,进入特权模式,恢复被更名的配置文件,copy配置文件到当前系统中,进入配置模式修改enable口令,保存配置。本文出自 “minggj” 博客,请务必保留此出处http://minggj.blog.51cto.com/130110/242003
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: