CLI Reference Guide-R02

Table Of Contents
Chapter 2
| Using the Command Line Interface
Entering Commands
– 81 –
To enter the other modes, at the configuration prompt type one of the following
commands. Use the exit or end command to return to the Privileged Exec mode.
For example, you can use the following commands to enter interface configuration
mode, and then return to Privileged Exec mode
Console(config)#interface ethernet 1/5
.
.
.
Console(config-if)#exit
Console(config)#
Command Line
Processing
Commands are not case sensitive. You can abbreviate commands and parameters
as long as they contain enough letters to differentiate them from any other
currently available commands or parameters. You can use the Tab key to complete
partial commands, or enter a partial command followed by the “?” character to
display a list of possible matches. You can also use the following editing keystrokes
for command-line processing:
Table 4: Configuration Command Modes
Mode Command Prompt Page
Access Control
List
access-list arp
access-list ip standard
access-list ip extended
access-list ipv6 standard
access-list ipv6 extended
access-list mac
Console(config-arp-acl)
Console(config-std-acl)
Console(config-ext-acl)
Console(config-std-ipv6-acl)
Console(config-ext-ipv6-acl)
Console(config-mac-acl)
386
368
368
374
374
380
Class Map class-map Console(config-cmap) 620
Interface interface {ethernet port | port-channel id |
vlan id}
Console(config-if) 395
Line line {console | vty} Console(config-line) 131
MSTP spanning-tree mst-configuration Console(config-mstp) 495
Policy Map policy-map Console(config-pmap) 623
Control Plane control-plane Console(config-cp) 637
Time Range time-range Console(config-time-range) 167
VLAN vlan database Console(config-vlan) 528
Table 5: Keystroke Commands
Keystroke Function
Ctrl-A Shifts cursor to start of command line.
Ctrl-B Shifts cursor to the left one character.
Ctrl-C Terminates the current task and displays the command prompt.
Ctrl-E Shifts cursor to end of command line.