40 Chapter 2: Cisco Internetwork Operating System (IOS) Fundamentals
old entries in access- list 1 are not deleted. This is because many access-list 1 commands are
allowed in the same access list. Effectively, any copy into RAM works just as if you typed the
commands in the order listed in the config file.
So, why did Cisco not include a replace action, similar to the action used to copy to NVRAM
or TFTP? Who knows? A replace action probably would require you to empty all routing tables,
which might cause an outage. Possibly, this particular nuance is a result of some Cisco
programmer who decided years ago to take the loaded gun out of users' hands. However,
advanced users can accomplish the effect of a replace action by entering configuration mode
and issuing commands until the running config is changed as desired. This requires that the user
know whether each command will replace another that is like it in the RAM configuration file,
or whether each command will simply be added to the configuration, as with an access-list
command.
Two key commands can be used to erase the contents of NVRAM. The write erase command
is the older command, and the erase startup-config command is the newer command. Both
simply erase the contents of the NVRAM configuration file. Of course, if the router is reloaded
at this point, there will be no initial configuration.
Viewing the Configuration and Old-Style Configuration Commands
Once upon a time, commands that were used to move configuration files among RAM,
NVRAM, and TFTP did not use easy-to-recall parameters such as startup-config and
running-config. In fact, most people could not remember the commands or got the different
ones confused.
Figure 2-9 shows both the old and new commands used to view configurations.
Figure 2-9
Configuration show Commands
Initial Configuration (Setup Mode)
To pass the CCNA exam, you will need to be familiar with the differences between
configuration mode and setup mode. Setup mode is a router configuration mode that prompts
the user for basic configuration parameters. A Cisco router can be configured using the CLI in
configuration mode without using setup mode. Some users like to use setup mode, however,
particularly until they become more familiar with the CLI.
RAM
(active)
NVRAM
write term
show config
show star
tup-config
show running-config
old
new
ch02.fm Page 40 Monday, March 20, 2000 4:57 PM