Using Cisco IOS XE Software
This chapter provides information about the Cisco IOS XE software used to configure the Cisco CSR 1000v and Cisco Cisco ISRv. The software for the Cisco CSR 1000v and Cisco ISRv uses standard Cisco IOS XE CLI commands and conventions.
Commands are not case sensitive. You can abbreviate commands and parameters if the abbreviations contain enough letters to be different from any other currently available commands or parameters.
The table below lists the keyboard shortcuts for entering and editing commands.
Keystrokes |
Purpose |
---|---|
Ctrl-B or the Left Arrow key |
Move the cursor back one character. |
Ctrl-F orthe Right Arrow key |
Move the cursor forward one character. |
Ctrl-A |
Move the cursor to the beginning of the command line. |
Ctrl-E |
Move the cursor to the end of the command line. |
Esc B |
Move the cursor back one word. |
Esc F |
Move the cursor forward one word. |
The history buffer stores the last 10 commands you entered. History substitution allows you to access these commands without retyping them, by using special abbreviated commands.
Command |
Purpose |
---|---|
Ctrl-P or the Up Arrow key |
Recall commands in the history buffer, beginning with the most recent command. Repeat the key sequence to recall successively older commands. |
Ctrl-N or the Down Arrow key |
Return to more recent commands in the history buffer after recalling commands with Ctrl-P or the Up Arrow key. |
Router# show history |
While in EXEC mode, list the last several commands you have just entered. |
The command modes available in the traditional Cisco IOS CLI are exactly the same as the command modes available in Cisco IOS XE.
Use the CLI to access Cisco IOS XE software. Because the CLI is divided into many different modes, the commands available to you at any given time depend on the mode that you are currently in. Entering a question mark (? ) at the CLI prompt allows you to obtain a list of commands available for each command 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, 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.
The table below 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.
Command Mode |
Access Method |
Prompt |
Exit Method |
---|---|---|---|
User EXEC |
Log in. |
|
Use the logout command. |
Privileged EXEC |
From user EXEC mode, use the enable EXEC command. |
|
To return to user EXEC mode, use the disable command. |
Global configuration |
From privileged EXEC mode, use the configure terminal privileged EXEC command. |
|
To return to privileged EXEC mode from global configuration mode, use the exit or end command. |
Interface configuration |
From global configuration mode, specify an interface using an interface command. |
|
To return to global configuration mode, use the exit command. To return to privileged EXEC mode, use the end command. |
Entering a question mark (? ) at the CLI prompt displays a list of commands available for each command mode. You can also get a list of keywords and arguments associated with any command by using the context-sensitive help feature.
To get help specific to a command mode, a command, a keyword, or an argument, use one of the commands listed in the table below.
Command |
Purpose |
---|---|
help |
Provides a brief description of the help system in any command mode. |
abbreviated-command-entry? |
Provides a list of commands that begin with a particular character string. (No space between command and question mark.) |
abbreviated-command-entry<Tab> |
Completes a partial command name. |
? |
Lists all commands available for a particular command mode. |
command ? |
Lists the keywords or arguments that you must enter next on the command line. (Space between command and question mark.) |