User Guide

3-10
Cisco IOS XR Getting Started Guide
Chapter 3 Configuring Additional Router Features
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
Tip If you have not changed directories since login, you can display your default directory by entering the
pwd command.
In the following example, a target configuration file is saved to the root of disk0:
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 router is reset or powered on, the last running configuration is loaded and used to operate the
router.
You can also load an alternative configuration during system boot. See Appendix A, “Router Recovery
and Management with ROM Monitor, for information and instructions on this process.