Device#
configure terminal
Device(config)#
boot config usbflash0:config2
Device(config)#
end
Device#
copy system:running-config nvram:startup-config
[ok]
Device#
show boot
BOOT variable = usbflash0:rsp-boot-m
CONFIG_FILE variable = nvram:
Current CONFIG_FILE variable = usbflash0:config2
Configuration register is
0x010F
What to Do Next
After you specify a location for the startup configuration file, the
nvram:startup-config
command is aliased
to the new location of the startup configuration file. The
more nvram:startup-config
EXEC command
displays the startup configuration, regardless of its location. The
erase nvram:startup-config
EXEC command
erases the contents of NVRAM and deletes the file pointed to by the CONFIG_FILE environment variable.
When you save the configuration using the
copy system:running-config nvram:startup-config
command,
the device saves a complete version of the configuration file to the location specified by the CONFIG_FILE
environment variable and a distilled version to NVRAM. A distilled version is one that does not contain access
list information. If NVRAM contains a complete configuration file, the device prompts you to confirm your
overwrite of the complete version with the distilled version. If NVRAM contains a distilled configuration,
the device does not prompt you for confirmation and proceeds with overwriting the existing distilled
configuration file in NVRAM.
If you specify a file in a flash device as the CONFIG_FILE environment variable, every time you save your
configuration file with the
copy system:running-config nvram:startup-config
command, the old
configuration file is marked as “deleted,” and the new configuration file is saved to that device. Eventually,
Flash memory fills up as the old configuration files still take up memory. Use the
squeeze
EXEC command
to permanently delete the old configuration files and reclaim the space.
Note
Configuring the Device to Download Configuration Files
You can specify an ordered list of network configuration and host configuration filenames. The Cisco IOS
XE software scans this list until it loads the appropriate network or host configuration file.
To configure the device to download configuration files at system startup, perform at least one of the tasks
described in the following sections:
•
Configuring the Device to Download the Network Configuration File
•
Configuring the Device to Download the Host Configuration File
If the device fails to load a configuration file during startup, it tries again every 10 minutes (the default setting)
until a host provides the requested files. With each failed attempt, the device displays the following message
on the console terminal:
Booting host-confg... [timed out]
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
212
Managing Configuration Files
What to Do Next