::: NETWORK :::/└ ::: SWITCH :::

Switch password 복구

호딩이 2007. 1. 10. 17:31

/Catalyst Switch Password 복구 방법

가. Catalyst 1200, 2900, 2926, 2948G, 4000, 5000, 6000 Password 복구
/Console PC를 Switching 장비의 console port에 연결하고, 다음 사항을 Setting한다.
9600 baud rate
no parity
8 data bits
1 stop bit
/장비 전원 ON
/Enter password:   (30 초 동안 Null Password)
/Enable mode로 들어가려면
/Console>enable  (press Enter)
/Password prompt에서 Enter를 친다. (30 초 동안 Null Password)
/Enter password:
/다음과 같이 Password를 바꿔주면 된다.

Console> (enable) set password
Enter old password: (press Enter)
Enter new password: (type your new password)
Retype new password: (type your new password)

Console> (enable) set enablepass
Enter old password: (press Enter)
Enter new password: (type your new password)
Retype new password: (type your new password)

나. Catalyst 1600 Password 복구방법
erasing mgmt passwd." 가 나타날 때까지 장비의Reset button을 누른다.
Switch가 reset되고 password가 clear된다.
다. Catalyst 1700, 1900, 2100, 2800, 2820 Password 복구방법
Cisco의 TAC(Technical Assitace Center)에 문의하거나, Cisco engineer에게 case open 한다. Switch의 case에 인쇄되어 있는 serial number와 MAC address를 Cisco engineer에게 보내주면 새로운 password를 받을 수 있을 것이다.
라. Catalyst 2600, 3000, 3100, 3200 Password 복구방법
/Switch 상의 SysReq button을 누른다.
     (next to the Reset button). Caution: NVRAM이 Clear되면서
      Password와 Config(default 값으로 변경 됨)가 같이 Clear된다.
/Move the arrow key to clear NVRAM.
/Press Return.System이 reboot 되면 Password는 묻지 않는다
마. Catalyst 2900XL, 3500XL Password 복구방법
/전원 Cable을 뽑는다.
/장비 앞쪽 좌측에 위치한 “MODE” 버턴을 누른 상태에서 전원코드를 연결한다.
      1번 Port 아래 LED가 깜빡거린 후 “MODE” 버턴에서 손을 떼면 된다.
      Flash 파일시스템을 초기화 해 주어야 한다.
/flash_init
/load_helper

/dir flash:
       Switch file system이 display된다.

Directory of flash:

2

rwx

843947

Mar

01

1993

00:02:18

C2900XL-h-mz-112.8-SA

4

drwx

3776

Mar

01

1993

01:23:24

html

66

-rwx

130

Jan

01

1970

00:01:19

env_vars

68

-rwx

1296

Mar

01

1993

06:55:51

config.text

1728000 bytes total (456704 bytes free)


/rename  flash:config.text  flash:config.old
   password가 정의되어 있는 파일
/boot
/Continue with the configuration dialog? [yes/no] : N
/console> en
/Switch# rename  flash:config.old  flash:config.text
/다음과 같이 memory로 config file copy한다.

Switch# copy  flash:config.text  system:running-config
Source filename [config.text]? (press Return)
Destination filename [running-config]? (press Return)
The configuration file is now reloaded.
Change the password:
switch#configure terminal
switch(config)#no enable secret
!-- This step is necessary if the switch had an enable secret password
switch(config)#enable password Cisco
switch#(config)#^Z
!--Control/Z
switch#write memory

/Router Password 복구

가. Router Password 수정

console password

    router(config)# line console 0
    router(config-line)# password test
    router(config-line)# login

virtual terminal password

    router(config)# line vty 0 4
    router(config-line)# password test
    router(config-line)# login

enable passord

    router(config)# enable password test

enable password의 암호화

    router(config)# service password-encryption

나. router named 수정

router name

    router(config)# hostname router

login banner

    router(config)# banner motd #welcome to my router, in seoul
    # - end선언 문자로 임의의 문자를 선언 할 수 있음

다. router password Recovery(Cisco 2500, 3000, 4000, 7000 Series)
/Router의 Console port에 Terminal을 연결한다.
/Show Version으로 Configuration - register값을 확인한다.
/Router Power를  off, on한다.
/Ctrl - Break를 동시에 누르면 60초 후에 “ >” Prompt가 떨어진다.(ROM Monitor Mode)
/>o/r 0x42 라고 입력하고 enter를 친다
/> I(initialize를 의미)를 입력하고 enter를 친다
/Would you like to enter the initial configuration dialog? [yes]에서 no를 침
/router>en
/router>#
/password 변경 및 삭제, 조회
- show config  : 기존 password를 볼 수 있음.
- wr erase       : 기존 config를 모두 삭제
- password를 교체
· Config memory : NVRAM Memory에 복사
        · Config terminal : configuration을 바꿀 수 있는 명령

EX>  router># config terminal

router># enable password  [password]
router>#  ^Z
router># write  memory
router># config terminal
router># config-reg 0x2102
router># ^Z
system configuration has been modified, save? NO
router># reload


라. router password Recovery   (Cisco 4500, 4700, 7500 Series)

Router의 Console port에 PC Terminal emulation을 연결한다.
Show Version으로 Configuration - register값을 확인한다.
Router Power를  off, on한다.
Ctrl - Break를 동시에 누르면 60초 후에 “ rommon>” Prompt가 떨어짐.
rommon1> prompt에서 config-reg를 친다.
- Would you wish to change configuration  [y/n]? y
- diagnodtic mode [y/n] n
- use net in ip bcast address [y/n]?  n
- load rom after netboot fails [y/n]?  n
- use all zero broadcast [y/n]?  n
- break/abort has effect [y/n]?  n
- ignore system config info [y/n]?  y
- change console baud rate [y/n]?  n
- change the boot characteristics [y/n]? 에서 y
- enter to boot
 0 = rom monitor ,  1 = the boot helper image,   2-15=boot system
 [0] 1을 선택
- do you wish to change the configuration [y/n]? n
- You must reset or power cycle for new config to take effect
  rommon2>reset
- Would you like to enter the initial configuration dialog ? n
- router> en  --> router>#로 들어감
/password 변경 및 삭제, 조회
- show config  : 기존 password를 볼 수 있음.

- password 교체 command
· Config memory   : NVRAM Memory에 복사
· Config terminal   : configuration을 바꿀 수 있는 option
conf t
enable password  newpassword
^Z
wr mem
· Write erase   : 기존에 configuration을 지운다.
- config term : config-reg값을 바꾼다.

Config-reg 0x2102
^Z