Skip to content
Website under migration: We are moving to a new design. Some pages may look different or load slowly for a few days. Thank you for your patience.
SwitchFirewall
IPv4 Detecting…
IPv6 Detecting…

How to Recover Cisco Devices Stuck in ROMMON Mode Using a TFTP Server

Last updated:

ROMMON Mode:

In Cisco networking, the ROMMON (ROM Monitor) mode is a low-level operating mode that provides limited functionality, allowing administrators to troubleshoot or recover the device in case of issues such as a missing or corrupt IOS image. One of the most common tasks performed in ROMMON mode is retrieving an IOS image from a TFTP server to restore or upgrade a Cisco device’s operating system.

In this blog post, we’ll walk through the process of connecting a Cisco device to a TFTP server in ROMMON mode and loading a new IOS image onto the device.

Prerequisites:

Before you begin, ensure that you have the following:

Make sure the Cisco device and your PC/TFTP server are in the same subnet for the TFTP transfer to succeed.

Steps to Recover from ROMMON Mode

1. Accessing ROMMON Mode

If your Cisco device is stuck in a boot loop or you want to manually load a new IOS image, you first need to access ROMMON mode. Here's how you can get to ROMMON mode:

2. Setting Up the Network Configuration in ROMMON Mode

To connect to the TFTP server, you need to configure the network settings, such as the device’s IP address, subnet mask, default gateway, and the TFTP server’s address.

rommon 1 > IP_ADDRESS=192.168.1.1
rommon 2 > IP_SUBNET_MASK=255.255.255.0
rommon 3 > DEFAULT_GATEWAY=192.168.1.254
rommon 4 > TFTP_SERVER=192.168.1.10
rommon 5 > TFTP_FILE=c2800nm-advipservicesk9-mz.124-12.bin

Let’s break down what each of these commands does:

3. Initiating the TFTP Download

Once the settings are configured, start the transfer with:

rommon 6 > tftpdnld

You will be prompted with a confirmation message. Type yes or y to proceed.

The Cisco device will contact the TFTP server, retrieve the image file, and load it into memory.

4. Verifying the Download Process

Monitor the console output. If the download is successful, the screen will show a message confirming that the transfer is complete and the image is loaded.

5. Booting the New IOS Image

To boot the device using the downloaded IOS image, use the following command:

rommon 7 > boot flash:c2800nm-advipservicesk9-mz.124-12.bin

6. Setting Boot Variable Permanently

After successfully booting into the IOS, configure the device to boot from this image automatically in future reloads:

Router# configure terminal
Router(config)# boot system flash:c2800nm-advipservicesk9-mz.124-12.bin
Router(config)# exit
Router# write memory

This ensures that the router will consistently boot using the correct IOS image on future restarts, as we have configured the boot image and saved the configurations.

Troubleshooting Tips:

Conclusion:

Recovering or upgrading your Cisco device’s IOS image using a TFTP server in ROMMON mode is a practical and essential skill for network administrators. By carefully configuring the network parameters, initiating the image transfer, and setting the correct boot variable, you can restore a non-booting device and ensure proper functionality.