background image
50 Chapter 2: Cisco Internetwork Operating System (IOS) Fundamentals
During this process of copying the IOS image into Flash memory, the router will need to
discover several important facts:
1
What is the IP address or host name of the TFTP server?
2
What is the name of the file?
3
Is space available for this file in Flash memory?
4
If not, will you let the router erase the old files?
The router will prompt you for answers, as necessary. Afterward, the router erases Flash
memory as needed, copies the file, and then verifies that the checksum for the file shows that
no errors occurred in transmission. The show flash command then can be used to verify the
contents of Flash memory (see Example 2-6). (The show flash output can vary between router
families.) Before the new IOS is used, however, the router must be reloaded.
In some cases, Flash memory could be in read-only mode. That is the case when a router loads
only part of the IOS into RAM, to conserve RAM. Other parts of the IOS file are kept in Flash
memory (Flash memory access time is much slower than RAM). In this case, if Flash memory
must be erased to make room for a new image, the IOS could not continue to run. So, if the
router is running from a portion of the IOS in Flash memory, the router first must be booted
using the IOS in ROM. Then the Flash memory will be in read/write mode, and the erase and
copy processes can be accomplished. The copy tftp flash command in later releases of the IOS
actually performs the entire process for you. In earlier releases, you had to boot the router from
ROM and then issue the copy tftp flash command.
Choosing Which IOS Image to Load
The CCNA exam requires you to be proficient in configuring a router to load an IOS image from
many sources. Two methods are used by a router to determine where it tries to obtain an IOS
image to execute. The first is based on the value of the configuration register, which is a 16-bit
software register in Cisco's more recently developed routers. (Some older routers had a hard-
ware configuration register, with jumpers on the processor card, to set bits to a value of 0 or 1.)
The second method used to determine where the router tries to obtain an IOS image is through
the use of the boot system configuration command. Figure 2-12 shows an example binary
breakdown of the default value for the configuration register.
Example 2-6
Verifying Flash Memory Contents with the show flash Command
fred#show flash
System flash directory:
File Length Name/status
1 6181132 c4500-d-mz.120-5.bin
[4181196 bytes used, 4207412 available, 8388608 total]
8192K bytes of processor board System flash (Read ONLY)
ch02.fm Page 50 Monday, March 20, 2000 4:57 PM