Exiting A Configuration Submode; Returning Directly To Configuration Mode From A Submode; Ending A Configuration Session - Cisco Router IOS XR Getting Started Manual

Cisco systems router getting started guide
Hide thumbs Also See for Router Cisco IOS XR:
Table of Contents

Advertisement

Chapter 4
Configuring General Router Features
In the preceding example, the show configuration command displays the target configuration, which
includes the failed configuration.
Note
The failed configuration is discarded if you exit global configuration mode or administration
configuration mode without recovering the configuration. After recovery, correct and commit the
configuration or save it to a file to avoid losing it.

Exiting a Configuration Submode

When you have finished configuration changes in a configuration submode, such as the interface or SDR
configuration submodes, you can return to return to the previous configuration mode and continue
making configuration changes. To exit a configuration submode, enter the exit command, as shown in
the following example:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# interface POS 0/3/0/1
RP/0/RP0/CPU0:router(config-if)# description this is my interface
RP/0/RP0/CPU0:router(config-if)# ipv4 address 10.1.1.1 255.0.0.0
RP/0/RP0/CPU0:router(config-if)# exit
RP/0/RP0/CPU0:router(config)#
If you use the exit command to exit global configuration or administration configuration mode, the
Note
router prompts you to save changes, discard changes, or cancel the action, as described in the next
section.

Returning Directly to Configuration Mode from a Submode

When you have finished configuration changes in a configuration submode, such as the interface or SDR
configuration submodes, you can skip all intermediate submodes and return to the top-level
configuration mode and continue making configuration changes. To return to configuration mode, enter
the root command, as shown in the following example:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# router static
RP/0/RP0/CPU0:router(config-static)# address-family ipv4 unicast
RP/0/RP0/CPU0:router(config-static-afi)# root
RP/0/RP0/CPU0:router(config)#

Ending a Configuration Session

You can use any of the following methods to end a configuration session:
If you enter the exit command in a configuration submode, the command returns you to the parent
Note
configuration level.
OL-10957-02
Enter the exit command in global configuration or administration configuration mode.
Enter the end command in any configuration mode or submode
Press Ctrl-Z.
Managing Configuration Sessions
Cisco IOS XR Getting Started Guide
4-37

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ios xr 3.4

Table of Contents