- Preface
- Cisco 900 Series Integrated Services Routers Overview
- Installing the Software
- Basic Router Configuration
- Configuring the Ethernet Switches
- Configuring PPP over Ethernet with NAT
- Configuring a LAN with DHCP and VLANs
- Configuring Identity Features on Layer 3 Interface
- Configuring Security Features
- Configuring VDSL2 and ADSL2/2+
- Configuring 4G Wireless WAN
- Configuring Secure Storage
- ROM Monitor
- Upgrading the Cisco IOS Software
Installing the Software
This chapter describes how to upgrade Cisco IOS images, use ROM Monitor, upgrade Field Programmable units, and the licensing packages supported on Cisco ISR 900 Series routers. This chapter includes the following sections:
ROM Monitor
The ROM monitor firmware runs when the router is powered up or reset. The firmware helps to initialize the processor hardware and boot the operating system software. You can use the ROM monitor to perform certain configuration tasks, such as recovering a lost password or downloading Cisco IOS software.
Before using the ROM monitor, you should understand the following concepts:
- ROM Monitor Mode Command Prompt
- Why is the Router in ROM Monitor Mode?
- When do I use ROM Monitor?
- Tips for Using ROM Monitor Commands
ROM Monitor Mode Command Prompt
The ROM monitor uses the rommon
x >
command prompt. The x variable begins at 1 and increments each time you press Return or Enter in ROM monitor mode.
Why is the Router in ROM Monitor Mode?
The router boots to ROM monitor mode when one of the following occurs:
- During power up or reload, the router did not find a valid system image.
- The last digit of the boot field in the configuration register is 0 (for example, 0x100 or 0x0).
- The Ctrl+C is entered during the first 60 seconds after reloading the router.
To exit ROM monitor mode, see the “Exiting ROM Monitor Mode” section.
When do I use ROM Monitor?
Use ROM monitor in the following situations:
- Manually loading a system image—You can load a system image without configuring the router to load that image in future system reloads or power-cycles. This can be useful for testing a new system image or for troubleshooting. See the “Modifying the Configuration Register (confreg)” section.
- Upgrading the system image when there are no TFTP servers or network connections, and a direct PC connection to the router console is the only viable option—See information about upgrading the system image in the configuration documentation for your router.
- During troubleshooting if the router crashes and hangs—See the “Exiting ROM Monitor Mode” section.
- Disaster recovery—Use the following method for recovering the system image or configuration file:
– TFTP download (tftpdnld)—Use this method if you can connect a TFTP server directly to the fixed WAN port on your router. See the “Exiting ROM Monitor Mode” section.
Note Recovering the system image is different from upgrading the system image. You need to recover the system image if it becomes corrupt or if it is deleted because of a disaster that affects the memory device severely enough to require deleting all data on the memory device in order to load a system image.
Tips for Using ROM Monitor Commands
- ROM monitor commands are case sensitive.
- You can halt any ROM monitor command by entering the Ctrl+C on the PC or terminal.
- To find out which commands are available on your router and to display command syntax options, see the “Modifying the Configuration Register (confreg)” section.
How to Use the ROM Monitor—Typical Tasks
This section provides the following procedures:
- Entering ROM Monitor Mode
- Modifying the Configuration Register (confreg)
- Obtaining Information on USB Flash Devices
- Exiting ROM Monitor Mode
Note This section does not describe how to perform all possible ROM monitor tasks. Use the command help to perform any tasks that are not described in this document. See the “Modifying the Configuration Register (confreg)” section.
Entering ROM Monitor Mode
Prerequisites
Connect a terminal or PC to the router console port. For help, see the hardware installation guide for your router.
Using the Break Key Sequence to Interrupt the System Reload and Enter ROM Monitor Mode
To enter ROM monitor mode by reloading the router and entering the Break key sequence, follow these steps:
You must press Ctrl+C within 60 seconds after you enter the reload command. Before you press Ctrl+C, wait for the display to show the five dots as shown in this example:
What to Do Next
- Proceed to the “Modifying the Configuration Register (confreg)” section.
- If you use the Break key sequence to enter ROM monitor mode when the router would otherwise have booted the system image, you can exit ROM monitor mode by entering the i or reset command, which restarts the booting process and loads the system image.
Setting the Configuration Register to Boot to ROM Monitor Mode
This section describes how to enter ROM monitor mode by setting the configuration register to boot to ROM monitor mode at the next system reload or power-cycle.
This example shows how to set the configuration register to boot to ROM monitor mode:
What to Do Next
Proceed to the “Modifying the Configuration Register (confreg)” section.
Modifying the Configuration Register (confreg)
This section describes how to modify the configuration register by using the confreg ROM monitor command. You can also modify the configuration register setting from the Cisco IOS command-line interface (CLI) by using the config-register command in global configuration mode.
Note The modified configuration register value is automatically written into NVRAM, but the new value does not take effect until you reset or power-cycle the router.
In this example, the configuration register is set to boot the system image from flash memory:
In this example, no value is entered; therefore, the system prompts for each bit in the register:
Obtaining Information on USB Flash Devices
This example shows how to display the contents of the USB flash device, including directories, files, permissions, and sizes:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
8192 drw- System Volume Information
60865852 -rw- c900-åuniversalk9_npe-mz.SPA.158-3.M0b
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This example shows the targeted USB flash devices that are inserted in the router and the valid device names that may or may not be currently inserted:
Exiting ROM Monitor Mode
This section describes how to exit ROM monitor mode and enter the Cisco IOS command-line interface (CLI). The method that you use to exit ROM monitor mode depends on how your router entered ROM monitor mode:
- If you reload the router and enter the Break key sequence to enter ROM monitor mode when the router would otherwise have booted the system image, you can exit ROM monitor mode by entering i command or the reset command, which restarts the booting process and loads the system image.
- If your router entered ROM monitor mode because it could not locate and load the system image, perform the steps in the following procedure.
|
|
|
---|---|---|
|
Displays a list of the files and directories in flash memory.
|
|
boot flash: [directory] [ filename ] ROMMON > boot someimage 172.16.30.40 |
In order, the examples here direct the router to:
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). |
Upgrading ROMMON using Capsule Upgrade
You can upgrade ROMMON using capsule upgrade. This example shows how to upgrade ROMMON using Capsule Upgrade:
router# > upgrade rom-monitor file flash:c900-CapsuleUpdateFile.15.8-3rM0b
Note Before you upgrade, make sure that you have the Capsule image ‘c900-CapsuleUpdateFile.15.8-3rM0b’ in the router flash.
Use the showmon -v command to verify the ROMMON version. This example shows the command output:
Upgrading the Cisco IOS Software
Your router comes pre-installed with the Cisco IOS image. However, you can install the new version in order to keep router features up to date. This section describes how to upgrade the Cisco Internet Operating System (IOS) software image on a Cisco 900 series ISR.
Information About Upgrading the System Image
To upgrade the system image on your router, review the following sections:
Why Would I Upgrade the System Image?
System images contain the Cisco IOS software. Your router was shipped with an image installed. At some point, you may want to load a different image onto the router or the access point. For example, you may want to upgrade your IOS software to the latest release, or you may want to use the same Cisco IOS release for all the routers in a network. Each system image contains different sets of Cisco IOS features, therefore select an appropriate system image to suit your network requirements.
Which Cisco IOS Release Is Running on My Router Now?
To determine the Cisco IOS release that is currently running on your router, and the filename of the system image, enter the show version command in user EXEC or privileged EXEC mode.
How Do I Choose the New Cisco IOS Release and Feature Set?
To determine which Cisco IOS releases and feature are supported on your platform, go to Cisco Feature Navigator at http://www.cisco.com/go/cfn. You must have an account at Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Where Do I Download the System Image?
To download a system image you must have an account at Cisco.com to gain access to the following websites. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box, and follow the instructions that appear.
If you know the Cisco IOS release and feature set you want to download, go directly to
https://software.cisco.com/download/home
For more information about Loading and Managing System images, go to
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/configuration/15mt/fundamentals-15-mt-book/cf-config-overview.html
How to Upgrade the Cisco IOS Image
This section provides information about upgrading the Cisco IOS image on the router.
Saving Backup Copies of Your Old System Image and Configuration
To avoid unexpected downtime in the event you encounter serious problems using a new system image or startup configuration, we recommend that you save backup copies of your current startup configuration file and Cisco IOS software system image file on a server.
The following examples show how to copy a startup configuration to a TFTP server and how to copy from flash memory to an FTP server.
Copying the Startup Configuration to a TFTP Server: Example
The following example shows the startup configuration being copied to a TFTP server:
Copying from Flash Memory to a TFTP Server: Example
The following example uses the dir flash: command in privileged EXEC mode to learn the name of the system image file and the copy flash: tftp: command in privileged EXEC mode to copy the system image to a TFTP server. The router uses the default username and password.
Copying the System Image into Flash Memory
This section describes how to copy the system image into the flash memory card for your router.
Note The router should have sufficient disk or flash memory to store the Cisco IOS. The router should also have sufficient memory (DRAM) to run the Cisco IOS. If the router does not have sufficient memory (DRAM), the router will have boot problems when it boots through the new Cisco IOS.
To copy the system image into the flash memory card for your router, choose one of the following methods:
Using TFTP or Remote Copy Protocol to Copy the System Image into Flash Memory
This section describes how to use TFTP or Remote Copy Protocol (RCP) to upgrade the system image. This is the recommended and most common method of upgrading the system image.
Prerequisites
The following details the logistics of upgrading the system image.
- Install a TFTP server or an RCP server application on a TCP/IP-ready workstation or PC. Many third-party vendors provide free TFTP server software, which you can find by searching for “TFTP server” in a web search engine.
– Configure the TFTP application to operate as a TFTP server, not a TFTP client.
– Specify the outbound file directory to which you will download and store the system image.
- Download the new Cisco IOS software image into the workstation or PC. See the “Where Do I Download the System Image?” section.
- Establish a console session to the router. We recommend that you connect your PC directly to the router console port. See the hardware installation guide for your router.
- Verify that the TFTP or RCP server has IP connectivity to the router. If you cannot successfully ping between the TFTP or RCP server and the router, do one of the following:
– Configure a default gateway on the router.
– Make sure that the server and the router each have an IP address in the same network or subnet..
Tip For more detailed information on how to perform the prerequisites, see the Software Installation and Upgrade Procedure tech note.
To copy the system image into the flash memory card for your router, follow these steps:
Use this command to enter privileged EXEC mode. Enter your password if prompted:
Use one of these commands to copy a file from a server to flash memory:
Step 3 When prompted, enter the IP address of the TFTP or RCP server:
Step 4 When prompted, enter the filename of the Cisco IOS software image to be installed:
Note The filename is case sensitive.
Step 5 When prompted, enter the filename as you want it to appear on the router. Typically, the same filename is entered as was used in Step 4:
Step 6 If an error message appears that says, “Not enough space on device”, delete files from flash and try again. To delete files from flash, use the delete flash : filename command.
Step 7 If the error message does not appear, enter no when prompted to erase the flash memory before copying:
What to Do Next
Proceed to the “Loading the New System Image” section.
Using the ROM Monitor to Copy the System Image over a Network
This section describes how to download a Cisco IOS software image from a remote TFTP server to the router flash memory by using the tftpdnld ROM monitor command.
Before you can enter the tftpdnld ROM monitor command, you must set the ROM monitor environment variables.
Prerequisites
Connect the TFTP server to a fixed network port on your router.
Note You can use the tftpdnld command only to download files to the router. You cannot use tftpdnld to get files from the router.
To download a Cisco IOS software image from a remote TFTP server to the router flash memory by using the tftpdnld ROM monitor command, follow these steps:
Step 1 Enter ROM monitor mode.
Step 2 Set the IP address of the router. For example:
Step 3 Set the IP subnet mask. For example:
Step 4 Set the default gateway address. For example:
Step 5 Set the TFTP server IP address, which is the location from which the software will be downloaded:
Step 6 Set the name and directory location to which the image file will be downloaded onto the router. For example:
Step 7 (Optional) Set the input port to use a Gigabit Ethernet port. Usage is GE_PORT=[0 | 1 | 2]. For example:
Step 8 Use the set command to display the ROM monitor environment variables to verify that you have configured them correctly. For example:
Step 9 Download the system image, as specified by the ROM monitor environmental variables, using the tftpdnld [-r] command. Without the -r option, the command downloads the specified image and saves it in flash memory. Using the -r option downloads and boots the new software but does not save the software to flash memory.
What to Do Next
Proceed to the “Loading the New System Image” section.
Loading the New System Image
This section describes how to load the new system image that you copied into flash memory. First, determine whether you are in ROM monitor mode or in the Cisco IOS CLI, then choose one of the following methods of loading the new system image:
Loading the New System Image from the Cisco IOS Software
To load the new system image from the Cisco IOS software, follow these steps.
Use this command to display a list of all files and directories in flash memory:
Note Determine whether the new system image is the first file or the only file listed in the dir flash: command output ( is not required if it is the first file or only file listed).
Use this command to enter global configuration mode:
Use this command to delete all entries in the bootable image list, which specifies the order in which the router attempts to load the system images at the next system reload or power cycle:
Step 4 If the new system image is the first file or the only file displayed in the dir flash: command output, you do not need to perform the following step.
boot system flash: system-image-filename
Use this command to load the new system image after the next system reload or power cycle. For example:
Step 5 (Optional) Repeat to specify the order in which the router should attempt to load any backup system images.
Use this command to exit global configuration mode:
Router#
Use this command to display the configuration register setting:
Step 8 If the last digit in the configuration register is 0 or 1, proceed to Step 9. However, if the last digit in the configuration register is between 2 and F, proceed to Step 12.
Use this command to enter global configuration mode:
Step 10 config-register 0x2102
Use this command to set the configuration register so that, after the next system reload or power cycle, the router loads a system image from the boot system commands in the startup configuration file:
Use this command to exit global configuration mode:
Router#
Use this command to copy the running configuration to the startup configuration:
Use this command to reload the operating system:
Step 14 When prompted to save the system configuration, enter no :
Step 15 When prompted to confirm the reload, enter y :
Use this command to verify that the router loaded the proper system image:
What to Do Next
Proceed to the “Saving Backup Copies of Your New System Image and Configuration” section.
Loading the New System Image from ROM Monitor Mode
To load the new system image from ROM monitor mode, follow these steps:
Step 1 dir flash: [ partition-number : ]
Use this command to list files in flash memory:
Note whether the new system image is the first file or the only file listed in the dir flash: command output.
Use this command to set the configuration register so that, after the next system reload or power cycle, the router loads a system image from the boot system commands in the startup configuration file:
Step 3 boot flash: [ partition-number : ] filename
Use this command to force the router to load the new system image:
Step 4 After the system loads the new system image, press Return a few times to display the Cisco IOS CLI prompt.
Use this command to enable privileged EXEC mode, and enter your password if prompted:
Use this command to enter global configuration mode:
Eliminate all entries in the bootable image list, which specifies the system image that the router loads at startup:
Step 8 If the new system image is the first file or only the file displayed in the dir flash: command output, this step is not required.
boot system flash: new-system-image-filename
Use this command to load the new system image after the next system reload or power cycle:
Step 9 (Optional) Repeat to specify the order in which the router should attempt to load any backup system images.
Use this command to exit global configuration mode:
Router#
Use this command to copy the running configuration to the startup configuration:
What to Do Next
Proceed to the “Saving Backup Copies of Your New System Image and Configuration” section.
Saving Backup Copies of Your New System Image and Configuration
To aid file recovery and to minimize downtime in the event of file corruption, we recommend that you save backup copies of the startup configuration file and the Cisco IOS software system image file on a server.
Tip Do not erase any existing backup copies of your configuration and system image that you saved before upgrading your system image. If you encounter serious problems using your new system image or startup configuration, you can quickly revert to the previous working configuration and system image.
For more detailed information, see the “Managing Configuration Files” chapter and the “Loading and Maintaining System Images” chapter of the Cisco IOS Configuration Fundamentals Configuration Guide at:
http://www.cisco.com/en/US/docs/ios/fundamentals/configuration/guide/12_4/cf_12_4_book.html.
To save backup copies of the startup configuration file and the system image file, complete the following steps.
|
|
|
---|---|---|
|
||
copy nvram:startup-config { ftp: | rcp: | tftp: } |
||
|
Displays the layout and contents of a flash memory file system. |
|
copy flash: { ftp: | rcp: | tftp: } |
Examples
Copying the Startup Configuration to a TFTP Server: Example
The following example shows the startup configuration being copied to a TFTP server:
Copying from Flash Memory to a TFTP Server: Example
The following example uses the dir flash: privileged EXEC command to obtain the name of the system image file and the copy flash: tftp: privileged EXEC command to copy the system image to a TFTP server. The router uses the default username and password.
Licensing
When you order a new router, it is shipped preinstalled with the software image and the corresponding licenses for the packages and features that you specified. You do not need to activate or register the software before use. You need a license if you are upgrading or installing a new Cisco IOS feature. For more information about the license type, technology package, and installation, see Software Activation on Cisco Integrated Services Routers and Cisco Integrated Service Routers G2 guide.