본문 바로가기

개발이야기

2950,2960 패스워드 리커버리

가끔 스위치를 설치하라고 장비를 받았으면 Password 를 안 알려줘서 당황했던 기억이..

그래서 노트북에 항상 switch와 router password recovery 자료는 가지고 ....ㅋㅋ

 

이방식은 catalyst 3500 switch 에도 통용이 되구요, 다른 방식도 있었던것 같은데..

아무튼 알아두면 유용한 자료가 될겁니다.


Cisco#

Cisco#

Cisco#  - Switch의 boot loader mod로 들어간다. boot loader mod로 들어가려면 switch의

           전면에 있는 mode 버튼을 누른상태에서 전원 케이블을 뽑았다가 다시 꽂고, port 1

           번 LED가 꺼지면 버튼을 놓는다.

Cisco#

 

C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(0.0.49)EA2, CISCO DEVELOPMENT TEST VERSION

Compiled Fri 11-Jan-02 07:07 by antonino

WS-C2950-24 starting...

Base ethernet MAC Address: 00:09:7c:30:00:c0

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     * flash 를 초기화 시킨다*

Initializing Flash...

flashfs[0]: 165 files, 2 directories

flashfs[0]: 0 orphaned files, 0 orphaned directories

flashfs[0]: Total bytes: 7741440

flashfs[0]: Bytes used: 2964992

flashfs[0]: Bytes available: 4776448

flashfs[0]: flashfs fsck took 6 seconds.

...done initializing flash.

Boot Sector Filesystem (bs:) installed, fsid: 3

Parameter Block Filesystem (pb:) installed, fsid: 4

switch: rename flash:/config.text flash:/router  *flash memory에 저장되어있는  설정파일 이름을 적당한 이름으로 변경한다 (저는 ‘router ’으로 변경했습니다..) .*

switch: boot      *switch를 부팅한다.

Loading "flash:c2950-c3h2s-mz.120-5.3.WC.1.bin"...###############################################################################################################################

 

File "flash:c2950-c3h2s-mz.120-5.3.WC.1.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-C3H2S-M), Version 12.0(5.3)WC(1), MAINTENANCE INTERIM SOFTWARE

Copyright (c) 1986-2001 by cisco Systems, Inc.

Compiled Mon 30-Apr-01 07:56 by devgoyal

Image text-base: 0x80010000, data-base: 0x8031A000

 

 

Initializing flashfs...

flashfs[1]: 165 files, 2 directories

flashfs[1]: 0 orphaned files, 0 orphaned directories

flashfs[1]: Total bytes: 7741440

flashfs[1]: Bytes used: 2964992

flashfs[1]: Bytes available: 4776448

flashfs[1]: flashfs fsck took 6 seconds.

flashfs[1]: Initialization complete.

Done initializing flashfs.

C2950 POST: System Board Test : Passed

C2950 POST: Ethernet Controller Test : Passed

C2950 POST: MII TEST : Passed

 

cisco WS-C2950-24 (RC32300) processor (revision C0) with 22260K bytes of memory.

Processor board ID FOC0614Z0MJ

Last reset from system-reset

 

Processor is running Enterprise Edition Software

Cluster command switch capable

Cluster member switch capable

24 FastEthernet/IEEE 802.3 interface(s)

 

32K bytes of flash-simulated non-volatile configuration memory.

Base ethernet MAC Address: 00:09:7C:30:00:C0

Motherboard assembly number: 73-5781-09

Power supply part number: 34-0965-01

Motherboard serial number: FOC0614050T

Power supply serial number: DAB06131PZV

Model revision number: C0

Motherboard revision number: A0

Model number: WS-C2950-24

System serial number: FOC0614Z0MJ

C2950 INIT: Complete

 

00:00:17: %SYS-5-RESTART: System restarted --

Cisco Internetwork Operating System Software

IOS (tm) C2950 Software (C2950-C3H2S-M), Version 12.0(5.3)WC(1), MAINTENANCE INTERIM SOFTWARE

Copyright (c) 1986-2001 by cisco Systems, Inc.

Compiled Mon 30-Apr-01 07:56 by devgoyal

 

         --- System Configuration Dialog ---

 

At any point you may enter a question mark '?' for help.

Use ctrl-c to abort configuration dialog at any prompt.

Default settings are in square brackets '[]'.

 

Continue with configuration dialog? [yes/no]: no

Press RETURN to get started.

 

 

Switch> 

Switch>enable      * password 없이 관리자 모드로 들어갈 수 있다*

Switch#

Switch#copy router running-conig     *  ‘ router ’ 이라고 저장한 설정파일을 불러온다*

Destination filename [running-config]?

1303 bytes copied in 1.340 secs (1303 bytes/sec)

Cisco#               * hostname 이 변경됨을 확인.

00:01:07: %SYS-5-CONFIG: Configured from  by

Cisco#  

Cisco#config terminal      *관리자 모드로..*

Enter configuration commands, one per line.  End with CNTL/Z.

Cisco(config)#enable secret han0525        * password 를 변경한다.*

Cisco(config)#end

Cisco#wr    * 저장하는것 잊지 마시구요 ^^.*

00:02:13: %SYS-5-CONFIG_I: Configured from console by console

Building configuration...

[OK]

Cisco#

Cisco#

Cisco#