Voici la procédure pour mettre à jour un switch Cisco Catalyst WS-C2950G-24-EI ou tout autre 2950…

Le 02 novembre 2010, Cisco publie la version 12.1.22-EA14(ED) d’IOS pour le 2950. Téléchargements Cisco

Pré-requis: un serveur tftp sur le réseau local…

Connexion au switch… via ssh, telnet ou cable console, au choix…

philb@core2:~$ ssh c2950.philb.local
philb@c2950.philb.local's password: 

c2950>enable
Password:
c2950#


Vérification de la version courante

c2950#sh ver
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6K2L2Q4-M), Version 12.1(22)EA13, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2009 by cisco Systems, Inc.
Compiled Fri 27-Feb-09 22:20 by amvarma
Image text-base: 0x80010000, data-base: 0x80680000                                                       

ROM: Bootstrap program is C2950 boot loader                                                              

c2950 uptime is 32 weeks, 4 days, 8 hours, 39 minutes
System returned to ROM by power-on
System image file is "flash:/c2950-i6k2l2q4-mz.121-22.EA13.bin"                                          

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.                                     

A summary of U.S. laws governing Cisco cryptographic products may be found at:                           

http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

cisco WS-C2950G-24-EI (RC32300) processor (revision J0) with 19912K bytes of memory.
Processor board ID FOC0809X1WX
Last reset from system-reset
Running Enhanced Image
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0F:34:E2:C0:C0
Motherboard assembly number: 73-7280-05
Power supply part number: 34-0965-01
Motherboard serial number: FOC08081R6D
Power supply serial number: DAB08083LBM
Model revision number: J0
Motherboard revision number: A0
Model number: WS-C2950G-24-EI
System serial number: FOC0809X1WX
Configuration register is 0xF

c2950#

Nous avons actuellement la version 12.1(22)EA13.

Vérification du contenu de la flash:

c2950#dir
Directory of flash:/

    2  -rwx        3161  Mar 14 1993 11:22:10 +00:00  config.text
    3  -rwx     3721946  Mar 01 1993 00:12:23 +00:00  c2950-i6k2l2q4-mz.121-22.EA13.bin
    4  -rwx         112  Mar 01 1993 00:10:08 +00:00  info
    5  -rwx          24  Mar 01 1993 00:56:17 +00:00  private-config.text.renamed
    6  drwx        4416  Mar 01 1993 00:13:20 +00:00  html
  330  -rwx         112  Mar 01 1993 00:13:50 +00:00  info.ver
  331  -rwx        2179  Mar 01 1993 00:56:17 +00:00  config.text.renamed
  332  -rwx         736  Mar 02 1993 18:36:06 +00:00  vlan.dat.renamed
  333  -rwx        3603  Mar 14 1993 11:22:10 +00:00  private-config.text
  334  -rwx        1048  Mar 14 1993 11:22:10 +00:00  multiple-fs
  335  -rwx         796  Apr 18 1993 03:08:47 +00:00  vlan.dat

7741440 bytes total (2133504 bytes free)
c2950#

Sauvegarde de la config sur le serveur tftp, pour pouvoir la restaurer en cas de problème:

c2950#copy startup-config tftp
Address or name of remote host []? 192.168.100.49
Destination filename [c2950-confg]?
!!
3161 bytes copied in 0.044 secs (71841 bytes/sec)
c2950#

Effacement de l’ancienne image

c2950#delete flash:c2950-i6k2l2q4-mz.121-22.EA13.bin
Delete filename [c2950-i6k2l2q4-mz.121-22.EA13.bin]?
Delete flash:c2950-i6k2l2q4-mz.121-22.EA13.bin? [confirm]
c2950#

Copie de la nouvelle image depuis le serveur tftp vers la flash

c2950#copy tftp flash:
Address or name of remote host []? 192.168.100.49
Source filename []? c2950-i6k2l2q4-mz.121-22.EA14.bin
Destination filename [c2950-i6k2l2q4-mz.121-22.EA14.bin]?
Accessing tftp://192.168.100.49/c2950-i6k2l2q4-mz.121-22.EA14.bin...
Loading c2950-i6k2l2q4-mz.121-22.EA14.bin from 192.168.100.49 (via Vlan2): !!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!
[OK - 3722814 bytes]

3722814 bytes copied in 96.680 secs (38507 bytes/sec)
c2950#

Vérification de la nouvelle image

c2950#verify c2950-i6k2l2q4-mz.121-22.EA14.bin
Verified c2950-i6k2l2q4-mz.121-22.EA14.bin
c2950#

C’est OK !

Si on souhaite utiliser / mettre à jour l’interface Web d’administration…

c2950#delete flash:html/*
Delete filename [html/*]?
Delete flash:html/more.txt? [confirm]
Delete flash:html/fpv.js? [confirm]
Delete flash:html/ip.js? [confirm]
Delete flash:html/sitewide.js? [confirm]
Delete flash:html/forms.js? [confirm]
...
c2950#archive tar /xtract tftp://192.168.100.49/c2950-i6k2l2q4-tar.121-22.EA14.tar flash:
Loading c2950-i6k2l2q4-tar.121-22.EA14.tar from 192.168.100.49 (via Vlan2): !
extracting info (112 bytes)
extracting c2950-i6k2l2q4-mz.121-22.EA14.bin (3722814 bytes)OOO!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
html/ (directory)
extracting html/graph_dash.js (19448 bytes)!!!!
extracting html/ajax.js (28348 bytes)!!!!!!
extracting html/graph.js (39650 bytes)!!!!!!!!
extracting html/appsui.js (1749 bytes)
extracting html/combo.js (9353 bytes)!!
...
c2950#

OK, reload du switch… l’idéal étant d’être connecté via le cable console, pour suivre le boot…

c2950#reload
Proceed with reload? [confirm]Connection to c2950.philb.local closed by remote host.
Connection to c2950.philb.local closed.
philb@core2:~$

Après quelques minutes, reconnexion sur le switch, et vérification de la version d’IOS

philb@core2:~$ ssh c2950.philb.local
philb@c2950.philb.local's password: 

c2950>sh ver
Cisco Internetwork Operating System Software
IOS (tm) 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 uptime is 2 minutes
System returned to ROM by power-on
System image file is "flash:/c2950-i6k2l2q4-mz.121-22.EA14.bin"

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:

http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

cisco WS-C2950G-24-EI (RC32300) processor (revision J0) with 19911K bytes of memory.
Processor board ID FOC0809X1WX
Last reset from system-reset
Running Enhanced Image
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0F:34:E2:C0:C0
Motherboard assembly number: 73-7280-05
Power supply part number: 34-0965-01
Motherboard serial number: FOC08081R6D
Power supply serial number: DAB08083LBM
Model revision number: J0
Motherboard revision number: A0
Model number: WS-C2950G-24-EI
System serial number: FOC0809X1WX
Configuration register is 0xF

c2950>

C’est OK, le switch à été mis à jour !

Pour plus d’infos: Upgrading Software Images on Catalyst 2950 and 2955 Series Switches Using the Command Line Interface