cisco - recuperando senha e restaurando configuração


Procedimento Passo a Passo:

1. Conecte-se com o cabo de console o seu PC ao Switch. (faça a conexão com o switch);
2. Desconecte o cabo de força do switch;
3. Aperte o botão localizado junto aos leds do switch e mantenha pressionado enquanto você liga o switch novamente.

O seguinte Prompt deverá aparecer:

boot
switch:

4. Digite o commando: 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:

!--- This output is from a 2900XL switch. Output from
!--- other switches will vary slightly.

5. Digite o commando load_helper

switch: load_helper
switch:

6. Digite o commando dir flash:

Note: Escreva dois pontos ":" após o dir flash.

The switch file system is displayed:

switch: dir flash:

Directory of flash:/
2 -rwx 1803357 <date> c3500xl-c3h2s-mz.120-
5.WC7.bin
!--- This is the current version of software.
4 -rwx 1131 <date> config.text
!--- This is the configuration file.
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:
!--- This output is from a 3500XL switch. Output from
!--- other switches will vary slightly.

7. Escreva rename flash:config.text flash:config.old para renomear o arquivo de configuração.

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

!--- The config.text file contains the password
!--- definition.

8. Digite o commando boot

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: 0x3000
executing...

9. Entre com a opção "n" no prompt para abortar as configurações iniciais.
--- 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]: n

!--- Type "n" for no.

Press RETURN to get started.

!--- Press Return or Enter.

Switch>

!--- The Switch> prompt is displayed.

10. No prompt do switch digite en para entrar no modo privilegiado (enable) -
enable mode.

Switch>en
Switch#



11. Digite rename flash:config.old flash:config.text para renomear o arquivo para seu nome original

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

Destination filename [config.text]

!--- Press Return or Enter.

Switch#

12. Copie a configuração para a memória .

Switch#copy flash:config.text system:running-config

Destination filename [running-config]?
!--- Press Return or Enter.

1131 bytes copied in 0.760 secs
Sw1#
The configuration file is now reloaded.

13. Crie um novo password

Sw1# conf t
!--- To overwrite existing secret password
Sw1(config)#enable secret <new_secret_password>
!--- To overwrite existing enable password
Sw1(config)#enable password <new_enable_password>
!--- To overwrite existing vty password
Sw1(config)#line vty 0 15
Sw1(config-line)#password <new_vty_password>
Sw1(config-line)#login
!--- To overwrite existing console password
Sw1(config-line)#line con 0
Sw1(config-line)#password <new_console_password>
14. Grave as configurações na Nvram com o commando : write memory
Sw1#write memory
Building configuration...
[OK]
Sw1#

Share on Google Plus

About Carlos Castro

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comentários:

Postar um comentário