cisco IOS — Specifying the CONFIG_FILE Environment Variable on Class A Flash File Systems

Specifying the CONFIG_FILE Environment Variable on Class A Flash File Systems On Class A flash file systems, you can configure the Cisco IOS software to load the startup configuration file specified by the CONFIG_FILE environment variable. The CONFIG_FILE variable defaults to NVRAM. To change the CONFIG_FILE environment variable, complete the tasks in this section: Procedure Managing Configuration Files Specifying the CONFIG FILE Environment Variable on Class A Flash File Systems _ Command or Action Purpose file specified by the CONFIG FILE _ environment variable, the system prompts you to confirm the deletion. Command or Action Purpose Step 1 enable Example:

Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 copy [flash-url | ftp-url | rcp-url | tftp-url | system:running-config | nvram:startup-config] dest-flash-url Example: Device# copy system:running-config nvram:startup-config Copies the configuration file to the flash file system from which the device loads the file on restart. Step 3 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 4 boot config dest-flash-url Example: Device(config)# boot config 172.16.1.1 Sets the CONFIG FILE environment variable. _ This step modifies the runtime CONFIG FILE _ environment variable. Step 5 end Example:

Device(config)# end Exits global configuration mode. Step 6 copy system:running-config nvram:startup-config Example: Saves the configuration performed in Step 3 to the startup configuration. Managing Configuration Files 30