Lab 8.4.3b Managing Cisco IOS Images With ROMMON and TFTP: Objectives
Lab 8.4.3b Managing Cisco IOS Images With ROMMON and TFTP: Objectives
Lab 8.4.3b Managing Cisco IOS images with ROMMON and TFTP
Host
Device Name Interface IP Address Subnet Mask
R1 R1 Fast Ethernet 0/0 172.17.0.1 255.255.0.0
Objectives
• Analyze the Cisco IOS image and router flash memory.
• Back up a Cisco IOS software image to a TFTP server.
• Use ROM monitor (ROMmon) and the tftpdnld command to restore an image from a TFTP server.
Background / Preparation
In this lab, you use the show flash command to view the Cisco IOS image in the router flash memory. You
use TFTP server software to back up the image to the TFTP server. You then simulate the loss of the image
and use the ROMmon tftpdnld command to copy the image from the TFTP server back to the router.
Important: Check with the instructor before performing Task 6 in this lab. The tftpdnld command erases all
existing files in flash memory before downloading a new software image to the router. If there are files in the
router flash memory that you do not want to lose, they must be backed up to the TFTP server and then
copied back to flash memory after the Cisco IOS image has been restored. The process for copying files to
and from a TFTP server is described in Lab 8.4.3a, “Managing Cisco IOS Images with TFTP.”
Set up a network similar to the one in the topology diagram. Any router that meets the interface requirements
displayed in that diagram—such as 800, 1600, 1700, 1800, 2500, or 2600 routers, or a combination of
these—can be used. See the Router Interface Summary table at the end of the lab to determine which
interface identifiers to use based on the equipment in the lab. This lab uses a Cisco 1841 router with Cisco
IOS software release 12.4. Depending on the model of the router, output may vary from what is shown in this
lab.
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
Required Resources
The following resources are required:
• One router with an Ethernet interface
• One Windows XP computer (or Discovery Server)
• Crossover Category 5 Ethernet cable (H1 to router R1)
• Console cable (from H1 to R1)
• Access to the computer host command prompt
• Access to the computer host network TCP/IP configuration
Note: Instead of using a PC and installing TFTP server software, you may use the Discovery Server, which
has Linux-based TFTP server software pre-installed. Check with the instructor on the availability of a
Discovery Server CD. The Discovery Server can take the place of host H1 in the topology diagram. The IP
addresses used to configure host H1 and R1 in this lab are compatible with the Discovery Server.
From host H1, start a HyperTerminal session to the attached router.
Note: Make sure that the router has been erased and has no startup configurations. Instructions for erasing
are provided in the Lab Manual, located on Academy Connection in the Tools section. Check with the
instructor if you are unsure of how to do this.
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
R1>show flash
-#- --length-- -----date/time------ path
1 22063220 Mar 15 2007 07:03:50 c1841-advipservicesk9-mz.124-10b.bin
2 1038 May 18 2007 14:25:40 home.shtml
3 1821 May 18 2007 14:25:40 sdmconfig-18xx.cfg
4 113152 May 18 2007 14:25:42 home.tar
5 1164288 May 18 2007 14:25:44 common.tar
6 6036480 May 18 2007 14:25:54 sdm.tar
7 861696 May 18 2007 14:26:04 es.tar
8 527849 May 18 2007 14:25:42 128MB.sdf
9 1684577 Mar 15 2007 07:23:20 securedesktop-ios-3.1.1.27-k9.pkg
10 398305 Mar 15 2007 07:23:54 sslclient-win-1.1.0.154.pkg
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 5 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
b. Click on the Security tab. Check that Permitted Transfer Types is set to Send and Receive files,
and set IP Address Restrictions to allow transfers from only the router R1 Fast Ethernet 0/0 IP
address (172.17.0.1 To 172.17.0.1).
c. In the General tab, click the Start button to activate the TFTP Server.
d. When finished, click OK. The screen should look similar to the following.
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 6 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
e. On which well-known UDP port number is the TFTP server operating? __________
f. Leave the TFTP Server window open so that you can view the activity as the file is copied.
b. Use Windows Explorer to examine the contents of folder C:\TFTP-Root\ on the host H1 TFTP server.
Verify the flash image size in the TFTP server directory. The file size in the show flash command
should be the same size as the file stored on the TFTP server. If the file sizes are not identical, check
with the instructor. The IOS image file should be listed similar to the one shown in the screen below.
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 7 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
You will simulate the loss of the Cisco IOS image by changing the router config-register so that it boots up
to the rommon > prompt. The config register is normally set to 0x2102 to enable the router to boot the
Cisco IOS image from flash. See the show version command output in Task 2, Step 1 to see the config-
register setting.
a. Change the configuration register to 0x2100 to cause the router to start up in ROMmon mode.
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#config-register 0x2100
Router(config)#exit
Router#
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 8 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
b. Issue the show version command to verify that the new config register setting will take effect at the
next reload. What is the last line of the show version output?
_________________________________________________________
c. Issue the reload command to restart the router.
Router#reload
System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2006 by cisco Systems, Inc.
PLD version 0x10
GIO ASIC version 0x127
c1841 platform with 196608 Kbytes of main memory
Main memory is configured to 64 bit mode with parity disabled
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 9 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
a. From the ROMmon prompt, issue the dir flash: command. Look for a valid Cisco IOS software
image.
rommon 3 > dir flash:
program load complete, entry point: 0x8000f000, size: 0xcb80
Directory of flash:
Step 4: Reset the config register so that the router boots from flash on the next reload.
From the ROMmon prompt, set the boot register back to 0x2102, before the Cisco IOS image transfer,
using the confreg command. Depending on the router model and ROMmon prompt, you may need to use
the o/r command.
Note: The number at the ROMmon prompt increments with each command issued.
rommon 5 > confreg 0x2102
or
> o/r 0x2102
The router responds with:
You must reset or power cycle for new config to take effect
rommon 6 >
Task 6: Use ROMmon and tftpdnld to Restore a Cisco IOS Image (Optional)
Important: Check with the instructor before performing Task 6 in this lab. The tftpdnld command erases all
existing files in flash memory before downloading a new software image to the router. If there are files in the
router flash memory that you do not want to lose, they must be backed up to the TFTP server and then
copied back to flash memory after the Cisco IOS image has been restored. The process for copying files to
and from a TFTP server is described in Lab 8.4.3a, “Managing Cisco IOS Images with TFTP.”
Note: If performing this task presents a problem to the lab environment, just read through the steps to
become familiar with the procedure.
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 10 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 11 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
FE_PORT: 0
FE_SPEED_MODE: Auto Detect
_________________________________________________________________________________________
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 12 of 13
CCNA Discovery
Working at a Small-to-Medium Business or ISP
All contents are Copyright © 1992–2008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 13 of 13