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
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
Summary of Contents for IE 4000
Page 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Page 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Page 108: ...104 Configuring Switch Clusters Additional References ...
Page 128: ...124 Performing Switch Administration Additional References ...
Page 130: ...126 Configuring PTP ...
Page 140: ...136 Configuring CIP Additional References ...
Page 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Page 192: ...188 Configuring Switch Based Authentication Additional References ...
Page 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Page 298: ...294 Configuring VLANs Additional References ...
Page 336: ...332 Configuring STP Additional References ...
Page 408: ...404 Configuring DHCP Additional References ...
Page 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Page 490: ...486 Configuring SPAN and RSPAN Additional References ...
Page 502: ...498 Configuring Layer 2 NAT ...
Page 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Page 930: ...926 Configuring IP Unicast Routing Related Documents ...
Page 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Page 978: ...974 Dying Gasp ...
Page 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Page 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Page 996: ...992 Ethernet CFM ...
Page 1066: ...1062 Using an SD Card SD Card Alarms ...