Você está na página 1de 5

Recuperacion de password de swicth 4500 y otros superiores

Freddy Alfonso Beltran Miranda

ingreso al swicth en modo consola y le doy el comando dir como lo muestra la figura

observo dos archivos importantes para la recuperacion el 3com

3 -rw- 5769 Mar 09 2010 12:00:00 3comoscfg.def (carga configuracion factory default. Es
tomado cuando en modo Bootroom salto SKIP el 3comcfg.cfg
4 (*) -rw- 5016 Apr 02 2000 00:00:16 3comoscfg.cfg ( carga la configuracion guardada en el
swictch)

si quiero ver quiene esta arrancando aplico el comando display startup, se observa que esta rrancando
el archivo

si quiero ver la configuracion del archivo 3comcfg.cfg aplico el siguiente comando display saved-
configuration
o tambien puedo utilizar el display current-configuration

ahora si quiero guardar la configuracion en un archivo llamado mio hago lo siguiente:


<4500>save mio.cfg
The current configuration will be saved to flash:/mio.cfg [Y/N]:y
Now saving current configuration to the device.
Saving configuration. Please wait...
..
Unit1 save configuration flash:/mio.cfg successfully

<4500>
%Apr 2 00:18:19:242 2000 4500 CFM/3/CFM_LOG:- 1 -Unit1 saved configuration succ
essfully.

Si le doy un dir para visualizar el archivo creado anteriormente obtengo lo siguiente:

Username:admin
Password:
<4500>
%Apr 2 00:44:18:687 2000 4500 SHELL/5/LOGIN:- 1 - admin(aux0) in unit1 login
<4500>dir
Directory of unit1>flash:/

1 (*) -rw- 4150078 Mar 09 2010 12:00:00 s3n03_03_02s168p02.app


2 (*) -rw- 984396 Mar 09 2010 12:00:00 s3p04_01.web
3 -rw- 5769 Mar 09 2010 12:00:00 3comoscfg.def
4 (*) -rw- 5016 Apr 02 2000 00:00:16 3comoscfg.cfg
5 -rw- 5016 Apr 02 2000 00:18:16 mio.cfg

7239 KB total (2079 KB free)

(*) -with main attribute (b) -with backup attribute


(*b) -with both main and backup attribute

<4500>

para arrancar el archvio creado hago los siguiente

<4500>startup saved-configuration mio.cfg


Please wait.............Done!
<4500>
%Apr 2 01:04:14:756 2000 4500 CFM/3/CFM_LOG:- 1 -Unit1 set the configuration su
ccessfully.

Ahora observo que el archvio ira arrancar la proxima vez:


<4500>display startup
UNIT1:
Current Startup saved-configuration file: flash:/3comoscfg.cfg
Next main startup saved-configuration file: flash:/mio.cfg
Next backup startup saved-configuration file: NULL
Bootrom-access enable state: enabled
<4500>

por ultimo reboot:

<4500>reboot
Start to check configuration with next startup configuration file,
please wait.........Checking is finished!
This will reboot device. Continue? [Y/N] y

ahora observo que subio cargo el archivo mio.cfg al swicth

<4500>display startup
UNIT1:
Current Startup saved-configuration file: flash:/mio.cfg
Next main startup saved-configuration file: flash:/mio.cfg
Next backup startup saved-configuration file: NULL
Bootrom-access enable state: enabled
<4500>

ahora ingreso a modo bootrom con el teclas ctrl+b antes que termine el numero 4

Press Ctrl-B to enter Boot Menu... 1

password:

BOOT MENU

1. Download application file to flash


2. Select application file to boot
3. Display all files in flash
4. Delete file from flash
5. Modify bootrom password
6. Enter bootrom upgrade menu
7. Skip current configuration file
8. Set bootrom password recovery
9. Set switch startup mode
0. Reboot
Enter your choice(0-9): 7

ahora ingreso a la opcion 7 para saltar el archivo mio.cfg y dejar que cargue el 3comcfg.cfg

Enter your choice(0-9): 7


The current setting will boot with current configuration file when rebooted.
Are you sure you want to skip current configuration file when reboot? Yes or No
[Y/N]y

BOOT MENU

1. Download application file to flash


2. Select application file to boot
3. Display all files in flash
4. Delete file from flash
5. Modify bootrom password
6. Enter bootrom upgrade menu
7. Skip current configuration file
8. Set bootrom password recovery
9. Set switch startup mode
0. Reboot

Enter your choice(0-9): 0

si ingreso al swicth y observo que no tiene archvio de arranque null


<4500>display startup
UNIT1:
Current Startup saved-configuration file: NULL
Next main startup saved-configuration file: flash:/mio.cfg
Next backup startup saved-configuration file: NULL
Bootrom-access enable state: enabled
<4500>

ahora para hacer que arranque el archivo 3comcfg.cfg

<4500>startup saved-configuration 3comoscfg.cfg


Please wait.............Done!
<4500>
%Apr 2 00:03:14:751 2000 4500 CFM/3/CFM_LOG:- 1 -Unit1 set the configuration su
ccessfully.

DIOS LOS BENDIGA

Você também pode gostar