Quick Reference Guide
Using the Command Line Interface | 33
hostname (Config-policy-classmap)#
Class Map Mode: This mode consists of class creation/deletion and matching commands. The
class match commands specify Layer 2, Layer 3 and general match criteria. Use the class-map
class-map-name commands to access the QoS class map configuration mode to configure QoS class
maps. The prompt sequence is:
hostname (Config)# class-map <class-map-name>
hostname (Config class-map)#
Router OSPF Config Mode: In this mode, you can access the router OSPF configuration
commands. The prompt sequence is:
hostname (Config)# router ospf
hostname (Config router)#
Router RIP Config Mode: In this mode, you can access the router RIP configuration
commands. The prompt sequence is:
hostname (Config)# router rip
hostname (Config router)#
MAC Access List Config Mode. Use the MAC Access-List Config mode to create a MAC
access-List and to enter the mode containing mac access-list configuration commands. The prompt
sequence is:
hostname (Config)#mac-access-list extended name
hostname
(Config-mac-access-list)#
TACACS Config Mode. Use this mode to configure the connection parameters to a
TACACS+ user authentication server.
Stack Config Mode. Use the nC OR command to access the Stack Config mode for stacking S50
switches.
VLAN Mode. (formally called the Interface Vlan Config mode, or more simply, the Interface Vlan
mode) This mode groups all the commands pertaining to VLANs.
Command Prompt: hostname (conf-if-vl-vlan-id)#
Flow of CLI Operation
1. You log into the CLI session and enter the User Exec mode. In the User Exec mode, the “host-
name
>” prompt is displayed on the screen.
The parsing process is initiated whenever you type a command and press
ENTER. The command tree is searched for the command of interest. If the com-
mand is not found, the output message indicates where the offending entry begins.
For instance, the Privileged Exec mode has the command
show arp brief. If you
attempt to execute the command, but you enter an extra “p” in “arpp”, then the
Note: Before Release 2.3, the VLAN mode was accessed from the Privileged Exec mode.
With Release 2.3, the mode is accessed from the Global Config mode by entering the
command interface vlan vlanid.