Switch Memory and Configuration

Multiple Configuration Files

Changing the Startup-Config File. When the switch reboots, the startup­ config file supplies the configuration for the running-config file the switch uses to operate. Making changes to the running-config file and then executing a write-memcommand (or, in the Menu interface, the Save command) are written back to the startup-config file used at the last reboot. For example, suppose that a system administrator performs the following on a switch that has two startup-config files (workingConfig and backupConfig):

1.Reboot the switch through the Primary boot path using the startup-config file named backupConfig.

2.Use the CLI to make configuration changes in the running-config file, and then execute write mem.

The result is that the startup-config file used to reboot the switch is modified by the actions in step 2.

Boot Command

Primary Boot Path

Active Startup-Config File:

backupConfig

Idle Startup-Config File:

workingConfig

Generated Running-Config File

Use CLI To Change Running-Config

Execute write mem To Save Changes to

Source Startup-Config File

Figure 6-20. Example of Reboot Process and Making Changes to the Startup- Config File

Creating an Alternate Startup-Config File. There are two methods for creating a new configuration file:

Copy an existing startup-config file to a new filename, then reboot the switch, make the desired changes to the running-config file, then execute write memory. (Refer to figure 6-6-20,above.)

6-28