- Preface
- Product Overview
- Using the Command Line
- Configuring the Interfaces
- IP Mobility
- Introduction to Radio Aware Routing and MANET
- Understanding and Configuring DLEP
- Configuring R2CP
- Configuring PPPoE
- OSPFv3 Address Families
- Configuring OSPFv3 for a MANET
- Configuring EIGRP in a MANET
- Understanding and Configuring IP Multiplexing
- Zeroization
- Command Reference
- System Message Overview
- Technical Support Reference
Using the Command Line
This chapter describes the Command Line Interface (CLI) you use to configure platforms utilizing
Cisco IOS 15.2(4) GC. This chapter includes the following major sections:
- Accessing the CLI
- Performing Command Line Processing
- Performing History Substitution
- Understanding Cisco IOS Command Modes
- Getting a List of Commands and Syntax
Note Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
Note The examples in this chapter are not platform specific.
Accessing the CLI
You can access the Cisco IOS CLI through the Gigabit Ethernet 0/0 interface using Secure Shell (SSh) or Telnet to establish a Virtual TeletYpe (VTY) session with the router.
After accessing the CLI on the router, the screen displays the following message:
Performing Command Line Processing
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.
You can scroll through the last 20 commands stored in the history buffer and enter or edit a command at the prompt. Table 2-1 lists the keyboard shortcuts for entering and editing commands.
|
|
---|---|
Press Ctrl-B or |
|
1.The Arrow keys function only on ANSI-compatible terminals, such as VT100s. |
Performing History Substitution
The history buffer stores the last 20 command lines you entered. History substitution enables you to access these command lines without retyping them. Table 2-2 lists the history substitution commands.
|
|
---|---|
Ctrl-P or the Up Arrow key2 |
Recalls commands in the history buffer, beginning with the most recent command. Repeat the key sequence to recall older commands successively. |
Returns to more recent commands in the history buffer after commands have been recalled with Ctrl-P or the Up Arrow key. Repeat the key sequence to recall more recent commands. |
|
2.The Arrow keys function only on ANSI-compatible terminals such as VT100s. |
Understanding Cisco IOS Command Modes
The Cisco IOS user interface has many different modes: user EXEC, privileged EXEC (enable), global configuration, interface, subinterface, and protocol-specific modes. The commands available to you are dependent on your current command mode. To get a list of the commands in a given mode, enter a question mark (?) at the system prompt. See the Getting a List of Commands and Syntax section for more information.
Note For complete information about Cisco IOS command modes, see the Cisco IOS Configuration Fundamentals Configuration Guide and the Cisco IOS Configuration Fundamentals Command Reference at the following URL: http://www.cisco.com/en/US/partner/products/ps11746/prod_command_reference_list.html
Working with Frequently Used Command Modes
When you start a session, you begin in user mode, also called user EXEC mode. Only a small subset of commands are available in EXEC mode. To have access to all commands, you must enter privileged EXEC mode, also called enable mode. To access the privileged EXEC mode, you must enter a password. When you are in the privileged EXEC mode, you can enter any EXEC command or access global configuration mode. Most EXEC commands are one-time commands, such as show commands, which display the current configuration status, and clear commands, which reset counters or interfaces. The EXEC commands are not saved when the Cisco router is rebooted.
The configuration modes allow you to make changes to the running configuration. If you save the configuration, these commands are stored when you reboot the router. You must start in global configuration mode. From global configuration mode, you can enter interface configuration mode, subinterface configuration mode, and a variety of protocol-specific modes.
Table 2-3 lists and describes frequently used Cisco IOS modes.
The Cisco IOS command interpreter, called the EXEC, interprets and runs the commands you enter. You can abbreviate commands and keywords by entering just enough characters to make the command unique from other commands. For example, you can abbreviate the show command to sh and the configure terminal command to config t.
When you type exit, the router backs out one level. To exit configuration mode completely and return to privileged EXEC mode, press Ctrl-Z.
Using the “do” Command
EXEC-level commands, such as the show commands, are not listed on the same modes as the subcommand modes, such as SEU configuration. Use this command to execute EXEC commands (such as show, clear, and debug commands) while configuring your routing device. After the EXEC command is executed, the system will return to the configuration mode you were using.
To execute an EXEC-level command from global configuration mode or any configuration submode, use the do command in any configuration mode:
|
|
---|---|
Allows execution of an EXEC-level command from global configuration mode or any configuration submode. |
Getting a List of Commands and Syntax
In any command mode, you can get a list of available commands by entering a question mark (?).
To obtain a list of commands that begin with a particular character sequence, enter those characters followed by the question mark (?). Do not include a space before the question mark. This form of help is called word help, because it completes a word for you.
To list keywords or arguments, enter a question mark in place of a keyword or argument. Include a space before the question mark. This form of help is called command syntax help, because it reminds you which keywords or arguments are applicable based on the command, keywords, and arguments you have already entered.