Prework
It is assumed that you have a active Cisco Support contract in place to cover your equipment.
To get the latest IOS version, go to: https://software.cisco.com/download/home. Login and then browse to your specific switch model. Then download the latest or your desired IOS version.
Move the *.bin file to your TFTP server. Check out our Windows - Setup a TFTP Server article.
Update Process
Create backup config
Before we get to ahead of ourselves, it is a good idea to create a backup of the startup config for the switch before we make any changes. To do this, use a console cable or SSH into the switch, then run the following command:
Firmware Copy process
Engineers or Sys Admins like to leave an old copy of a IOS firmware on the switch's flash storage. Use the following command to see what is currently stored on the flash.
If there is an old version of IOS or a file that you would like to delete before you copy files over, use the following command. To remove the annoying confirmation, use: /f to force the delete and use /r to make it recursive delete. This is helpful for directories that you would like to remove.
Alright, let's copy the bits over to the switch. The format for the command is: copy source destination flash:. Type this from the console or SSH session on the switch.
After the file has been copied, please verify the checksum. The original checksum hash can be found on Cisco's website where you downloaded the firmware from.
Apply Firmware
Take note of the current version using this command.
Take note of the path of the current IOS version.
Enter configure terminal mode then disable the current IOS from loading at boot. Specify the new IOS version that you want to load at the next boot. You will need to enter the file path in the commands.
Exit the configure terminal mode then use the shortcut wr to copy the running-config to the startup-config.
Are you ready for this? How exciting! Use the reload command to reboot the switch. When you hit y on your keyboard, the system will reboot. It can take a few seconds for the screen to actually update though.
Cleanup
To validate our work, use the show version and show boot commands to verify you are now using the new IOS version and that the path to the file is correct.
As previously stated, some engineers prefer to keep the previous IOS version on the switch in case they have to role back for whatever reason. So this step is at your discretion. Generally speaking, we opt to leave the old IOS version on the switch for a few weeks then we remove it (if we remember).
References
- https://support.hpe.com/hpesc/public/docDisplay?docId=c02844731&docLocale=en_US
- https://thenetworkingcorner.wordpress.com/2011/11/02/ios-upgrade-on-a-cisco-3560/
- https://networklessons.com/cisco/ccna-routing-switching-icnd1-100-105/upgrade-cisco-ios-image
- https://www.manageengine.com/network-configuration-manager/configlets/cisco-ios-firmware-upgrade.html