2-2
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 2 U sing t he Comman d-Line Inte rface
IOS Command Modes
Table 2-1 describes the main command modes, how to access each one, the prompt you see in that mode,
and how to exit the mode. The examples in the table use the host name Switch.
Table 2-1 Command Mode Summary
Mode Access Method Prompt Exit Method About This Mode
User EXEC Begin a session with
your sw itch . Switch> Enter logout or quit. Use this mode to
Change terminal
settings.
Perform basic te sts.
Display system
information.
Priv il e g ed EXEC While in user E XEC
mode, enter the
enable command.
Switch# Enter disable to exit. Use this mode to verify
comma nds that you have
entere d. Use a passwor d to
protect access to this mode.
Global configuration While in privileged
EXEC m ode , en ter
the configure
command.
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 the
entire switch.
Config-vlan While in global
configurat ion mode,
enter the
vlan vlan-id
command.
Switch(config-vlan)# To exit to global
configuration mode ,
enter the exit
command.
To ret urn to
privileged EXE C
mode, press Ctrl-Z or
enter end.
Use this mode to configure
VLAN parameters. When
VTP mode is transparent,
you ca n cr eat e
extended-range VLANs
(VLAN IDs greater than
1005) a nd save
configurations in the switch
startup configurat ion file.
Config-lre- sequenc e While i n global
configurat ion mode
enter lre sequence
<sequence_name>
config-seq# To exit to global
configuration mode ,
enter the exit
command.
To ret urn to
privileged EXE C
mode, press Ctrl-Z or
enter end.
Use this m o de to cr eate n ew
sequences or to add or delete
profiles in a user-defined
sequence .
Config-lre-controller While in global
configurat ion mode
enter lre
control ler
<controller_name>
config-controller# To exit to global
configuration mode ,
enter the exit
command.
To ret urn to
privileged EXE C
mode, press Ctrl-Z or
enter end.
Use this mode for all
upgrade related commands
(for furt her info rmati on on
upgradi ng, see the
Upgradin g L RE Sw itch
Firmware section on
page 10-15).