How to upgrade a Cisco stack for 2960

How to upgrade a Cisco stack, for instance two Catalyst 2960 switches in stack? One
of the task of a good Network engineer is update the Cisco IO to a!oid "ugs and to
ha!e new features# $his article e%plains the two &ain &ethods to upgrade the IO'
 $() i&age
 *IN i&age
TAR image
$he #tar file is an archi!e file fro& which both the IOS i&age and the CS files are
e%tracted during the upgrade process# If you want to &anage switches or clusters of
switches through a we" interface +H$,-., this is the only file you need to download#
To upgrade p!ease fo!!ow these steps"
/# 0ownload the tar i&age fro& the cisco#co& we"site#
2# Issue the dir flash' co&&and to !erify the a&ount of free &e&ory that you ha!e for
the upgrade#
1# 2se the 3archi!e download4sw5 Cisco co&&and'
Ciscozine#archive download-sw ?
/destination-system specify destination system to receive software
/directory Specify a directory for images
/force-reload Unconditionally reload system after successful sw upgrade
/force-ucode-reload Upgrade UCOD after successful sw upgrade and !efore an unconditional
reload
/imageonly "oad only the #OS image$s%
/leave-old-sw "eave old sw installed after successful sw upgrade
/no-set-!oot Don&t set 'OO( -- leave e)isting !oot config alone
/no-version-chec* s*ip version chec* that prevents incompati!le image install
/only-system-type specify individual system type to !e updated
/overwrite O+ to overwrite an e)isting image
/reload ,eload system $if no unsaved config changes% after successful sw upgrade
/safe -lways load !efore deleting old version
/upgrade-ucode Upgrade UCOD after successful sw upgrade $no reload%
flash./ #mage file
flash0/ #mage file
flash/ #mage file
ftp/ #mage file
http/ #mage file
/
https/ #mage file
rcp/ #mage file
scp/ #mage file
tftp/ #mage file
Ciscozine#
(s you can see, there are se!eral option6 in &y case, I want upgrade the IO !ia ftp,
using the tar i&age &aintaining the pre!ious IO software#
7irst of all, define the userna&e8password of the 7$9 ser!er +re:uired for
downloading the tar file fro& the ftp ser!er.'
ip ftp username ciscozine
ip ftp password c.sc1z.n2
;%ecute the co&&and 3archi!e download4sw 8lea!e4old4sw
ftp'88/92#/6<#/#/218Cisco=ine8c2960s4uni!ersalk94&=#/>042#;>#tar5'
Ciscozine#archive download-sw /leave-old-sw ftp///.304.564.4.02/Ciscozine/c0351s-universal*3-
mz4.71-04S74tar
"oading Ciscozine/c0351s-universal*3-tar4.71-
04S74tar 888888888888888888888888888888888888888888888888888888888888888888888888888
9O+ - .31:5:11/:135 !ytes;
"oading Ciscozine/c0351s-universal*3-tar4.71-
04S74tar 888888888888888888888888888888888888888888888888888888888888888888888888888
e)amining image444
e)tracting info $..1 !ytes%
e)tracting c0351s-universal*3-mz4.71-04S7/info $527 !ytes%
e)tracting info $..1 !ytes%
Stac*ing <ersion =um!er/ .4:3
System (ype/ 1)11111111
#os #mage >ile Size/ 1)11D2011
(otal #mage >ile Size/ 1)1.00-011
?inimum Dram re@uired/ 1)16111111
#mage Suffi)/ universal*3-.71-04S7
#mage Directory/ c0351s-universal*3-mz4.71-04S7
#mage =ame/ c0351s-universal*3-mz4.71-04S74!in
#mage >eature/ #AB"-C,D0BSSEB2DSB?#=DD,-?D?FG.06
2
Old image for switch ./ flash.//c0351s-universal*3-mz4.00-774S2
Old image will !e left alone
Old image for switch 0/ flash//c0351s-universal*3-mz4.00-774S2
Old image will !e left alone
c0351s-universal*3-mz4.71-04S7/ $directory%
e)tracting c0351s-universal*3-mz4.71-04S7/info $527 !ytes%
c0351s-universal*3-mz4.71-04S7/html/ $directory%
c0351s-universal*3-mz4.71-04S7/html/zh/ $directory%
e)tracting c0351s-universal*3-mz4.71-04S7/html/zh/reD)setup4Hs $.0332 !ytes%
e)tracting c0351s-universal*3-mz4.71-04S7/html/zh/reDsmartports4Hs $2612 !ytes%
e)tracting c0351s-universal*3-mz4.71-04S7/html/zh/reDdash!oard4Hs $073. !ytes%
4444 /output omitted/ 4444
e)tracting c0351s-universal*3-mz4.71-04S7/dcDdefaultDprofiles4t)t $52661 !ytes%
e)tracting info $..1 !ytes%
c0351s-universal*3-mz4.71-04S7/ $directory%
e)tracting c0351s-universal*3-mz4.71-04S7/info $527 !ytes%
c0351s-universal*3-mz4.71-04S7/html/ $directory%
c0351s-universal*3-mz4.71-04S7/html/zh/ $directory%
e)tracting c0351s-universal*3-mz4.71-04S7/html/zh/reD)setup4Hs $.0332 !ytes%
e)tracting c0351s-universal*3-mz4.71-04S7/html/zh/reDsmartports4Hs $2612 !ytes%
e)tracting c0351s-universal*3-mz4.71-04S7/html/zh/reDdash!oard4Hs $073. !ytes%
4444 /output omitted/ 4444
e)tracting c0351s-universal*3-mz4.71-04S7/dcDdefaultDprofiles4t)t $52661 !ytes%
e)tracting info $..1 !ytes%
#nstalling $renaming%/ Iflash.//update/c0351s-universal*3-mz4.71-04S7& -J
Iflash.//c0351s-universal*3-mz4.71-04S7&
=ew software image installed in flash.//c0351s-universal*3-mz4.71-04S7
#nstalling $renaming%/ Iflash/update/c0351s-universal*3-mz4.71-04S7& -J
Iflash//c0351s-universal*3-mz4.71-04S7&
=ew software image installed in flash//c0351s-universal*3-mz4.71-04S7
-ll software images installed4
Ciscozine#
$he 3archi!e download4sw5 perfor&s the $() installation two ti&es, one for each
switch?
#ote"
1
If you ha!e a stack &ade "y @ switches, you will see four $() i&age installations#
Issue the 3show "oot5 co&&and in order to !erify that the new i&age is now the
i&age in the *OO$ path4list that will load at the ne%t switch reload#
Ciscozine#show !oot
'OO( path-list / flash//c0351s-universal*3-mz4.71-04S7/c0351s-universal*3-mz4.71-
04S74!in
Config file / flash//config4te)t
Arivate Config file / flash//private-config4te)t
na!le 'rea* / no
?anual 'oot / no
-llow Dev +ey / yes
E"A, path-list /
-uto upgrade / yes
-uto upgrade path /
=<,-?/Config file
!uffer size/ 70:066
(imeout for Config
Download/ 1 seconds
Config Download
via DECA/ disa!led $ne)t !oot/ disa!led%
-------------------
Switch 0
-------------------
'OO( path-list / flash//c0351s-universal*3-mz4.71-04S7/c0351s-universal*3-mz4.71-
04S74!in
Config file / flash//config4te)t
Arivate Config file / flash//private-config4te)t
na!le 'rea* / no
?anual 'oot / no
-llow Dev +ey / yes
E"A, path-list /
-uto upgrade / no
Ciscozine#
@# Issue the reload co&&and at the pro&pt and confir& in order to proceed with the
reload# $he new code re!ision should co&e up and start to run as e%pected on all the
switches in the stack#
Remember" $he co&&ands 3archi!e download4sw5 is applica"le only for #tar i&age
files and do not apply to #"in i&age files#
@
$I# image
$he #"in file is the Cisco IO oftware i&age# If you want to use only the C-I to
&anage the switch, this is the only file you need to download#
$o upgrade follow this steps'
/# 0ownload the "in i&age fro& the cisco#co& we"site#
2# Issue the dir flash' co&&and to !erify the a&ount of free &e&ory that you ha!e for
the upgrade#
1# Copy the "in i&age to the flash of each switch# In this case, two are the switches so
the co&&ands are'
copy ftp/ flash./
copy ftp/ flash0/
@# Configure the "oot !aria"le to "oot the switch with the newly copied IO'
!oot system switch all flash//c0351s-universal*3-mz4.71-04S74!in
># a!e and reload the de!ice#
Remember" If you donAt upgrade the IO on e!ery switch, you will ha!e a %ersio&
mismatch ' $o resol!e this pro"le&, use the co&&and 3archi!e copy4sw 8force4
reload 8o!erwrite 8dest 2 /B as suggested "y the local log?
Ciscozine#show switch
Switch/Stac* ?ac -ddress / 0c254f60642561
E/K Current
Switch# ,ole ?ac -ddress Ariority <ersion State
----------------------------------------------------------
. ?em!er a:75421d.41.61 . . <ersion ?ismatch
L0 ?aster 0c254f60642561 . . ,eady
Ciscozine#
Ciscozine#show log B i #?-F?F,
?ay 00 12/71/1./ M#?-F?F,-5--U(ODCOACDSKD#=#(#-(D/ -uto-copy-software process
initiated for switch num!er$s% .
?ay 00 12/71/77/ M#?-F?F,-5--U(ODCOACDSK/
>
?ay 00 12/71/77/ M#?-F?F,-5--U(ODCOACDSK/ Searching for stac* mem!er to act
?ay 00 12/71/77/ M#?-F?F,-5--U(ODCOACDSK/ as software donor444
?ay 00 12/71/77/ M#?-F?F,-5--U(ODCOACDSK/ Software was not copied
?ay 00 12/71/77/ M#?-F?F,-5--U(OD-D<#SDSKD#=#(#-(D/ -uto-advise-software
process initiated for switch num!er$s% .
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ Systems with incompati!le software
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ have !een added to the stac*4 (he
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ software running on all of the stac*
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ mem!ers has !een scannedN and it has
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ !een determined that the stac* can !e
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ repaired !y issuing the following
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ command$s%/
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ archive copy-sw /force-reload
/overwrite /dest 0 .
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ =ote that this operation
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ will temporarily interrupt
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/ networ* operation4
?ay 00 12/71/76/ M#?-F?F,-5--U(OD-D<#SDSK/
To %erif( that a!! switches are read() use the *show switch+ comma&d"
Ciscozine#show switch
Switch/Stac* ?ac -ddress / a:75421d.41.61
E/K Current
Switch# ,ole ?ac -ddress Ariority <ersion State
----------------------------------------------------------
L. ?aster a:75421d.41.61 .1 . ,eady
0 ?em!er 0c254f60642561 . . ,eady
Ciscozine#
It refers fro&
http///www4cisco4com/c/en/us/support/docs/switches/catalyst-2O71-series-
switches/5:636-upgrade-2O71-stac*4html
ore re!ated"
What’s the Cisco Catalyst 2960-X Series
The Feature of Cisco Catalyst 2960-X Series
6
Comparison of Cisco Catalyst 2960 Switches
Cisco Catalyst 2960 Switch Gettin Starte! Gui!e
More Cisco products and Reviews you can visit: http'88www#1anetwork#co&8"log

"#networ$%com is a worl! lea!in Cisco networ$in pro!ucts supplier& we wholesale
oriinal new Cisco networ$in e'uipments& inclu!in Cisco Catalyst switches& Cisco
routers& Cisco firewalls& Cisco wireless pro!ucts& Cisco mo!ules an! interface car!s
pro!ucts at competiti(e price an! ship to worl!wi!e%
)ur we*site+ http+,,www%"anetwor$%com
Telephone+ -./2-"069-00""
1mail+ info2"#networ$%com
#!!ress+ 2",F 3uc$y 4la5a& "6/-"26 3oc$hart 7oa!& Wanchai& 8on$on
C