Upgrading Software Catalyst 2950 and 2955 Switches Using the Command Line


Step-by-Step Procedure for the 2950/2955 with only the IOS image (.bin file)

For this example, the software on a 2950 is upgraded from version 12.1(12c)EA1 to version 121-13.EA1 with only the IOS image (.bin file). The procedure is the same no matter which version of software you use, including the 2955.
Buy and Sell Cisco Network Gear.
1.

Issue the show version command to view the current version of software that you run. Here is a sample command output:

2950#sh ver
Cisco Internetwork Operating System Software
IOS ™ C2950 Software (C2950-I6Q4L2-M), Version 12.1(12c)EA1,
RELEASE SOFTWARE
(fc1)

!— The current software version is 12.1(12c)EA1.

2.

Go to the LAN Switching Software section of the Downloads ( registered customers only) page.

Select Catalyst 2950 or 2955 software and locate the image you want to download. Note the size of the image in bytes. This example uses the c2950-i6q4l2-mz.121-13.EA1.bin file. The image size is 2888547 bytes or approximately 3 MB. Download the image you want.
3.

Issue the dir flash: command on the 2950/2955 to verify how much free memory you have for the upgrade. Here is a sample command output:

2950#dir flash:
Directory of flash:/
2 -rwx 2774747 Mar 02 1993 00:11:42 c2950-i6q4l2-mz.121-12c.EA1.bin
3 -rwx 5 Mar 01 1993 00:16:08 private-config.text
4 -rwx 916 Mar 01 1993 03:31:05 vlan.dat
22 -rwx 2665985 Mar 02 1993 00:20:15 c2950-i6q4l2-mz.121-11.EA1a.bin

!— Notice that two images are installed already.

6 -rwx 1459 Mar 01 1993 00:16:08 config.text
7 drwx 832 Mar 02 1993 00:14:18 html

!— output suppressed —

7741440 bytes total (578048 bytes free)

!— There is less than 1 MB of memory free out of the total of
!— 8 MB, which is not enough. Delete the old image
!— in order to upgrade.

2950#

Note: If you already have enough room in Flash for the upgrade, you can proceed directly to Step 5.
4.
Buy and Sell Cisco Network Gear.
Issue the delete command to remove the old image in order to make room for the upgrade. Here is a sample command output:

2950#delete flash:c2950-i6q4l2-mz.121-11.EA1a.bin
Delete filename [c2950-i6q4l2-mz.121-11.EA1a.bin]?

!— Press RETURN or ENTER.

Delete flash:c2950-i6q4l2-mz.121-11.EA1a.bin? [confirm]

!— Press RETURN or ENTER.

2950#
2950#dir flash:
Directory of flash:/
2 -rwx 2774747 Mar 02 1993 00:11:42 c2950-i6q4l2-mz.121-12c.EA1.bin

!— You can leave one old image as a backup if you prefer.

3 -rwx 5 Mar 01 1993 00:16:08 private-config.text
4 -rwx 916 Mar 01 1993 03:31:05 vlan.dat
6 -rwx 1459 Mar 01 1993 00:16:08 config.text
7 drwx 832 Mar 02 1993 00:14:18 html

!— output suppressed —

7741440 bytes total (3244544 bytes free)

!— There is now over 3 MB of free Flash memory,
!— which is enough for the upgrade.

2950#

5.

Perform the upgrade through the copy tftp flash: command. Here is a sample command output:

2950#copy tftp flash:
Address or name of remote host []? 20.20.20.2

!— Type your TFTP server IP address.
!— Press RETURN or ENTER.

Source filename []? c2950-i6q4l2-mz.121-13.EA1.bin

!— Press RETURN or ENTER.

Destination filename [c2950-i6q4l2-mz.121-13.EA1.bin]?

!— Press RETURN or ENTER.

Accessing tftp://20.20.20.2/c2950-i6q4l2-mz.121-13.EA1.bin…
Loading c2950-i6q4l2-mz.121-13.EA1.bin from 20.20.20.2 (via Vlan1): !!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK – 2888547 bytes]
2888547 bytes copied in 96.188 secs (30030 bytes/sec)
2950#dir flash:
Directory of flash:/
2 -rwx 2774747 Mar 02 1993 00:11:42 c2950-i6q4l2-mz.121-12c.EA1.bin
3 -rwx 5 Mar 01 1993 00:16:08 private-config.text
4 -rwx 916 Mar 01 1993 03:31:05 vlan.dat
22 -rwx 2888547 Mar 01 1993 00:42:03 c2950-i6q4l2-mz.121-13.EA1.bin

!— The new image is installed in the flash: directory.

6 -rwx 1459 Mar 01 1993 00:16:08 config.text
7 drwx 832 Mar 02 1993 00:14:18 html

!— output suppressed —

7741440 bytes total (355840 bytes free)
2950#verify flash:c2950-i6q4l2-mz.121-13.EA1.bin
Verified flash:c2950-i6q4l2-mz.121-13.EA1.bin

!— Issue the verify command to verify
!— whether the image checksum is correct.

6.

Set a boot system statement so the new image boots on the next reload. Here is a sample command output:

2950#conf t
2950(config)#boot system flash:c2950-i6q4l2-mz.121-13.EA1.bin
2950(config)#end
2950#
2950#sh boot
BOOT path-list: flash:c2950-i6q4l2-mz.121-13.EA1.bin

!— output suppressed —
!— The boot system statement does not show up in the configuration.
!— Issue the show boot command to verify whether the new image
!— boots on the next reload of the switch.

7.
Buy and Sell Cisco Network Gear.
Issue the wr mem command to save your changes and reload the switch. Here is a sample command output:

2950#wr mem
Building configuration…
[OK]
2950#reload
Proceed with reload? [confirm]

!— Press RETURN or ENTER.

00:05:05: %SYS-5-RELOAD: Reload requested

!— output suppressed —

Press RETURN to get started!

!— Press RETURN or ENTER.

!— output suppressed —

8.

Verify whether you run the new image through the show version command. Here is a sample command output:

2950#sh ver
Cisco Internetwork Operating System Software
IOS ™ C2950 Software (C2950-I6Q4L2-M), Version 12.1(13)EA1,
RELEASE SOFTWARE (fc1)

This completes the upgrade procedure for a 2950/2955 using only the IOS image (.bin file).

About Ren (NetXG)
I work to much..

One Response to Upgrading Software Catalyst 2950 and 2955 Switches Using the Command Line

  1. James says:

    This is an excellent guide. What is the difference between upgrading using the .bin file only versus using the tar file with tons of html folders? If I upgrade using the .bin file only, does it render the existing html folder useless?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: