cisco switch의 ID, PW를 분실하셨을 경우 패스워드 리커버리를 진행해 config정보는 그대로인 상태로 비밀번호만 초기화할 수 있습니다.
방법은 다음과 같습니다.
Cisco switch 비밀번호 초기화
준비물
- 콘솔 케이블
- 콘솔 접속 프로그램
- cisco switch

콘솔 케이블 연결
미리 스위치에 콘솔 연결 시켜놓습니다.
switch mode

switch에 [mode]버튼을 누른고 있는 상태로 전원을 켜 부팅시킵니다. 대략 5초정도 유지해 줍니다.
ROMmon 모드 진입
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:
콘솔 접속 프로그램으로 보면 ” switch: ” 라는 문구가 나올것 입니다.
나오지않았다면 나올때까지 누르고 기다리시면 됩니다.
패스워드 리커버리
switch: flash_init
flash_init 명령어 이후 dir flash: 명령어로 config.text 파일이 있는지 확인해 봅니다.
switch: rename flash:config.text flash:config.backup
이 후 위 명령어로 config.text 파일명을 config.backup으로 변경해 줍니다.
switch: dir flash:
dir flash: 명령어로 파일명이 변경 되었는지 확인해 줍니다.
boot
switch: boot
boot 명령어 재부팅시켜줍니다
cisco switch의 초기 비밀번호는 아이디 패스워드 모두 cisco 입니다.