Cisco Systems A9K24X10GETR Exiting a Configuration Submode, Ending a Configuration Session, 3-31

Models: A9KMOD80TR A9K24X10GETR ASR 9000

1 142
Download 142 pages 58.88 Kb
Page 67
Image 67
Exiting a Configuration Submode

Chapter 3 Configuring General Router Features

Managing Configuration Sessions

F I N A L D R A F T — C i s c o C o n f i d e n t i a l

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 RSP configuration submodes, you can return to return to the previous configuration mode and continue making configuration changes. To exit a configuration submode, type the exit command, as shown in the following example:

RP/0/RSP0/CPU0:router# configure

RP/0/RSP0/CPU0:router(config)# interface Gi 0/3/0/1

RP/0/RSP0/CPU0:router(config-if)# description this is my interface

RP/0/RSP0/CPU0:router(config-if)# ipv4 address 10.1.1.1 255.0.0.0

RP/0/RSP0/CPU0:router(config-if)# exit

RP/0/RSP0/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 RSP 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, type the root command, as shown in the following example:

RP/0/RSP0/CPU0:router# configure

RP/0/RSP0/CPU0:router(config)# router static

RP/0/RSP0/CPU0:router(config-static)# address-family ipv4 unicast

RP/0/RSP0/CPU0:router(config-static-afi)# root

RP/0/RSP0/CPU0:router(config)#

Ending a Configuration Session

You can use any of the following methods to end a configuration session:

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

Type the end command in any configuration mode or submode

Press Ctrl-Z.

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

 

 

Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide

 

 

 

 

 

 

OL-17502-01

 

 

3-31

 

 

 

 

 

Page 67
Image 67
Cisco Systems A9K24X10GETR Exiting a Configuration Submode, Returning Directly to Configuration Mode from a Submode, 3-31