|
|
This chapter provides helpful tips for understanding and configuring Cisco IOS software using the command-line interface (CLI) and contains the following sections:
For an overview of Cisco IOS software configuration, refer to the Configuration Fundamentals Configuration Guide.
For information on the conventions used in this guide, see the "Conventions" section.
Entering a question mark (?) at the system prompt displays a list of commands available for each command mode. You can also get a list of any command's associated keywords and arguments with the context-sensitive help feature.
To get help specific to a command mode, a command, a keyword, or an argument, use one of the following commands:
| Command | Purpose |
|---|---|
Obtain a brief description of the help system in any command mode. | |
Obtain a list of commands that begin with a particular character string. (No space between command and question mark.) | |
abbreviated-command-entry | Complete a partial command name. |
List all commands available for a particular command mode. | |
command ? | List command-associated keywords. (Space between command and question mark.) |
command keyword ? | List keyword-associated arguments. (Space between the keyword and question mark.) |
![]() |
Note Press Ctrl-P or the up arrow key to recall commands in the history buffer, beginning with the most recent command. Repeat the key sequence to recall successively older commands. Press Ctrl-N or the down arrow key to return to more recent commands in the history buffer after recalling commands with Ctrl-P or the up arrow key. Repeat the key sequence to recall successively more recent commands. The arrow keys function only on ANSI-compatible terminals such as VT100s. |
This section provides an example of how to display syntax for a command. The syntax can consist of optional or required keywords. To display keywords for a command, enter a question mark (?) at the configuration prompt or after entering part of a command followed by a space. The Cisco IOS software displays a list of keywords available along with a brief description of the keywords. For example, if you were in global configuration mode and wanted to see all the keywords for the arap command, you would type arap ?.
Table 1-1 shows how to use the question mark (?) to find the command options for the following two commands:
| Command | Comment |
|---|---|
Router> enable Password: <password> Router# | Enter the enable command and password to access privileged EXEC commands. You have entered privileged EXEC mode when the prompt changes to Router#. |
| Enter global configuration mode. You have entered global configuration mode when the prompt changes to Router(config)#. |
Router(config)# controller t1 ? <0-3> Controller unit number Router(config)# controller t1 1 Router(config-controller)# | Enter controller configuration mode by specifying the T1 controller that you want to configure using the controller t1 global configuration command. Enter a ? to display what you must enter next on the command line. In this example, you must enter a controller unit number from 0 to 3. You have entered controller configuration mode when the prompt changes to Router(config-controller)#. |
Router(config-controller)# ? Controller configuration commands: cablelength Specify the cable length for a DS1 link cas-group Configure the specified timeslots for CAS (Channel Associate Signals) channel-group Specify the timeslots to channel-group mapping for an interface clock Specify the clock source for a DS1 link default Set a command to its defaults description Controller specific description ds0 ds0 commands exit Exit from controller configuration mode fdl Specify the FDL standard for a DS1 data link framing Specify the type of Framing on a DS1 link help Description of the interactive help system linecode Specify the line encoding method for a DS1 link loopback Put the entire T1 line into loopback no Negate a command or set its defaults pri-group Configure the specified timeslots for PRI shutdown Shut down a DS1 link (send Blue Alarm) Router(config-controller)# | Enter a ? to display a list of all the controller configuration commands available for the T1 controller. |
Router(config-controller)# cas-group ? <0-23> Channel number Router(config-controller)# cas-group | Enter the command that you want to configure for the controller. In this example, the cas-group command is used. Enter a ? to display what you must enter next on the command line. In this example, you must enter a channel number from 0 to 23. When the system redisplays the command, it indicates that you must enter more keywords to complete the command. |
Router(config-controller)# cas-group 1 ? timeslots List of timeslots in the cas-group Router(config-controller)# cas-group 1 | After you enter the channel number, enter a ? to display what you must enter next on the command line. In this example, you must enter the timeslots keyword. When the system redisplays the command, it indicates that you must enter more keywords to complete the command. |
Router(config-controller)# cas-group 1 timeslots ? <1-24> List of timeslots which comprise the cas-group Router(config-controller)# cas-group 1 timeslots | After you enter the timeslots keyword, enter a ? to display what you must enter next on the command line. In this example, you must enter a list of timeslots from 1 to 24. You can specify timeslot ranges (for example, 1-24), individual timeslots separated by commas (for example 1, 3, 5), or a combination of the two (for example 1-3, 8, 17-24). The 16th time slot is not specified in the command line, because it is reserved for transmitting the channel signaling. When the system redisplays the command, it indicates that you must enter more keywords to complete the command. |
Router(config-controller)# cas-group 1 timeslots 1-24 ? service Specify the type of service type Specify the type of signaling Router(config-controller)# cas-group 1 timeslots 1-24 | After you enter the timeslot ranges, enter a ? to display what you must enter next on the command line. In this example, you must enter the service or type keyword. When the system redisplays the command, it indicates that you must enter more keywords to complete the command. |
Router(config-controller)# cas-group 1 timeslots 1-24 type ? e&m-fgb E & M Type II FGB e&m-fgd E & M Type II FGD e&m-immediate-start E & M Immediate Start fxs-ground-start FXS Ground Start fxs-loop-start FXS Loop Start sas-ground-start SAS Ground Start sas-loop-start SAS Loop Start Router(config-controller)# cas-group 1 timeslots 1-24 type | In this example, the type keyword is entered. After you enter the type keyword, enter a ? to display what you must enter next on the command line. In this example, you must enter one of the signaling types. When the system redisplays the command, it indicates that you must enter more keywords to complete the command. |
Router(config-controller)# cas-group 1 timeslots 1-24 type e&m-fgb ? dtmf DTMF tone signaling mf MF tone signaling service Specify the type of service <cr> Router(config-controller)# cas-group 1 timeslots 1-24 type e&m-fgb | In this example, the e&m-fgb keyword is entered. After you enter the e&m-fgb keyword, enter a ? to display what you must enter next on the command line. In this example, you can enter the dtmf, mf, or service keyword to indicate the type of channel-associated signaling available for the e&m-fgb signaling type. When the system redisplays the command, it indicates that you can enter more keywords or press <cr> to complete the command. |
Router(config-controller)# cas-group 1 timeslots 1-24 type e&m-fgb dtmf ? dnis DNIS addr info provisioned service Specify the type of service <cr> Router(config-controller)# cas-group 1 timeslots 1-24 type e&m-fgb dtmf | In this example, the dtmf keyword is entered. After you enter the dtmf keyword, enter a ? to display what you must enter next on the command line. In this example, you can enter the dnis or service keyword to indicate the options available for dtmf tone signaling. When the system redisplays the command, it indicates that you can enter more keywords or press <cr> to complete the command. |
Router(config-controller)# cas-group 1 timeslots 1-24 type e&m-fgb dtmf Router(config-controller)# | In this example, enter a <cr> to complete the command. |
The Cisco IOS user interface is divided into many different modes. The commands available to you at any given time depend on which mode you are currently in. By entering a question mark (?) at the system prompt, you can obtain a list of commands available for each command mode.
When you start a session on the router, you begin in user mode, often called EXEC mode. Only a limited subset of the commands are available in EXEC mode. To have access to all commands, you must enter privileged EXEC mode (also called enable mode). Normally, you must enter a password to enter privileged EXEC mode. From privileged mode, you can enter any EXEC command or enter global configuration mode. Most of the EXEC commands are one-time commands, such as show commands, which show the current status of something, and clear commands, which clear counters or interfaces. The EXEC commands are not saved across reboots of the router.
Table 1-2 summarizes the main command modes of the Cisco IOS software.
| Command Mode | Access Method | Prompt | Exit Method |
|---|---|---|---|
Log in. | | Use the logout command. | |
From user EXEC mode, use the enable EXEC command. | | To exit back to user EXEC mode, use the disable command. To enter global configuration mode, use the configure terminal privileged EXEC command. | |
From privileged EXEC mode, use the configure terminal privileged EXEC command. | | To exit to privileged EXEC mode, use the exit or end command or press Ctrl-Z. To enter interface configuration mode, enter an interface configuration command. | |
From global configuration mode, enter by specifying an interface with an interface command. | | To exit to global configuration mode, use the exit command. To exit to privileged EXEC mode, use the exit command or press Ctrl-Z. To enter subinterface configuration mode, specify a subinterface with the interface command. | |
From interface configuration mode, specify a subinterface with an interface command. | | To exit to global configuration mode, use the exit command. To enter privileged EXEC mode, use the end command or press Ctrl-Z. | |
From privileged EXEC mode, use the reload EXEC command. Press the Break key during the first 60 seconds while the system is booting. | | To exit to user EXEC mode, type continue. |
For more information about command modes, refer to the "Using the Command Line Interface" chapter of the Configuration Fundamentals Configuration Guide.
Almost every configuration command also has a no form. In general, use the no form to disable a function. Use the command without the keyword no to reenable a disabled function or to enable a function that is disabled by default. For example, IP routing is enabled by default. To disable IP routing, specify the no ip routing command, and specify ip routing to reenable it. The Cisco IOS software command references provide the complete syntax for the configuration commands and describes what the no form of a command does.
Configuration commands can also have a default form. The default form of a command returns the command setting to its default. Most commands are disabled by default, so the default form is the same as the no form. However, some commands are enabled by default and have variables set to certain default values. In these cases, the default command enables the command and sets variables to their default values. The Cisco IOS software command references describe what the default form of a command does if it is not the same as the no form.
Enter the copy system:running-config nvram:startup-config command to save your configuration changes to your startup configuration so that they will not be lost if there is a system reload or power outage. For example:
Router# copy system:running-config nvram:startup-config Building configuration...
It might take a minute or two to save the configuration. After the configuration has been saved, the following output appears:
[OK] Router#
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Mon Mar 6 13:54:25 PST 2000
Copyright 1989 - 2000©Cisco Systems Inc.