30
Using the ROM Monitor
OL-5997-02
How to Use the ROM Monitor—Typical Tasks
DETAILED STEPS
Examples
Sample Output for the dir flash: Command in ROM Monitor mode
rommon >
dir flash:
File size Checksum File name
2229799 bytes (0x220627) 0x469e c2801-j-m2.113-4T
What to Do Next
Now that you have a system image running on your router, configure the router to load the correct image
at the next system reload or power-cycle. See the following documents:
•
” chapter of the
Cisco IOS Configuration Fundamentals Command Reference
•
Cisco IOS Configuration Fundamentals and Network Management Configuration Guide
Command or Action
Purpose
Step 1
dir flash:
[
directory
]
Example:
rommon > dir flash:
Displays a list of the files and directories in flash memory.
•
Locate the system image that you want the router to
load.
•
If the system image is not in flash memory, use the
second or third option in
.
Step 2
boot flash:
[
directory
] [
filename
]
or
boot
filename
tftpserver
or
boot
[
filename
]
Example:
ROMMON > boot flash:myimage
Example:
ROMMON > boot someimage 172.16.30.40
Example:
ROMMON > boot
In order, the examples here direct the router to:
•
Boot the first image or a specified image in flash
memory.
•
Boot the specified image over the network from the
specified TFTP server (hostname or IP address).
•
Boot from the boothelper image because it does not
recognize the device ID. This form of the command is
used to netboot a specified image.
You can override the default boothelper image setting
by setting the BOOTLDR Monitor environment
variable to point to another image. Any system image
can be used for this purpose.
Note
Options to the boot command are
-x
(load image but
do not execute) and
-v
(verbose).