Chapter 1
Using the Command-Line Interface
Table 1-1
Command Modes Summary (continued)
Command Mode
Access Method
VLAN
From privileged EXEC mode,
configuration
enter the vlan database
command.
Line configuration
From global configuration mode,
specify a line by entering the line
command.
User EXEC Mode
After you access the device, you are automatically in user EXEC command mode. The EXEC commands
available at the user level are a subset of those available at the privileged level. In general, use the user
EXEC commands to change terminal settings temporarily, to perform basic tests, and to list system
information.
The supported commands can vary depending on the version of software in use. To view a
comprehensive list of commands, enter a question mark (?) at the prompt.
Switch> ?
Privileged EXEC Mode
Because many of the privileged commands configure operating parameters, privileged access should be
password-protected to prevent unauthorized use. The privileged command set includes those commands
contained in user EXEC mode, as well as the configure command through which you access the
remaining command modes.
If your system administrator has set a password, you are prompted to enter it before being granted access
to privileged EXEC mode. The password does not appear on the screen and is case sensitive.
The privileged EXEC mode prompt is the device name followed by the pound sign (
Switch#
Enter the enable command to access privileged EXEC mode:
Switch> enable
Switch#
The supported commands can vary depending on the version of software in use. To view a
comprehensive list of commands, enter a question mark (?) at the prompt.
Switch# ?
To return to user EXEC mode, enter the disable command.
OL-10102-01
Prompt
Switch(vlan)#
Switch(config-line)#
Catalyst 2950 and Catalyst 2955 Switch Command Reference
CLI Command Modes
Exit or Access Next Mode
To exit to privileged EXEC mode,
enter the exit command.
To exit to global configuration mode,
enter the exit command.
To return to privileged EXEC mode,
enter the end command, or press
Ctrl-Z.
).
#
1-3