Understanding Command Modes
Table 1-1
and how to exit the mode. The examples in the table use the hostname Switch.
Table 1-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 3750-X and 3560-X Switch Software Configuration Guide
1-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 1
Using the Command-Line Interface
Exit Method
About This Mode
Enter logout or quit. Use this mode to
•
•
•
Enter disable to exit. Use this mode to verify
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
enter the exit
VTP mode is transparent, you
command.
can create extended-range
VLANs (VLAN IDs greater
To return to
than 1005) and save
privileged EXEC
configurations in the switch
mode, press Ctrl-Z or
startup configuration file.
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
privileged EXEC
defining interfaces, see the
mode, press Ctrl-Z or
"Using Interface
enter end.
Configuration Mode" 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.
1-20.
1-22.
OL-25303-03