Cisco Systems Cisco IOS XR Network Router User Manual


 
4-25
Cisco IOS XR Getting Started Guide
OL-10957-02
Chapter 4 Configuring General Router Features
Managing Configuration Sessions
Starting a Configuration Session
When you place the router in global configuration mode or administration configuration mode using the
configure command, a new target configuration session is created. The target configuration allows you
to enter, review, and verify configuration changes without impacting the running configuration.
Note The target configuration is not a copy of the running configuration; the target configuration contains only
the configuration commands entered during the target configuration session.
While in configuration mode, you can enter all Cisco IOS XR software commands that are supported in
that configuration mode. Each command is added to the target configuration. You can view the target
configuration by entering the show configuration command in configuration mode. The target
configuration is not applied until you enter the commit command, as described in the “Committing
Changes to the Running Configuration” section on page 4-34.
Target configurations can be saved to disk as nonactive configuration files. These saved files can be
loaded, further modified, and committed at a later time. For more information, see the “Saving the Target
Configuration to a File” section on page 4-33.
Examples
This example shows a simple owner SDR configuration session in which the target configuration is
created and previewed in global configuration mode:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# interface POS 0/2/0/1
RP/0/RP0/CPU0:router(config-if)# description faq
RP/0/RP0/CPU0:router(config-if)# ipv4 address 10.10.10.10 255.0.0.0
RP/0/RP0/CPU0:router(config-if)# show configuration
Building configuration...
interface POS0/0/0/1
description faq
ipv4 address 10.10.10.10 255.0.0.0
end
The following example shows a simple administration configuration session in which the target
configuration is created and previewed in administration configuration mode:
RP/0/RP0/CPU0:router# admin
RP/0/RP0/CPU0:router(admin)# configure
RP/0/RP0/CPU0:router(admin-config)# sdr test
RP/0/RP0/CPU0:router(admin-config-sdr:test)# location 0/1/SP
RP/0/RP0/CPU0:router(admin-config-sdr:test)# show configuration
Building configuration...
sdr test
location 0/1/SP
!
end