Understanding Command Modes
Table 2-1
and how to exit the mode. The examples in the table use the hostname Switch.
Table 2-1
Command Mode Summary
Mode
Access Method
User EXEC
Begin a session with
your switch.
Privileged EXEC
While in user EXEC
mode, enter the
enable command.
Global configuration
While in privileged
EXEC mode, enter
the configure
command.
VLAN configuration
While in global
configuration mode,
enter the
vlan vlan-id
command.
Interface
While in global
configuration
configuration mode,
enter the interface
command (with a
specific interface).
Line configuration
While in global
configuration mode,
specify a line with
the line vty or line
console command.
Catalyst 2928 Switch Software Configuration Guide
2-2
describes the main command modes, how to access each one, the prompt you see in that mode,
Prompt
Switch>
Switch#
Switch(config)#
Switch(config-vlan)#
Switch(config-if)#
Switch(config-line)#
Chapter 2
Using the Command-Line Interface
Exit Method
About This Mode
Enter logout or
Use this mode to
quit.
•
•
•
Enter disable to
Use this mode to verify
exit.
commands that you have
entered. Use a password to
protect access to this mode.
To exit to privileged
Use this mode to configure
EXEC mode, enter
parameters that apply to the
exit or end, or press
entire switch.
Ctrl-Z.
To exit to global
Use this mode to configure
configuration mode,
VLAN parameters. When VTP
enter the exit
mode is transparent, you can
command.
create extended-range VLANs
(VLAN IDs greater than 1005)
To return to
and save configurations in the
privileged EXEC
switch startup configuration
mode, press Ctrl-Z
file.
or enter end.
To exit to global
Use this mode to configure
configuration mode,
parameters for the Ethernet
enter exit.
ports.
To return to
For information about defining
privileged EXEC
interfaces, see the
mode, press Ctrl-Z
Interface Configuration Mode"
or enter end.
section on page
To configure multiple
interfaces with the same
parameters, see the
"Configuring a Range of
Interfaces" section on
page
To exit to global
Use this mode to configure
configuration mode,
parameters for the terminal
enter exit.
line.
To return to
privileged EXEC
mode, press Ctrl-Z
or enter end.
Change terminal settings.
Perform basic tests.
Display system
information.
"Using
12-9.
12-10.
OL-23389-01