Posted on

Procedure for Upgrading Cisco Catalyst 2960 Switch IOS

Welcome to ippacket.com.au for another lesson on Cisco switches. In this lesson, we are going to upgrade the IOS of a Cisco Catalyst 2960 switch. The steps are as follows.

 

Step 1: Install a TFTP Server.

Step 2: Download the Cisco IOS Software Image.

Step 3: Provide TCP/IP Connectivity to the L3 Module.

Step 4: Copy the Image into the Switch Through the TFTP.

Step 5: Set Boot Statement.

Step 6: Reload the Switch.

Step 7: Verify the Upgrade.

 

 

Step 1: Install a TFTP Server

 

Install a TFTP server on a TCP/IP-ready workstation or PC. In our lab, I have already installed tftpd32, an open source TFTP server that is freely available. The IP address of the TFTP server is 192.168.1.101 and the subnet mask is 255.255.255.0.

 

tftpd32

 

Follow this procedure:

  1. Configure the TFTP application to operate as a TFTP server (not a TFTP client).
  2. Specify the outbound file directory.

This is the directory that stores the Cisco software images.

The following are the settings on my TFTP server. It’s a pretty basic configuration.

 

tftpd32-settings

Step 2: Download the Cisco IOS Software Image.

 

We are going to upgrade to c2960-lanbasek9-mz.150-2.SE5.bin. We need to download this from the Cisco website and to do this you need a valid Cisco account.

cisco-download

 

Once you have downloaded it copy it to the TFTP Server’s root directory. The root directory is shown next to the label “Current Directory”

root-directory

 

Step 3: Provide TCP/IP Connectivity to the L3 Module.

 

We need to configure the management VLAN of the switch with an ip address. The management VLAN can be any VLAN and by default it’s VLAN 1. In our LAB we will use VLAN 1 as the management VLAN and lets configure it with an ip address of 192.168.1.99 and a subnet mask of 255.255.255.0.

 

WS-2960A#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

WS-2960A(config)#interface vlan 1

WS-2960A(config-if)#ip address 192.168.1.99 255.255.255.0

WS-2960A(config-if)#exit

 

 

Ok let’s verify whether we can reach the TFTP server.

WS-2960A#ping 192.168.1.101

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.101, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/202/1006 ms

 

Step 4: Copy the Image into the L3 Module Through the TFTP.

 

Let’s go ahead and copy the IOS to the flash drive.

WS-2960A#copy tftp flash:

Address or name of remote host []? 192.168.1.101

Source filename []? c2960-lanbasek9-mz.150-2.SE5.bin

Destination filename [c2960-lanbasek9-mz.150-2.SE5.bin]?

Accessing tftp://192.168.1.101/c2960-lanbasek9-mz.150-2.SE5.bin...

Loading c2960-lanbasek9-mz.150-2.SE5.bin from 192.168.1.101 (via Vlan1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK - 11787969 bytes]

 

11787969 bytes copied in 168.518 secs (69951 bytes/sec)

WS-2960A#

 

 

Let’s look at the contents of the Cisco 2960 switches’ flash drive.

WS-2960A#show flash

Directory of flash:/

 

    2  -rwx           5   Mar 1 1993 00:01:27 +00:00  private-config.text

    3  -rwx        1048   Mar 1 1993 00:01:27 +00:00  multiple-fs

    4  -rwx        1227   Mar 1 1993 00:01:27 +00:00  config.text

  624  drwx         192   Mar 1 1993 00:10:42 +00:00  c2960-lanbase-mz.122-35.SE5

    5  -rwx    11787969   Mar 1 1993 00:13:18 +00:00  c2960-lanbasek9-mz.150-2.SE5.bin

 

32514048 bytes total (12388352 bytes free)

 

 

Before rebooting let’s look at the current configuration of the switch by issuing the show version command

WS-2960A#show version 

Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2007 by Cisco Systems, Inc.

Compiled Thu 19-Jul-07 20:06 by nachen

Image text-base: 0x00003000, data-base: 0x00D40000

 

ROM: Bootstrap program is C2960 boot loader

BOOTLDR: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)SEE6, RELEASE SOFTWARE (fc1)

 

WS-2960A uptime is 2 minutes

System returned to ROM by power-on

System image file is "flash:/c2960-lanbase-mz.122-35.SE5/c2960-lanbase-mz.122-35.SE5.bin"

 

cisco WS-C2960-24TT-L (PowerPC405) processor (revision E0) with 61440K/4088K bytes of memory.

Processor board ID FOC1226V3PN

Last reset from power-on

1 Virtual Ethernet interface

24 FastEthernet interfaces

2 Gigabit Ethernet interfaces

The password-recovery mechanism is enabled.

 --More--         

64K bytes of flash-simulated non-volatile configuration memory.

Base ethernet MAC Address       : 00:22:56:11:EE:80

Motherboard assembly number     : 73-11473-04

Power supply part number        : 341-0097-02

Motherboard serial number       : FOC122630KY

Power supply serial number      : DCA122586C9

Model revision number           : E0

Motherboard revision number     : B0

Model number                    : WS-C2960-24TT-L

System serial number            : FOC1226V3PN

Top Assembly Part Number        : 800-29859-01

Top Assembly Revision Number    : B0

Version ID                      : V04

CLEI Code Number                : COM3L00BRC

Hardware Board Revision Number  : 0x01

 

 

Switch   Ports  Model              SW Version              SW Image            

------   -----  -----              ----------              ----------          

*    1   26     WS-C2960-24TT-L    12.2(35)SE5             C2960-LANBASE-M     

 

Step 5: Set Boot Statement.

 

Now we are going to tell the switch to use which IOS when it loads up the next time. This is important especially if we have more than one IOS on the flash drive. Otherwise, even if you do not set this the switch will automatically load the IOS in the flash drive.

Firstly, let’s examine the current boot variable. Well there is nothing in there. That’s fine.

 

WS-2960A#show boot

BOOT path-list      : 

Config file         : flash:/config.text

Private Config file : flash:/private-config.text

Enable Break        : no

Manual Boot         : no

HELPER path-list    :

Auto upgrade        : yes

Auto upgrade path   :

NVRAM/Config file

      buffer size:   65536

Let’s set the boot variable to the new IOS

WS-2960A#conf t

WS-2960A(config)#boot system flash:c2960-lanbasek9-mz.150-2.SE5.bin

WS-2960A(config)#exit

WS-2960A#

 

Let’s verify the configuration

WS-2960A#show boot

BOOT path-list      : flash:c2960-lanbasek9-mz.150-2.SE5.bin

Config file         : flash:/config.text

Private Config file : flash:/private-config.text

Enable Break        : no

Manual Boot         : no

HELPER path-list    :

Auto upgrade        : yes

Auto upgrade path   :

NVRAM/Config file

      buffer size:   65536

 

Make sure to save your configuration as follows.

WS-2960A#copy running-config startup-config

Or

WS-2960A#write memory

My preferred method is the latter.

 

Step 6: Reload the Switch.

 

Issue the reload command and confirm reload.

WS-2960A#

WS-2960A#reload

Proceed with reload? [confirm]

 

Step 7: Verify the Upgrade.

Finally, let’s issue the show version command to verify that switch has loaded with the right IOS.

 

WS-2960A#show version 

Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE5, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2013 by Cisco Systems, Inc.

Compiled Fri 25-Oct-13 13:34 by prod_rel_team

 

ROM: Bootstrap program is C2960 boot loader

BOOTLDR: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)SEE6, RELEASE SOFTWARE (fc1)

 

WS-2960A uptime is 0 minutes

System returned to ROM by power-on

System image file is "flash:c2960-lanbasek9-mz.150-2.SE5.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.

 --More--         

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-C2960-24TT-L (PowerPC405) processor (revision E0) with 65536K bytes of memory.

Processor board ID FOC1226V3PN

Last reset from power-on

1 Virtual Ethernet interface

24 FastEthernet interfaces

2 Gigabit Ethernet interfaces

The password-recovery mechanism is enabled.

 

64K bytes of flash-simulated non-volatile configuration memory.

Base ethernet MAC Address       : 00:22:56:11:EE:80

Motherboard assembly number     : 73-11473-04

Power supply part number        : 341-0097-02

Motherboard serial number       : FOC122630KY

Power supply serial number      : DCA122586C9

Model revision number           : E0

 --More--         Motherboard revision number     : B0

Model number                    : WS-C2960-24TT-L

System serial number            : FOC1226V3PN

Top Assembly Part Number        : 800-29859-01

Top Assembly Revision Number    : B0

Version ID                      : V04

CLEI Code Number                : COM3L00BRC

Hardware Board Revision Number  : 0x01

 

 

Switch Ports Model              SW Version            SW Image                 

------ ----- -----              ----------            ----------               

*    1 26    WS-C2960-24TT-L    15.0(2)SE5            C2960-LANBASEK9-M        

 

 

Configuration register is 0xF

WS-2960A#