On the test, I will upgrade the Cisco Catalyst WS-C2960-24TT-L switch.
And so, let’s connect to the switch and switch to elevated privilege mode:
Let’s see the active firmware version:
show version show boot
Let’s see what files are in the switch memory (in my case, the firmware c2960-lanbase-mz.122-25.FX was active):
show file system show flash dir flash: cd c2960-lanbase-mz.122-25.FX dir cd ..
Just in case, we will make a backup copy of the configuration and firmware file to the TFTP server:
copy flash:config.text tftp://192.168.5.5/config.text copy flash:c2960-lanbase-mz.122-25.FX/c2960-lanbase-mz.122-25.FX.bin tftp://192.168.5.5/c2960-lanbase-mz.122-25.FX.bin
How to run TFTP, I described in these articles:
Starting a TFTP server in Windows
Installing and Configuring a TFTP Server in Ubuntu
Download the new firmware version from the official site
Registration is required to download files, it took me about 5 minutes.
Put the firmware file to the TFTP server and copy it to the switch:
copy tftp://192.168.5.5/c2960-lanbasek9-mz.122-55.SE12.bin flash: verify flash:c2960-lanbasek9-mz.122-55.SE12.bin
Go to the configuration mode and specify the new firmware file as the main boot file:
configure terminal boot system flash:c2960-lanbasek9-mz.122-55.SE12.bin
Exit configuration mode, save the configuration and restart the switch:
exit write memory reload
Done, the switch should start with the new firmware.
If the old firmware is not needed, then you can delete:
delete /force /recursive flash:/c2960-lanbase-mz.122-25.FX