7 Steps To Upgrade IOS Image On Cisco Catalyst Switch or Router
7 Steps To Upgrade IOS Image On Cisco Catalyst Switch or Router
Anytime Cisco releases a new IOS image for its network switch (or router), it is recommended that you upgrade it.
This article explains 7 easy steps to upgrade IOS image on a cisco switch or router.
Since youll be upgrading the IOS image, make sure you have physical access to the switch and you are in front of it. Use a console cable to connect to the switch.
Please note that the steps given below will be similar to both switches and routers. However this examples shows how to upgrade ios image on a cisco catalyst switch.
# show switch
H/W
Current
Switch#
Role
Mac Address
Priority Version
State
----------------------------------------------------------
*1
Master 0012.abcd.1234
10
Ready
Member 0012.abcd.2345
Ready
If you have only one cisco catalyst switch (non stack mode), follow all the steps mentioned in this document, but youll be doing it only on one flash card.
First, verify the content of the flash cards, using dir flash1: command.
# dir flash1:
c3750-ipbasek9-mz.122-35.SE5.bin
# dir flash2:
c3750-ipbasek9-mz.122-35.SE5.bin
As you see above, both the flash cards contains the current IOS image file, which is version 122.35.SE5
Verify what version of IOS image your switch is currently running. Most likely this will be same as the current IOS image file that you see in your flash card. As you see below, it is using 12.3(35)SE5
# show ver
SW Version
SW Image
----------
----------
1 24
WS-C3750G-24T
12.2(35)SE5
C3750-IPBASEK9-M
2 24
WS-C3750G-24T
12.2(35)SE5
C3750-IPBASEK9-M
# delete /f /r flash1:c3750-ipbase-mz.122.35-35.SE5
# delete /f /r flash2:c3750-ipbase-mz.122-35.SE5
# dir flash1:
# dir flash2:
In the above delete command, /f stands for force, and /r stands for recurssive.
On a side note, you should be using some software to monitor your switch status. If you are not doing it install Nagios, and monitor your switches.
If you are running a TFTPserver on your laptop, and connected to the switch using a console cable, assign a ip-address to your laptop, and put your laptop on the same network as the switch.
Copy the ISO image to the flash as shown below using the copy command. This will ask you to enter the address of the remote host (which is your laptop in this case), and the source filename that needs to be transferred (which is the ISO image you downloaded from cisco website).
Once youve copied it, make sure the file is there on the flash card.
# dir flash1:
c3750-ipbasek9-mz-122-55.SE1.bin
Just to make sure nothing went wrong during the copy, do a MD5 check-sum on this, and compare with the MD5 that you noted down from cisco website while downloading the IOS image. To create MD5 checksum of a file in Cisco catalyst switch, use the verify command as shown below.
If you are running two switches in stack configuration, do the same on the second flash card.
# dir flash2:
# show boot
# config t
# show boot
# write mem
# reload
# show ver
SW Version
SW Image
----------
----------
1 24
WS-C3750G-24T
12.2(55)SE1
C3750-IPBASEK9-M
2 24
WS-C3750G-24T
12.2(55)SE1
C3750-IPBASEK9-M
Make sure to verify your interface and vlan status, to make sure everything is running properly without any issues.
For step 4: If you downloaded a .tar file instead of .bin, you can extract it on the fly. Use the following command in enable mode: archive tar /xtract tftp:///flash:c3750-ipbasek9-mz-122-55.SE1.tar flash: Be aware that in this case the boot command will be: boot system switch all flash:c3750-ipbasek9-mz-122-55.SE1/flash:c3750-ipbasek9-mz-122-55.SE1.bin BTW the .tar contains the files needed by the http-server.
I think the engine messed up my archive command. It was: archive tar /xtract tftp://IP_address/c3750-ipbasek9-mz-122-55.SE1.tar flash:
Heres how I upgrade the IOS on my 3750 series switches at work, via TFTP:
wr mem archive download-sw /safe /allow-feature-upgrade /reload tftp:ip_address/ios_image.tar it will download/verify/redownload if need be, also will wait to delete the old image off the flash once the new image is verified non-corrupt (assuming there is room on the flash to hold a 2nd image, otherwise it will tell you there is not enough room)
also if youre running a stack, if you upgrade the stack master, it should auto-upgrade the rest of the stack, since it will notice a version mismatch (same as if you introduce a virgin switch into a existing/new stack, it will auto-flash the new member)
Hi Ramesh, Thank you for your steps. I am trying to upgrade Cisco IOS on my 3750. I notice that there is a html directory under c3750-ipbase-mz.122-35.SE5: Switch#dir Directory of flash:/c3750-ipbase-mz.122-35.SE5/ 6 -rwx 7175078 Mar 1 1993 00:05:41 +00:00 c3750-ipbase-mz.122-35.SE5.bin 7 drwx 4224 Mar 1 1993 00:06:04 +00:00 html 508 -rwx 598 Mar 1 1993 00:06:42 +00:00 info The html directory seems for HTTP access:
Switch#dir Directory of flash:/c3750-ipbase-mz.122-35.SE5/html/ 8 -rwx 7084 Mar 1 1993 00:05:42 +00:00 toolbar.js 9 -rwx 23783 Mar 1 1993 00:05:42 +00:00 framework.js 10 -rwx 1749 Mar 1 1993 00:05:42 +00:00 appsui.js 11 -rwx 47300 Mar 1 1993 00:05:42 +00:00 sorttable.js 12 -rwx 577 Mar 1 1993 00:05:42 +00:00 title.js 13 -rwx 20829 Mar 1 1993 00:05:43 +00:00 sitewide.js 14 -rwx 62 Mar 1 1993 00:05:43 +00:00 more.txt 15 -rwx 65479 Mar 1 1993 00:05:44 +00:00 fpv.js 16 -rwx 9353 Mar 1 1993 00:05:44 +00:00 combo.js 17 -rwx 13563 Mar 1 1993 00:05:44 +00:00 forms.js 18 -rwx 39650 Mar 1 1993 00:05:44 +00:00 graph.js 19 -rwx 21674 Mar 1 1993 00:05:45 +00:00 stylesheet.css 20 -rwx 865 Mar 1 1993 00:05:45 +00:00 helpframework.js 21 -rwx 1616 Mar 1 1993 00:05:45 +00:00 layers.js 22 -rwx 425 Mar 1 1993 00:05:45 +00:00 reloadstatus.htm 23 -rwx 1654 Mar 1 1993 00:05:45 +00:00 menu.css 24 -rwx 12179 Mar 1 1993 00:05:45 +00:00 setup_report.htm As the flash in my Cisco3750 has insufficient place for the new Cisco IOS, can i simply delete c3750-ipbase-mz.122-35.SE5.bin in c3750ipbase-mz.122-35.SE5/ directory? Then tftp the new Cisco IOS over? Thank you David