DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode.
enable
Step 1
Example:
• Enter your password if prompted.
Device> enable
Copies the configuration file to the flash file system from
which the device loads the file on restart.
copy
[
flash-url
|
ftp-url
|
rcp-url
|
tftp-url
|
system:running-config
|
nvram:startup-config
]
dest-flash-url
Step 2
Example:
Device# copy system:running-config
nvram:startup-config
Enters global configuration mode.
configure terminal
Example:
Step 3
Device# configure terminal
Sets the CONFIG_FILE environment variable. This step
modifies the runtime CONFIG_FILE environment variable.
boot config dest-flash-url
Example:
Step 4
Device(config)# boot config 172.16.1.1
Exits global configuration mode.
end
Example:
Step 5
Device(config)# end
Saves the configuration performed in Step 3 to the startup
configuration.
copy system:running-config nvram:startup-config
Example:
Step 6
Device# copy system:running-config
nvram:startup-config
(Optional) Allows you to verify the contents of the
CONFIG_FILE environment variable.
show boot
Example:
Step 7
Device# show boot
Examples
The following example copies the running configuration file to the device. This configuration is then
used as the startup configuration when the system is restarted:
Device#
copy system:running-config usbflash0:config2
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
211
Managing Configuration Files
Specifying the CONFIG_FILE Environment Variable on Class A Flash File Systems