Cisco Catalyst 9300 Series Switch Failing to Boot? Here’s How to Fix It!
So, you’re working on a big project, configuring a complex network? You just unboxed your new Cisco Catalyst 9300 series and as you start setting it up it fails to boot?
We’ve faced the same issue with one of our latest projects and found an easy and quick solution to this issue.
Cisco Catalyst 9300L Switch stuck on the bootloader (switch:) prompt.
Naturally, your mind will go to a hardware issue and you start investigating the reasons why your switch is not booting. You might even go as far as contacting Cisco asking for a replacement. Now, this might be an efficient solution sometimes, but not in this case.
But don’t worry just yet, we’ve been in this situation not too long ago and came up with a solution.
The switch booted to the bootloader (switch:) prompt. The commands were limited in such mode, we tried entering the “boot” command, but the switch then booted to a root prompt. We rebooted the switch but it still got stuck at the bootloader switch prompt. What you notice is that the fan of the switch keeps running at full speed, where normally this happens for a couple of seconds only during booting.
So, we followed the steps below to troubleshoot and get the switch to boot.
1. We checked if the boot image exists in the flash directory of the switch by entering the following command:
switch: dir flash:
The boot image was there, which meant that a missing or corrupted boot image file was not the issue.
2. Then we thought this could be due to an incorrect boot variable set. So, we issued the command:
The output of this command was the following:
ABNORMAL_RESET_COUNT=1 AUTO_SWITCH_CONSOLE_DISABLE=0 BAUD=9600 BOOT=flash:CAT9K_LITE…… BOOT_PARAM=FW_TYPE=prod BSI=0 DEFAULT_GATEWAY=10.1.1.1 IP_ADDRESS=10.1.1.104 IP_SUBNET_MASK=255.255.255.0 MAC_ADDR=XX:XX:XX:XX:XX:XX MANUAL_BOOT=yes MCP_STARTUP_TRACEFLAGS=00000000:00000000 MODEL_NUM=C9200l-24P-4G MOTHERBOARD_SERIAL_NUM=XXXXXXXXXXX RANDOM_NUM=603577602 RET_2_RCALTS=1614803985 ROMMON_BOARDID=0x316 SWITCH_NUMBER=1 SYSTEM_SERIAL_NUM=XXXXXXXXXXX TEMPLATE=advanced TFTP_SERVER=10.1.1.1
As you can see in the output, the boot is set to CAT9k_LITE… file, where it should be booting to packages.conf file
3. So, we changed the boot image file was changed from CAT9k_LITE to packages.conf by issuing the following command:
4. Next, we issued the switch: set command to check whether or not these changes were applied. The output appears in the image below:
5. Then we booted the switch by entering the command:
The switch booted normally and all was fine. However, when we rebooted the switch again, it reentered the bootloader prompt (switch).
6. We used the command set and noticed that the variable MANUAL_BOOT=yes.
This meant that we needed to issue boot every time we restarted the switch to boot to the packages.conf file. Therefore, the solution was to set the manual variable to NO, using the following command:
7. Then, we issued the boot command and reloaded the switch to make sure everything was working well, and the solution was solved.
if you are reading this and you have an issue with a Cisco device, you can share it in the comments below, and we would be more than happy to help!