10
Using the Command-Line Interface
Information About Using the Command-Line Interface
Help System
You can enter a question mark (?) at the system prompt to display a list of commands available for each command mode.
You can also obtain a list of associated keywords and arguments for any command, as shown in Table 2 on page 10.
Config-vlan While in global
configuration mode,
enter the
vlan vlan-id
command.
Switch(config-vlan)
#
To exit to global
configuration
mode, enter the
exit command.
To return to
privileged EXEC
mode, press Ctrl-Z
or enter end.
Use this mode to configure
VLAN parameters. When VTP
mode is transparent, you can
create extended-range VLANs
(VLAN IDs greater than 1005)
and save configurations in the
switch startup configuration
file.
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 parameters for VLANs 1
to 1005 in the VLAN database.
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-Z
or enter end.
Use this mode to configure
parameters for the Ethernet
ports.
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-Z
or enter end.
Use this mode to configure
parameters for the terminal
line.
Table 1 Command Mode Summary (continued)
Mode Access Method Prompt Exit Method About This Mode
Table 2 Help Summary
Command Purpose
help Obtain a brief description of the help system in any command mode.
abbreviated-command-entry? Obtain a list of commands that begin with a particular character string.
For example:
Switch# di?
dir disable disconnect
abbreviated-command-entry<Tab> Complete a partial command name.
For example:
Switch# sh conf<tab>
Switch# show configuration