Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Esto se prob con switch Catalyst 2950. veremos, cmo eliminar la contrasea del switch,
cmo realizar un backup tanto del IOS del switch como del fichero de configuracin y
por ltimo cmo actualizar el switch al IOS que ms nos convenga.
Veamos
1
Una vez que hemos accedido al modo de recuperacin veremos en la consola algo similar a
esto:
switch:
switch: flash_init
Initializing Flash
flashfs[0]: 374 files, 4 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 4757504
flashfs[0]: Bytes available: 2983936
flashfs[0]: flashfs fsck took 6 seconds.
done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch: load_helper
2
Mediante el comando boot iniciamos la carga del sistema :
switch: boot
Switch>enable
Switch# conf t
Switch(config)#enable secret contrasea
Switch#conf t
Switch(config)#hostname c2950-2
c2950-2(config)#interface vlan 1
c2950-2(config-if)#ip address 192.168.10.2 255.255.255.0
c2950-2(config-if)#no shutdown
c2950-2(config-if)#exit
3
Parte 2: Hacer Backup de IOS y config
Antes de actualizar el switch es recomendable realizar una copia de seguridad del IOS
actual, para ello ejecutamos el siguiente comando en el cual indicamos el nombre de la IOS
que tenemos instalada y la direccin ip del servidor tftp:
De la misma manera que hemos realizado el backup del IOS, podemos hacer lo mismo con
el fichero de configuracin:
c2950-2#delete /r /f flash:html
Delete filename [html]?
c2950-2#show flash:
Directory of flash:/
2 -rwx 109 Mar 01 1993 00:01:42 +00:00 info
3 -rwx 269 Jan 01 1970 00:01:47 +00:00 env_vars
4 -rwx 1270 Mar 01 1993 00:16:56 +00:00 config.text
5 -rwx 616 Mar 05 1993 22:13:14 +00:00 vlan.dat
6 -rwx 5 Mar 01 1993 00:16:56 +00:00 private-config.text
8 -rwx 3110758 Mar 01 1993 00:03:15 +00:00 c2950-i6q4l2-mz.121-22.EA6.bin
378 -rwx 109 Mar 01 1993 00:04:21 +00:00 info.ver
7741440 bytes total (4624896 bytes free)
Como no vamos a tener espacio suficiente para la actualizacin, eliminamos la imagen del
IOS actual. No pasa nada puesto que la tenemos cargada en la RAM:
c2950-2#delete flash:c2950-i6q4l2-mz.121-22.EA6.bin
4
Y con el siguiente comando desempaquetamos y copiamos los ficheros necesarios en la
memoria flash:
c2950-2#verify flash:c2950-i6k2l2q4-mz.121-22.EA14.bin
Verified flash:c2950-i6k2l2q4-mz.121-22.EA14.bin
c2950-2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
c2950-2(config)#boot system flash:c2950-i6k2l2q4-mz.121-22.EA14.bin
c2950-2(config)#exit
c2950-2#show boot
BOOT path-list: flash:c2950-i6k2l2q4-mz.121-22.EA14.bin
Config file: flash:/config.text
Private Config file: flash:/private-config.text
Enable Break: no
Manual Boot: no
HELPER path-list:
NVRAM/Config file
buffer size: 32768
c2950-2#write
Building configuration
[OK]
c2950-2#reload
c2950-2#show version
Cisco Internetwork Operating System Software
IOS C2950 Software (C2950-I6K2L2Q4-M), Version 12.1(22)EA14, RELEASE SOFTWARE
(fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by cisco Systems, Inc.
Compiled Tue 26-Oct-10 10:35 by nburra
Image text-base: 0x80010000, data-base: 0x80680000
ROM: Bootstrap program is C2950 boot loader
c2950-2 uptime is 2 minutes
System returned to ROM by power-on
System image file is flash:c2950-i6k2l2q4-mz.121-22.EA14.bin