본문 바로가기
Network

Cisco Router Password 복구 방법(2500 series 외)

by 레이루이 2008. 5. 7.
반응형


시스코 2500 시리즈 Password 복구방법 
 
우선 첫번째로 Console로 라우터에 접속후 라우터를 리부팅합니다.
리부팅 과정에서 Ctrl + Break를 누른후 롬부트 모드로 들어갑니다.
이때 프롬프트는 ">"로 표시 됩니다..

프롬프트(">") 확인후 제대로 롬부트 모드에 들어가셨으면..

>o/r 0x42                  
>i          라고 입력한후 Enter


그럼 라우터는 리부팅을 시작합니다.

(위에서 >o/r 0x42의 의미는 NVRAM상의 configuration을 무시하고 부팅하되 Flash로 부터 부팅함을 의미하구요.. 만약 Flash문제로 ROM으로 부팅하고자 할 때는  o/r 0x41이라고 하면 됩니다..)

리부팅 된후...  
모든 셋업 명령에 No라고 답한후..

Router>enable
Router#copy start run

을 하셔서 기존의 NVRAM상의 환경설정을 RAM에 저장후  

Router#config term
Router(config)#

Global configuration 모드에서 패스워드를 복구 합니다..
패스워드 복구는 원하는 패스워드로 바꾸던지..
아님 패스워드설정 해놓은걸 "no"를 붙여 Disable시키던지
그건 사용자 맘이구요 ^^;;
패스워드 관련 명령어는 따로 설명을 하죠..

그러고 난후 config register값을 원상 복구하기 위해(지금은
Flash로 부팅한 상태입니다.. 기억나시죠 위에 "0x42")

Router(config)#config-register 0x2102

라고 입력후

Router#copy run start
Router#reload

재부팅후...  이제 복구한 패스워드를 물어보거나 패스워드를 Disable했으면 패스워드를 안물어보겠죠 ^^


이상 Password 복구 방법이었습니다..

아참 더 간단한 방법은 아까 copy start run
한 부분 있죠... 그건 기존에 설정한 라우터 환경을 살리기 위해서
하는 것인데.. 뭐 기존에 설정한게 필요 없다면 굳이 그럴필요 없이

레지스터 값 복구

Router(config)#config-register 0x2102

한뒤에

Router#copy run start

한뒤 리부팅 하시면 됩니다...

-----------------------------------------------------------------------------------

1. 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 password

         router(config)# enable password test

enable password의 암호화

         router(config)# service password-encryption
 

2. router named 수정


router name

         router(config)# hostname router

login banner

         router(config)# banner motd #

         welcome to my router, in seoul

         # - end선언 문자로 임의의 문자를 선언 할 수 있음

        
 
-----------------------------------------------------------------------

Catalyst Switch Password 복구 방법

 I. Catalyst 1200, 2900, 2926, 2948G, 4000, 5000, 6000 Password 복구

   1. Console PC를 Switching 장비의 console port에 연결하고, 다음 사항을 Setting 한다.

       9600 baud rate 

       no parity 

       8 data bits 

       1 stop bit

  2. 장비 전원 ON

  3. Enter password:   (30 초 동안 Null Password)

  4. Enable mode로 들어가려면

  5. Console>enable  (press Enter)

  6. Password prompt에서 Enter를 친다. (30 초 동안 Null Password)

  7. Enter password:

  8. 다음과 같이 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)

II. Catalyst 1600 Password 복구방법

     "erasing mgmt passwd." 가 나타날 때까지 장비의Reset button을 누른다.

      Switch가 reset되고 password가 clear된다.

III. 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를 받을 수 있을 것이

   다.

IV. Catalyst 2600, 3000, 3100, 3200 Password 복구방법

   1. Switch 상의 SysReq button을 누른다. (next to the Reset button).

Caution: NVRAM이 Clear되면서 Password와 Config(default 값으로 변경 됨)가 같이 Clear된다.

  2. Move the arrow key to clear NVRAM.

  3. Press Return.

     System이 reboot 되면 Password는 묻지 않는다.

V. Catalyst 2900XL, 3500XL Password 복구방법

  1. 전원 Cable을 뽑는다.

  2. 장비 앞쪽 좌측에 위치한 “MODE” 버턴을 누른 상태에서 전원코드를 연결한다.    
     1번 Port 아래 LED가 깜빡거린 후 “MODE” 버턴에서 손을 떼면 된다.

       Flash 파일시스템을 초기화 해 주어야 한다.

  3. flash_init

  4. load_helper

  5. 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)

  6. rename  flash:config.text  flash:config.old

      password가 정의되어 있는 파일

  7. boot 

  8. Continue with the configuration dialog? [yes/no] : N

  9. console> en

  10. Switch# rename  flash:config.old  flash:config.text

  11. 다음과 같이 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

반응형