2-28
Cisco CRS-1 Series Carrier Routing System Getting Started Guide
Chapter 2 Cisco IOS XR Basic Configuration Management
Saving and Loading Target Configuration Files
Saving the Target Configuration to a File
To save the configuration changes in the target configuration to a file, enter the show configuration |
file filename command.
• If the full path of the file is not specified, the default directory for your account is used. You should
always save your target configuration files to this location.
• The filename should end with the .cfg suffix for easy identification. This suffix is not required, but
can help locate target configuration files. Example:
myconfig.cfg
In the following example, a target configuration file is saved to the default user directory:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# show configuration | file disk0:myconfig.cfg
RP/0/RP0/CPU0:router(config)# abort
RP/0/RP0/CPU0:router#
Loading the Target Configuration from a File
Enter the load filename command to populate the target configuration with the contents of a previously
saved configuration file. Consider the following when entering the filename argument:
• The filename argument specifies the configuration file to be loaded into the target configuration.
• If the full path of the file is not specified, the default location is used. You should always save your
target configuration files to this location.
In the following example, a target configuration file is loaded into the current configuration session. The
current configuration session is therefore populated with the contents of the file:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# load disk0:myconfig.cfg
RP/0/RP0/CPU0:router(config)# show configuration
Building configuration... interface POS 0/3/0/0 description My Pos Interface ipv4
address 10.10.11.20 255.0.0.0
!end
Loading an Alternative Configuration at System Startup
When a Cisco CRS-1 router is reset or powered on, the last running configuration is loaded and used to
operate the router (see Figure 2-5).
You can also load an alternative configuration during system boot. See Appendix A, “ROM Monitor
Guide,” for information and instructions on this process.