Summary Show This topic describe the command structure of Cisco IOS software. Start learning CCNA 200-301 for free right now!! Note: Welcome: This topic is part of Chapter 2 of the Cisco CCNA 1 course, for a better follow up of the course you can go to the CCNA 1 section to guide you through an order. This topic covers the basic structure of commands for the Cisco IOS. A network administrator must know the basic IOS command structure to be able to use the CLI for device configuration. A Cisco IOS device supports many commands. Each IOS command has a specific format, or syntax, and can only be executed in the appropriate mode. The general syntax for a command, shown in the figure, is the command followed by any appropriate keywords and arguments. Basic IOS Command Structure
After entering each complete command, including any keywords and arguments, press the Enter key to submit the command to the command interpreter. IOS Command Syntax CheckA command might require one or more arguments. To determine the keywords and arguments required for a command, refer to the command syntax. The syntax provides the pattern, or format, that must be used when entering a command. As identified in the table, boldface text indicates commands and keywords that are entered as shown. Italic text indicates an argument for which the user provides the value.
For instance, the syntax for using the description command is description string. The argument is a string value provided by the user. The description command is typically used to identify the purpose of an interface. For example, entering the command, description Connects to the main headquarter office switch, describes where the other device is at the end of the connection. The following examples demonstrate conventions used to document and use IOS commands:
If a command is complex with multiple arguments, you may see it represented like this: The command will typically be followed we a detailed description of the command and each argument. The Cisco IOS Command Reference is the ultimate source of information for a particular IOS command. IOS Help FeaturesThe IOS has two forms of help available: context-sensitive help and command syntax check. Context-sensitive help enables you to quickly find answers to these questions:
To access context-sensitive help, simply enter a question mark, ?, at the CLI. Command syntax check verifies that a valid command was entered by the user. When a command is entered, the command line interpreter evaluates the command from left to right. If the interpreter understands the command, the requested action is executed, and the CLI returns to the appropriate prompt. However, if the interpreter cannot understand the command being entered, it will provide feedback describing what is wrong with the command. Video – Context Sensitive Help and Command Syntax CheckClick Play in the figure to view a video demonstration of context-sensitive help and command syntax check. Hot Keys and Shortcuts
The IOS CLI provides hot keys and shortcuts that make configuring, monitoring, and troubleshooting easier. Commands and keywords can be shortened to the minimum number of characters that identify a unique selection. For example, the configure command can be shortened to conf because configure is the only command that begins with conf. An even shorter version, con, will not work because more than one command begins with con. Keywords can also be shortened. The table lists keystrokes to enhance command line editing.
Note: While the Delete key typically deletes the character to the right of the prompt, the IOS command structure does not recognize the Delete key.
When a command output produces more text than can be displayed in a terminal window, the IOS will display a “–More–” prompt. The following table describes the keystrokes that can be used when this prompt is displayed.
This table lists commands used to exit out of an operation. Video – Hot Keys and ShortcutsClick Play in the figure to view a video demonstration of the various hotkeys and shortcuts. Packet Tracer – Navigate the IOSIn this activity, you will practice skills necessary for navigating the Cisco IOS, including different user access modes, various configuration modes, and common commands used on a regular basis. You will also practice accessing the context-sensitive help by configuring the clock command. Lab – Navigate the IOS by Using Tera Term for Console ConnectivityIn this lab, you will complete the following objectives:
Ready to go! Keep visiting our networking course blog, give Like to our fanpage; and you will find more tools and concepts that will make you a networking professional. |