In: Computer Science
What is the list of commands required to upgrade a cisco IOS, ensuring that the system will use the IOS file when booting?
Answer :
How to upgrade cisco IOS
Before upgrading you need to obtain the latest version of IOS. This is usually done by logging in at https://software.cisco.com/ and selecting your device type and version.
Lets upgrade. Here are the steps.:
1. First we need to place the image file to a TFTP server that is reachable by the switch
2. Then, we need to transfer the file from the TFTP server to the flash memory of the switch. This can be done by issuing the copy command on the switch:
SW1# copy tftp flash
SW1#
Note that we need to enter the IP address and the exact filename of the image we wanted to copy.
By issuing the show flash - we can see file was copied to the switch
SW1# show flash:
3. The last step is to configure the switch to load the new IOS version. If we reboot the system now, the old IOS file will be loaded :
SW1# reload
Now need to instruct the switch to load the new file. The easiest way to do it is by using the boot system command.
SW1(config)# boot system c2960 - lanbasek9-mz.150-2.SE4.bin
4. The last step is to save the configuration and reload the device. We can verify that the newer version of IOS is being used by issuing the show version command:
SW1# show version