Upgrade Firmware / Bootloader on Cisco SG300 / SG500 Switches
By Aaron Ekinaka on January 16, 2018 - Tags: Bootloader, Cisco, CLI, Console, Firmware, SF300-08, SF300-24MP, SG300, SG300-10, SG300-10MP, SG300-10MPP, SG300-10P, SG300-10PP, SG300-10SFP, SG300-20, SG300-28, SG300-28MP, SG300-28P, SG300-28PP, SG300-28SFP, SG300-52, SG300-52MP, SG300-52P, SG500, Switching, TFTP - Category: Tech Support
Cisco continues to put out new firmware for their SG series switches which adds some nice features and more stability to the product line. Several companies I have worked in the small / medium business sector are turning to these switches for their inexpensive port density and management options in an access layer switch. Since these units are available from all kinds of retailers online (and are so cheap it makes no real sense to put Smart Net contracts on them) you may find that even if you buy them at the same time, they can come with different versions of firmware installed. Working on a fleet of gear all operating on the same version of code helps streamline support and troubleshooting.
A straight-forward guide to updating a SG300 or SG500 switch wasn’t easily found online, so here’s my guide including some of the tips I discovered along the way. There are some slight differences in the upgrade process between the two switch lines (SG300 and SG500) but the overall procedure is the same.
Some assumptions before we start:
- Have a TFTP server configured on the same network as your switch so you can copy the bootloader and firmware images onto the switch.
- Writing a new firmware to a SG switch can wipe the configuration, so you will want to make a backup first or just be prepared to set it up from scratch again once the upgrade(s) are complete. Testing from different levels of 1.4.x code did not erase the startup configuration. Do remote upgrades with caution!
- We will use a SG300-10 for this guide, but the process is similar for all SG300 and SG500 systems.
Please read this entire guide before getting started. There are some notes about upgrading from older versions of code prior to 1.3.5.x at the bottom of this article.
Step 1: Check your current firmware and bootloader versions.
For this example we are going to upgrade to 1.4.8.06. The current version loaded on the switch is at 188.8.131.52, you can check this using the show version command.
Switch#show version SW version 184.108.40.206 ( date 21-Dec-2015 time 16:45:33 ) Boot version 1.3.5.06 ( date 21-Jul-2013 time 15:12:10 ) HW version V05
Step 2: Backup the existing configuration so that after the switch is upgraded all we need to do is setup management access and we can copy it back on again.
Switch#copy run tftp://10.2.100.96/switch_config_1-15-18 21-Dec-2015 22:26:36 %COPY-I-FILECPY: Files Copy - source URL running-config destination URL tftp://10.2.100.96/switch_config_1-15-18 ...!!! 21-Dec-2015 22:26:45 %COPY-N-TRAP: The copy operation was completed successfully Copy: 12224 bytes copied in 00:00:09 [hh:mm:ss]
Step 3: Download the images from Cisco.com (or another switch) and make them available via TFTP server. Copy the new image into flash on the switch and then set it as the active firmware image. Note that the firmware image file ends in .ros and the bootloader is .rfb. Be sure to use the image keyword at end to indicate that this is a firmware image and not the bootloader.
Switch#copy tftp://10.2.100.96/sx300_fw-1486.ros image 21-Dec-2015 22:35:37 %COPY-I-FILECPY: Files Copy - source URL tftp://10.2.100.96/sx300_fw-1486.ros destination URL flash://image !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! < extra !!!'s removed for readability > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 21-Dec-2015 22:38:03 %COPY-N-TRAP: The copy operation was completed successfully Copy: 7492438 bytes copied in 00:02:26 [hh:mm:ss]
A quick check shows the switch now has two images in flash.
Switch#show bootvar Image Filename Version Date Status ----- --------- --------- --------------------- ----------- 1 image-1 220.127.116.11 10-Jul-2017 17:14:29 Not active 2 image-2 18.104.22.168 21-Dec-2015 16:45:33 Active* "*" designates that the image was selected for the next boot
Step 4: Set the newly uploaded image as active.
Switch#boot system image-1 Switch#show bootvar Image Filename Version Date Status ----- --------- --------- --------------------- ----------- 1 image-1 22.214.171.124 10-Jul-2017 17:14:29 Not active* 2 image-2 126.96.36.199 21-Dec-2015 16:45:33 Active "*" designates that the image was selected for the next boot
Step 5: Reboot the switch using the reload command and be sure to save changes before doing so.
Switch#reload You haven't saved your changes. Are you sure you want to continue ? (Y/N)[N] Y This command will reset the whole system and disconnect your current session. Do you want to continue ? (Y/N)[N] Y Shutting down ... Shutting down ... Shutting down ...
Step 6: Wait for the switch to reboot, then verify that the new image is being used.
Switch#show version SW version 188.8.131.52 ( date 10-Jul-2017 time 17:14:12 ) Boot version 1.3.5.06 ( date 21-Jul-2013 time 15:12:10 ) HW version V05
That’s pretty much it! Check and see if all your configuration options are still present. If you can still get to your management VLAN interface you’re probably in good shape, enjoy your upgraded switch.
If you are running a 1.3.5.x code on a SG300 or 1.3.7.x on a SG500, you will need to perform a couple of intermediary upgrades before proceeding directly to 1.4.x. The process is essentially the same for SG300 and SG500‘s, but the code version that you can make the switch to 1.3 to 1.4 is slightly different.
For example, on a SG300 switch. You must first perform the upgrade outlined in the above steps to get up to 1.3.5.x, then install the 1.3.5.06 bootloader. When the bootloader is installed and the switch is rebooted there is an upgrade that takes place in flash memory structure that is needed to run the 1.4 versions of code.
To install the bootloader, it’s pretty simple. Just make sure that the sx300_boot-1.3.5.06.rfb file is accessible via TFTP then run these commands on the switch:
Switch#copy tftp://10.2.100.96/sx300_boot-1.3.5.06.rfb boot
During the reboot of the switch, it will upgrade the flash file system.
For more information read the section: Changes in Flash File System located in the Cisco SG300 184.108.40.206 release notes. Just in case this link isn’t working i’ve attached a PDF copy of the release notes to review: R_1_4_8_6_RN