|
|
This appendix describes using the ROM monitor (also called the bootstrap program), which is the firmware that runs when you power on or restart a Cisco 2600 series router. During normal operation, the ROM monitor helps to initialize the processor hardware and boot the operating system software. You can also use the ROM monitor to:
This appendix contains the following sections:
To use the ROM monitor, you must have access to the console port. Refer to the Cisco 2600 Series Cabling and Setup quick start guide for information on connecting the console cable.
To enter ROM monitor mode:
| Step | Command or Action | Purpose |
|---|---|---|
| 1 | | Restart the router. |
| 2 | | Forces the router to stop booting and enter the ROM monitor mode. |
To verify that you are in the ROM monitor mode, check that the prompt displayed on your screen is the ROM monitor mode prompt:
rommon # >
# is the line number and increases incrementally at each prompt.From the Cisco IOS software, you can configure the router to automatically enter ROM monitor mode the next time the router boots by setting virtual configuration register bits 3, 2, 1, and 0 to zero. From the console, enter the following configuration command:
configuration-register 0x0
The new configuration register value, 0x0, is effective after the router is rebooted with the reload command. The router remains in the ROM monitor and does not boot the operating system.
As long as the configuration register value remains 0x0, you must manually boot the operating system from the console. Refer to the boot command in the "Command Descriptions" section.
Enter ? or help at the ROM monitor mode prompt to see a list of available commands. For example:
rommon 1 > ? alias set and display aliases command boot boot up an external process break set/show/clear the breakpoint confreg configuration register utility cont continue executing a downloaded image context display the context of a loaded image cookie display contents of cookie PROM in hex dev list the device table dir list files in the file system dis display instruction stream dnld serial download a program module frame print out a selected stack frame help monitor builtin command help history monitor command history meminfo main memory information repeat repeat a monitor command reset system reset set display the monitor variables stack produce a stack trace sync write monitor environment to NVRAM sysret print out info from last system return tftpdnld tftp image download unalias unset an alias unset unset a monitor variable xmodem x/ymodem image download rommon 2 >
![]() |
Note You can end any command by pressing the Break key at the console. |
The ROM monitor syntax in this appendix uses the following conventions:
This section lists some useful ROM monitor commands. Refer to the Cisco IOS configuration guides and command references for more information on ROM monitor commands.
rommon 8 > dir flash:
File size Checksum File name
2229799 bytes (0x220627) 0x469e C2600-j-m2.113-4T
rommon 9 > meminfo Main memory size: 32 MB. Available main memory starts at 0xa000e000, size 32704KB IO (packet) memory size: 25 percent of main memory. NVRAM size: 32KB
rommon 10 > meminfo -l
Supported memory configurations:
DIMM 0 DIMM 1
-------------------
4M
8M-DUAL
16M
32M-DUAL
4M
4M 4M
4M 8M-DUAL
4M 16M
4M 32M-DUAL
8M-DUAL
8M-DUAL 4M
8M-DUAL 8M-DUAL
8M-DUAL 16M
8M-DUAL 32M-DUAL
16M
16M 4M
16M 8M-DUAL
16M 16M
16M 32M-DUAL
32M-DUAL
32M-DUAL 4M
32M-DUAL 8M-DUAL
32M-DUAL 16M
32M-DUAL 32M-DUAL
"xxx: kernel context state is invalid, cannot proceed."
rommon 8 > sysret System Return Info: count: 19, reason: a SegV exception pc:0x802b1040, error address: 0x802b1040 Stack Trace: FP: 0x80908398, PC: 0x802b102c FP: 0x809083b0, PC: 0x802b0b88 FP: 0x809083d8, PC: 0x8017039c FP: 0x809083e8, PC: 0x8016f764
The virtual configuration register resides in NVRAM. You can view or modify the virtual configuration register from either the ROM monitor or the operating system software.
To change the virtual configuration register from the ROM monitor, enter confreg by itself for menu mode, or enter the new value of the register in hexadecimal.
rommon 7 > confreg
Configuration Summary
enabled are:
break/abort has effect
console baud: 9600
boot: the ROM Monitor
do you wish to change the configuration? y/n [n]: y
enable "diagnostic mode"? y/n [n]: y
enable "use net in IP bcast address"? y/n [n]:
enable "load rom after netboot fails"? y/n [n]:
enable "use all zero broadcast"? y/n [n]:
disable "break/abort has effect"? y/n [n]:
enable "ignore system config info"? y/n [n]:
change console baud rate? y/n [n]: y
enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400
4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 [0]: 0
change the boot characteristics? y/n [n]: y
enter to boot:
0 = ROM Monitor
1 = the boot helper image
2-15 = boot system
[0]: 0
Configuration Summary
enabled are:
diagnostic mode
break/abort has effect
console baud: 9600
boot: the ROM Monitor
do you wish to change the configuration? y/n [n]:
You must reset or power cycle for new config to take effect
If your Cisco 2600 series router experiences difficulties and no longer contains a valid Cisco IOS software image in Flash memory, you can recover the Cisco IOS image using one of the following ROM monitor commands:
The xmodem command establishes a connection between a console and the router console port for disaster recovery if both the boot and system images are erased from Flash memory.
xmodem [filename]--Establishes an Xmodem connection between the console and the router. The optional parameter filename specifies the source file containing the Cisco IOS image.
Other options include the following:
The tftpdnld command downloads a Cisco IOS software image from a remote server accessible from an Ethernet or Token Ring network interface on a Cisco 2600 series router. The tftpdnld command downloads the Cisco IOS software image into Flash memory using TFTP.
The following software restrictions apply when using the tftpdnld command:
tftpdnld [-h] [-r]--Begins the TFTP copy procedure.
Options include the following:
The tftpdnld command requires that you specify certain variables when you issue the command. The syntax for specifying the variables is:
VARIABLE_NAME=value
The variables that you must specify include the following:
The following tftpdnld command variables are optional:
Do you wish to continue? y/n:
![]() |
Note Specify the FE_SPEED_MODE variable only for routers with a Fast Ethernet network interface. |
![]() |
Note Specify the TR_SPEED_MODE variable only for routers with a Token Ring network interface; or for routers with both an Ethernet and a Token Ring port, those routers that are set to use the Token Ring port with the tftpdnld command. |
![]() |
Note Specify the TR_1E1R_PORT variable only for those routers with both an Ethernet and a Token Ring port. |
After you specify the variables, you must reenter the tftpdnld command. For example:
rommon 1 > IP_ADDRESS=172.15.19.11
rommon 2 > IP_SUBNET_MASK=255.255.255.0
rommon 3 > DEFAULT_GATEWAY=172.16.19.1
rommon 4 > TFTP_SERVER=172.15.20.10
rommon 5 > TFTP_FILE=/tftpboot/c2600-i-mz
rommon 6 > tftpdnld
IP_ADDRESS=172.15.19.11
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=172.16.19.1
TFTP_SERVER=172.15.20.10
TFTP_FILE=/tftpboot/2600-i-mz
Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n: [n]:
Enter y to begin downloading the Cisco IOS software image. When the process is complete, the ROM monitor mode prompt appears on your screen.
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Tue Aug 1 15:35:26 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.