Você está na página 1de 4

Cisco Catalyst password recovery

BY ANDR ORTEGA / SEGUNDA-FEIRA, 16 FEVEREIRO 2009 / PUBLISHED


IN CISCO, CONFIGURAO, SWITCHES, UTEIS

Segue abaixo um passo a passo para recuperar (ou zerar) a senha de switches layer 2 das
famlias 2900XL/3500XL, 2940, 2950/2955, 2960 e 2970. Este procedimento tambm
funciona para switches layer 3 da sries 3550, 3560 e 3750.

Apesar do tamanho este procedimento extremamente simples. Basta seguir os passos


abaixo.

1) Conecte um cabo console ao equipamento e abra um Emulador de Terminal


(Hyperterminal, Tera Terminal, ou qualquer outro) utilizando a seguinte configurao:

Bits per second (baud): 9600

Data bits: 8

Parity: None

Stop bits: 1

Flow Control: Xon/Xof

Para os iniciantes: Conectando um terminal na porta console de um switch Catalyst

2) Tire o cabo de fora do switch.

3) Aperte o boto mode (localizado na frente, do lado esquerdo do equipamento) e ligue


novamente.

Ilustrao: 3524XL e 2950-24.

a) 2900XL, 3500XL e 3550: Solte o boto mode quando o LED sobre a porta 1 apagar.
b) 2940 e 2950: Solte o boto mode quando o LED STAT apagar (aps soltar o boto mode,
o LED SYST piscar mbar).
c) 2960 e 2970: Solte o boto mode quando o LED SYST piscar mbar e voltar
para verde (aps soltar o boto mode, o LED SYST piscar verde).
d) 3560 e 3750: Solte o boto mode quando o LED SYST ficar verde (sem piscar). Aps soltar
o boto mode o LED SYST piscar verde.
e) 2955: Nos switches 2955 no preciso apertar o boto mode. Basta durante o boot
enviar um break. Para isso devemos apertar Ctrl+Break no teclado (se voc estiver usando
o Hyperterminal). Neste link temos outras combinaes para outros terminais.

Devemos esperar at a mensagem abaixo para aperte Ctrl+Break


C2955 Boot Loader (C2955-HBOOT-M) Version 12.1(0.0.514), CISCO DEVELOPMENT
TEST
VERSION
Compiled Fri 13-Dec-02 17:38 by madison
WS-C2955T-12 starting
Base ethernet MAC Address: 00:0b:be:b6:ee:00
Xmodem file system is available.
Initializing Flash
flashfs[0]: 19 files, 2 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 4510720
flashfs[0]: Bytes available: 3230720
flashfs[0]: flashfs fsck took 7 seconds.
done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
*** The system will autoboot in 15 seconds ***
Send break character to prevent autobooting.

4) A partir daqui, qualquer que seja o switch o procedimento igual. Digite flash_init.

switch: flash_init
Initializing Flash
flashfs[0]: 143 files, 4 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 2729472
flashfs[0]: Bytes available: 883200
flashfs[0]: flashfs fsck took 86 seconds
.done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch:

5) Digite load_helper.

switch: load_helper
switch:

6) Digite dir, para verificar o nome do arquivo de configurao.

switch: dir flash:


Directory of flash:/
2 -rwx 1803357 <date> c3500xl-c3h2s-mz.120-5.WC7.bin
4 -rwx 1131 <date> config.text
5 -rwx 109 <date> info
6 -rwx 389 <date> env_vars
7 drwx 640 <date> html
18 -rwx 109 <date> info.ver
403968 bytes available (3208704 bytes used)
switch:

7) Renomeie o arquivo de configurao.

switch: rename flash:config.text flash:config.old


switch:

8) Digite boot, para que o switch reinicie.

switch: boot
Loading "flash:c3500xl-c3h2s-mz.120-5.WC7.bin"
###############################
##############################################################
##################
##############################################################
########
File "flash:c3500xl-c3h2s-mz.120-5.WC7.bin" uncompressed and installed, entry po
int: 03000
executing

9) O switch bootar sem nenhuma configurao (zerado). Entre no modo de configurao


privilegiado e renomei o arquivo de configurao, voltando ao normal. Depois salve a
configurao na nvram:

switch>en
Switch#
Switch#rename flash:config.old flash:config.text
Destination filename [config.text]
Switch#
Switch#copy flash:config.text system:running-config
Destination filename [running-config]?
1131 bytes copied in 0.760 secs
Sw1#

Neste momento a configurao inteira foi restaurada, inclusive a senha.

10) Reconfigure as senhas:

Sw1# conf t
Sw1(config)#enable secret <new_secret_password>
Sw1(config)#enable password <new_enable_password>
Sw1(config)#line vty 0 15
Sw1(config-line)#password <new_vty_password>
Sw1(config-line)#login
Sw1(config-line)#line con 0
Sw1(config-line)#password <new_console_password>

11) Salve a configurao e PRONTO!

Sw1#write memory
Building configuration
[OK]
Sw1#