A command mode is a CLI access level that
-
determines which IOS XE commands are available,
-
secures and isolates different configuration functions, and
-
defines the privileges assigned to each user or process within the operating system.
Cisco IOS XE provides the same command modes as traditional Cisco IOS and supports these modes only in autonomous mode. You access Cisco IOS XE software through the CLI, which divides commands into several modes. The commands available to you always depend on your current mode. When you enter a question mark (?) at the CLI prompt, you can see a list of commands available in that mode.
When you log in to the CLI, you are in user EXEC mode. User EXEC mode contains only a limited subset of commands. To have access to all commands, you must enter privileged EXEC mode, normally by using a password. From privileged EXEC mode, you can issue any EXEC command—user or privileged mode—or you can enter global configuration mode. Most EXEC commands are one-time commands. For example, show commands show important status information, and clear commands clear counters or interfaces. The EXEC commands are not saved when the software reboots.
Configuration modes allow you to make changes to the running configuration. If you later save the running configuration to the startup configuration, these changed commands are stored when the software is rebooted. To enter specific configuration modes, you must start at global configuration mode. From global configuration mode, you can enter interface configuration mode and a variety of other modes, such as protocol-specific modes.
ROM monitor mode is a separate mode used when the Cisco IOS XE software cannot load properly. If a valid software image is not found when the software boots or if the configuration file is corrupted at startup, the software might enter ROM monitor mode.
This table describes how to access and exit various common command modes of the Cisco IOS XE software. It also shows examples of the prompts displayed for each mode.
Table 1.
Accessing and exiting command modes
| Command Mode |
Access Method |
Prompt |
Exit Method |
| User EXEC |
Log in. |
Router> |
Enter the logout command. |
| Privileged EXEC |
From user EXEC mode, enter the enable command. |
Router# |
To return to user EXEC mode, use the disable command. |
| Global configuration |
From privileged EXEC mode, enter the configure terminal command. |
Router(config)# |
To return to privileged EXEC mode from global configuration mode, enter the exit or end command. |
| Interface configuration |
From global configuration mode, specify an interface using an interface command. |
Router(config if)# |
To return to global configuration mode, use the ui command. To return to privileged EXEC mode, enter the end command. |
| Diagnostic |
The device boots up or accesses diagnostic mode in the following scenarios:
-
In some cases, diagnostic mode will be reached when the Cisco IOS process or processes fail. In most scenarios, however, the device will reload.
-
A user-configured access policy is configured using the transport-map command that directs a user into diagnostic mode.
-
A break signal (Ctrl-C, Ctrl-Shift-6, or the send break command) is entered and the device is configured to go to diagnostic mode when the break signal is received.
|
Router(diag)# |
If failure of the Cisco IOS process is the reason for entering diagnostic mode, the Cisco IOS problem must be resolved and the device rebooted to get out of diagnostic mode. If the device is in diagnostic mode because of a transport-map configuration, access the device through another port or by using a method that is configured to connect to the Cisco IOS CLI. |
| ROM monitor |
From privileged EXEC mode, enter the reload EXEC command. Press the Break key during the first 60 seconds while the system is booting. |
rommon#> |
To exit ROM monitor mode, manually boot a valid image or perform a reset with autoboot set so that a valid image is loaded. |