Loading The Target Configuration From A File; Loading An Alternative Configuration At System Startup; Clearing All Changes To A Target Configuration - Cisco XR 12000 Series Getting Started Manual

Hide thumbs Also See for XR 12000 Series:
Table of Contents

Advertisement

Chapter 3
Configuring General Router Features

Loading the Target Configuration from a File

To populate the target configuration with the contents of a previously saved configuration file, go to
global configuration or administration configuration mode and enter the load filename command.
Consider the following when entering the filename argument:
The following example shows a target configuration file loaded into the current configuration session.
The current configuration session is populated with the contents of the file.
RP/0/0/CPU0:router(config)# load disk0:/usr/cisco/test.cfg
Loading.
77 bytes parsed in 1 sec (76)bytes/sec

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 load an alternative configuration during system boot. For information and instructions on this
process, see Cisco IOS XR ROM Monitor Guide for the Cisco XR 12000 Series Router.

Clearing All Changes to a Target Configuration

To clear changes made to the target configuration without terminating the configuration session, enter
the clear command in global configuration mode or administration configuration mode. This command
deletes any configuration changes that have not been committed.
In the following example, the user configures an interface but does not commit it. After reviewing the
changes to the target configuration with the show configuration command, the user decides to remove
the changes and start over by entering the clear command:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# interface POS 0/3/0/1
RP/0/0/CPU0:router(config-if)# description this is my interface
RP/0/0/CPU0:router(config-if)# ipv4 address 10.1.1.1 255.0.0.0
RP/0/0/CPU0:router(config-if)# shutdown
RP/0/0/CPU0:router(config-if)# exit
RP/0/0/CPU0:router(config)# show configuration
Building configuration...
interface POS0/3/0/1
description this is my interface
ipv4 address 10.1.1.1 255.0.0.0
shutdown
end
RP/0/0/CPU0:router(config)# clear
RP/0/0/CPU0:router(config)# show configuration
Building configuration...
end
OL-24755-01
Specifies the configuration file to be loaded into the target configuration.
If the full path of the file is not specified, the router attempts to load the file from the root directory
on the device.
Cisco IOS XR Getting Started Guide for the Cisco XR 12000 Series Router
Managing Configuration Sessions
3-61

Advertisement

Table of Contents
loading

Table of Contents