IOS Command Modes
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.
Config-vlan
While in global
configuration mode,
enter the vlan vlan-id
command.
VLAN configuration While in privileged
EXEC mode, enter the
vlan database
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 2950 Desktop Switch Software Configuration Guide
2-2
Prompt
Exit Method
Enter logout or quit.
Switch>
Enter disable or exit. Use this mode to verify
Switch#
To exit to privileged
Switch(config)#
EXEC mode, enter
exit or end, or press
Ctrl-Z.
To exit to global
Switch(config-vlan)#
configuration mode,
enter the exit
command. To return
to privileged EXEC
mode, press Ctrl-Z or
enter end.
Switch(vlan)#
To exit to privileged
EXEC mode, enter
exit.
To exit to global
Switch(config-if)#
configuration mode,
enter exit.
To return to
privileged EXEC
mode, press Ctrl-Z or
enter end.
To exit to global
Switch(config-line)#
configuration mode,
enter exit.
To return to
privileged EXEC
mode, press Ctrl-Z or
enter end.
Chapter 2
Using the Command-Line Interface
About This Mode
Use this mode to
Change terminal
•
settings.
Perform basic tests.
•
Display system
•
information.
commands that you have
entered. Use a password to
protect access to this mode.
Use this mode to configure
parameters that apply to the
entire switch.
Use this mode to configure
VLAN-specific parameters.
When VTP mode is
transparent, you can create
extended-range VLANs
(VLAN IDs greater than
1005) and save the
configurations in the switch
startup configuration file.
Use this mode to configure
VLAN-specific parameters
in the VLAN database.
Valid only for normal-range
VLANs (1 to 1005).
Use this mode to configure
parameters for the Ethernet
interfaces.
Use this mode to configure
parameters for the terminal
line.
78-11380-04