How to upgrade Cisco IOS ?
STEP-1: TFTP Server
Need to create TFTP server in your PC/Laptop.
[Suppose your TFTP server IP is 10.1.1.178]
STEP-2: Backup Old IOS
Copy IOS file from Cisco Device to TFTP server
Networkeducative-Switch# show flash:
Directory of flash:/
2 -rwx
5497 Nov 8 2021 12:12:49 +03:00
private-config.text
3 -rwx
796 Mar 1 1993 03:00:42 +03:00
vlan.dat
4 drwx
64 May 27 2021 09:58:11 +03:00 c2960-lanbasek9-mz.150-2.SE11
5 -rwx 10168 Nov 8 2021 12:12:49 +03:00 config.text
6 -rwx 8216 Nov 8 2021 12:12:49 +03:00 multiple-fs
Networkeducative-Switch# dir flash:c2960-lanbasek9-mz.150-2.SE11
Directory of flash:/c2960-lanbasek9-mz.150-2.SE11/563 -rwx 11832946 May 27 2021 10:01:14 +03:00 c2960-lanbasek9-mz.150-2.SE11.bin
Networkeducative-Switch# copy
flash:c2960-lanbasek9-mz.150-2.SE11.bin tftp [for switch to PC]
Address or name of remote host []? 10.1.1.178 [TFTP server
IP Address]
Destination filename [c2960-lanbasek9-mz.150-2.SE11.bin]? press enter
Another command for IOS backup
Copy IOS file from Cisco Device to TFTP server
Networkeducative-Switch# copy flash tftp:
Source filename []?
flash:/c2960-lanbasek9-mz.150-2.SE11/c2960-lanbasek9-mz.150-2.SE11.bin
Address or name of remote host []? 10.1.1.178 [TFTP server
IP]
Destination filename [c2960-lanbasek9-mz.150-2.SE11.bin]?
!!!!!!!!!!!!
18233984 bytes copied in 98.115 secs (185843 bytes/sec)
Networkeducative-Switch#
Another command for IOS backup
Copy IOS file from Cisco Device to TFTP server
copy flash: tftp:
source filename[]?c2960-lanbasek9-mz.150-2.SE11.bin
Address or name of remote host []? 10.1.1.178 [TFTP server
IP]
Destination filename [c2960-lanbasek9-mz.150-2.SE11.bin]?
STEP-3: Delete Flash from Cisco Device
delete flash:c2950-i6q4l2-mz.121-22.EA10a.bin
delete
dir:c2960-lanbasek9-mz.150-2.SE11/c2960-lanbasek9-mz.150-2.SE11.bin [for delete
file inside of folder]
delete /recursive /force flash:c2960-lanbasek9-mz.150-2.SE11 [for directory delete command]
STEP-4: Copy IOS file from PC to Cisco Device
Networkeducative-Switch# copy tftp: flash:
Address or name of remote host []? 10.1.1.178 [TFTP server
IP]
Source filename []? c2950-i6q4l2-mz.121-22.EA10a.bin
Destination filename [c2950-i6q4l2-mz.121-22.EA10a.bin]?
%Warning: There is a file that is already existing with this
name
Do you want to over write? [confirm]
Another Command
Copy IOS file from PC to Cisco Device
Networkeducative-Switch# mkdir c2960-lanbasek9-mz.150-2.SE11
Networkeducative-Switch# copy tftp: flash:
Address or name of remote host []? 10.1.1.178 [TFTP server
IP]
Source filename []? c2960-lanbasek9-mz.150-2.SE11.bin
Destination filename [c2960x-universalk9-mz.152-7.E4.bin]?
flash:/c2960-lanbasek9-mz.150-2.SE11/c2960-lanbasek9-mz.150-2.SE11.bin
Accessing tftp://10.1.1.178/c2960x-universalk9-mz.152-7.E4.bin...
Loading c2960x-universalk9-mz.152-7.E4.bin from 10.1.1.178 (via Vlan555): !!!!
STEP-5:
Networkeducative-Switch# show flash:
Networkeducative-Switch# wr
Networkeducative-Switch# copy run start
reload [after reload switch is up and all old configuration is running fine]
Networkeducative-Switch# copy run start
Networkeducative-Switch# wr
Networkeducative-Switch (config)# boot system flash:/c2960-lanbasek9-mz.150-2.SE11/c2960x-universalk9-mz.152-7.E4.bin
0 Comments