Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Live environment its possible ios upgrade on cisco 2960. please reply on step by step. because im not risk.

user-image
Question added by MuhammadNaeem doja , Network Engineer & Manager of Network Security Consultant , Central Depository Company Of Pakistan Ltd
Date Posted: 2013/10/20
Fahad Faiz
by Fahad Faiz , Executive II , WorldCall Telecom Limited - An Omantel Company

Unfortunately there is no way to upgrade or upload your Switch image (IOS) without causing any downtime on your network. But it take max5 mins or less to upload or upgrade your image on the switch.

All you need to do is get yourself a Laptop or PC whatever you have easily avaiable with you and connect it with your switch (on any port). Lets say you have conencted on fa0/24

 

So first create a VLAN  and assign an ip address on that vlan of your switch and assign the switch port fa0/24 that vlan.

Switch>en

Switch#configure 

Configuring from terminal, memory, or network [terminal]? 

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

Switch(config)#

Switch(config)#vlan100

Switch(config-vlan)#name TFTP

Switch(config-vlan)#exit

Switch(config)#int vlan100

%LINK-5-CHANGED: Interface Vlan100, changed state to up

Switch(config-if)#ip address192.168.0.1255.255.255.0

Switch(config-if)#no shutdown 

 

Switch(config)#int fa0/24

Switch(config-if)#switchport mode access 

Switch(config-if)#switchport access vlan100

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up

Switch(config-if)#exit

 

Now assign an IP address on your PC or laptop whatever you from the same subnet you have jjst assigned on your switch's Vlan100 i.e 192.168.0.1 so lets say we assign an Ip address of192.168.0.2 with an subnet mask of 255.255.255.0 with a default gateway pointing towards the switch i.e.192.168.0.1

And now ping from your switch to your PC or vice versa

Switch#ping192.168.0.2

Type escape sequence to abort.

Sending5,100-byte ICMP Echos to192.168.0.2, timeout is2 seconds:

.!!!!

Success rate is80 percent (4/5), round-trip min/avg/max =0/0/0 ms

Switch#ping192.168.0.2

Type escape sequence to abort.

Sending5,100-byte ICMP Echos to192.168.0.2, timeout is2 seconds:

!!!!!

Success rate is100 percent (5/5), round-trip min/avg/max =0/0/1 ms

 

We have full connectivity between Switch and PC and now install a software called TFTPD32 this is used to make you PC work as a TFTP server. You can find that software from this link  http://tftpd32.jounin.net/  

Open the TFTP32 software and trun it on  and also browse to the folder from the TFTPD32 software where you have your IOS for the switch on your PC. Lets assume that IOS name is Wat$up.bin on your PC.

Go to the switch and copy the current working IOS on the switch as a precaution.First find out the name of the current IOS on your switch by using the following command,

Switch#show flash 

Directory of flash:/

   1  -rw-    4414921          <no date>  c2960-lanbase-mz.122-25.FX.bin

   2  -rw-        616          <no date>  vlan.dat

bytes total ( bytes free)

 

Now copy the c2960-lanbase-mz.122-25.FX.bin name and paste it the follwoing command Here this name c2960-lanbase-mz.122-25.FX.bin will depend on your current switch. 

Switch#copy flash: tftp: 

Source filename []? c2960-lanbase-mz.122-25.FX.bin

Address or name of remote host []?192.168.0.2  

!(here IP address of the PC on which your running TFTP32) 

Destination filename [c2960-lanbase-mz.122-25.FX.bin]? 

Writing c2960-lanbase-mz.122-25.FX.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK -4414921 bytes]

4414921 bytes copied in0.102 secs ( bytes/sec)

 

Now copy your new IOS from the PC to Switch and also delete the current IOS running on the switch 

  Switch#show flash

Directory of flash:/

   1  -rw-    4414921          <no date>  c2960-lanbase-mz.122-25.FX.bin

   2  -rw-        616          <no date>  vlan.dat

bytes total ( bytes free)

 

Switch#delete flash: 

Delete filename []?c2960-lanbase-mz.122-25.FX.bin

Delete flash:/c2960-lanbase-mz.122-25.FX.bin? [confirm]

 

Switch#show flash

Directory of flash:/

   2  -rw-        616          <no date>  vlan.dat

bytes total ( bytes free)

 

Now Copy the IOS from the PC

Switch#copy tftp: flash 

Address or name of remote host []?192.168.0.2

Source filename []? Wat$up.bin

Destination filename [Wat$up.bin]?  

Accessing tftp://192.168.0.2/Wat$up.bin...

Loading Wat$up.bin from192.168.0.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK -4414921 bytes]

4414921 bytes copied in0.091 secs (1318172 bytes/sec)

Switch#show flash 

Directory of flash:/

   3  -rw-    4414921          <no date>  Wat$up.bin

   2  -rw-        616          <no date>  vlan.dat

bytes total ( bytes free)

At the moment your network wouldn't experience any downtime but  as for the new IOS to take effect you would need to reload your switch and then you would experience downtime 

Switch#reload

Proceed with reload? [confirm]

I hope that resolves your problem. 

More Questions Like This