CLI Reference Guide-R01

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 5: 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)
388
370
370
376
376
382
Class Map class-map Console(config-cmap) 624
Interface interface {ethernet port | port-channel id |
vlan id}
Console(config-if) 397
Line line {console | vty} Console(config-line) 130
MSTP spanning-tree mst-configuration Console(config-mstp) 499
Policy Map policy-map Console(config-pmap) 627
Control Plane control-plane Console(config-cp) 641
Time Range time-range Console(config-time-range) 166
VLAN vlan database Console(config-vlan) 532
Table 6: 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.