Chapter 4 Configuring General Router Features

Managing Configuration Sessions

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)#

Note If you use the exit command to exit global configuration or administration configuration mode, the 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:

Enter the exit command in global configuration or administration configuration mode.

Enter the end command in any configuration mode or submode

Press Ctrl-Z.

Note If you enter the exit command in a configuration submode, the command returns you to the parent configuration level.

 

 

Cisco IOS XR Getting Started Guide

 

 

 

 

 

 

OL-10957-02

 

 

4-37

 

 

 

 

 

Page 123
Image 123
Cisco Systems Cisco IOS XR manual Exiting a Configuration Submode, Returning Directly to Configuration Mode from a Submode