3-3
Catalyst 2900 Series XL and Catalyst 3500 Series XL Software Configuration Guide
78-6511-08
Chapter 3 Getting Started with the CLI
Command Usage Basics
Table 3-1
Command Modes Summary
Modes
Access Method
Prompt
Exit Method
About This Mode
1
User EXEC
Begin a session with
your switch.
switch>
Enter logout or quit.
The EXEC commands available at
the user level are a subset of those
available at the privileged level.
Use this mode to
•
Change terminal settings.
•
Perform basic tests.
•
Display system information.
Privileged
EXEC
Enter the enable
command while in
user EXEC mode.
switch#
Enter disable to exit.
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. Because many of the
privileged commands configure
operating parameters, privileged
access should be
password-protected to prevent
unauthorized use.
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.
Global
configuration
Enter the configure
command while in
privileged EXEC
mode.
switch(config)#
To exit to privileged
EXEC mode, enter
exit or end, or press
Ctrl-Z.
Use this mode to configure
parameters that apply to your switch
as a whole.
VLAN
database
Enter the vlan
database command
while in privileged
EXEC mode.
switch(vlan)#
To exit to privileged
EXEC mode, enter
exit.
Use this mode to configure
VLAN-specific parameters.
Interface
configuration
Enter the interface
command (with a
specific interface)
while in global
configuration mode.
switch(config-if)#
To exit to global
configuration mode,
enter exit.
To exist to privileged
EXEC mode, enter
Ctrl-Z or end.
Use this mode to configure
parameters for the switch and LRE
CPE Ethernet ports.
Line
configuration
Specify a line with the
line vty or line
console command
while in global
configuration mode.
switch(config-line)#
To exit to global
configuration mode,
enter exit.
To exit to privileged
EXEC mode, enter
Ctrl-Z or end.
Use this mode to configure
parameters for the terminal line.
1.
For any of the modes, you can see a comprehensive list of the available commands by entering a question mark (?) at the prompt.