3-2
Catalyst 2950 Desktop Switch Software Configuration Guide
78-11380-03
Chapter 3 Using the Command-Line Interface
IOS Command Modes
Table 3-1 Command Mode Summary
Mode Access Method Prompt Exit Method About This Mode
User EXEC Begin a session with
your switch.
Switch>
Enter logout or quit. Use this mode to
• Change terminal
settings.
• Perform basic tests.
• Display system
information.
Privileged EXEC While in user EXEC
mode, enter the enable
command.
Switch#
Enter disable or exit. Use this mode to verify
commands that you have
entered. Use a password
to protect access to this
mode.
VLAN configuration While in privileged
EXEC mode, enter the
vlan database
command.
Switch(vlan)#
To exit to privileged
EXEC mode, enter
exit.
Use this mode to
configure
VLAN-specific
parameters.
Global configuration While in privileged
EXEC mode, enter the
configure command.
Switch(config)#
To exit to privileged
EXEC mode, enter
exit or end,orpress
Ctrl-Z.
Use this mode to
configure parametersthat
apply to the entire switch.
Interface
configuration
While in global
configuration mode,
enter the interface
command (with a
specific interface).
Switch(config-if)#
To exit to global
configuration mode,
enter exit.
To return to
privileged EXEC
mode, press Ctrl-Zor
enter end.
Use this mode to
configure parameters for
the Ethernet interfaces.
Line configuration While in global
configuration mode,
specify a line with the
line vty or line console
command.
Switch(config-line)#
To exit to global
configuration mode,
enter exit.
To return to
privileged EXEC
mode, press Ctrl-Zor
enter end.
Use this mode to
configure parameters for
the terminal line.