1-4
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Chapter 1 Using the Command-Line Interface
CLI Command Modes
Interface Configuration Mode
Interface configuration commands modify the operation of the interface. Interface configuration
commands always follow a global configuration command, which defines the interface type.
Use the
interface
interface-id
command to access interface configuration mode. The new prompt means
interface configuration mode.
Switch(config-if)#
The supported commands can vary depending on the version of software in use. To view a
comprehensive list of commands, enter a question mark (
?
) at the prompt.
Switch(config-if)#
?
To exit interface configuration mode and to return to global configuration mode, enter the
exit
command.
To exit interface configuration mode and to return to privileged EXEC mode, enter the
end
command,
or press
Ctrl-Z
.
VLAN Configuration Mode
Use this mode to configure normal-range VLANs (VLAN IDs 1 to 1005) or, when VTP mode is
transparent, to configure extended-range VLANs (VLAN IDs 1006 to 4094). When VTP mode is
transparent, the VLAN and VTP configuration is saved in the running configuration file, and you can
save it to the switch startup configuration file by using the
copy running-config startup-config
privileged EXEC command. The configurations of VLAN IDs 1 to 1005 are saved in the VLAN database
if VTP is in transparent or server mode. The extended-range VLAN configurations are not saved in the
VLAN database.
Enter the
vlan
vlan-id
global configuration command to access config-vlan mode:
Switch(config)#
vlan 2000
Switch(config-vlan)#
The supported keywords can vary but are similar to the commands available in VLAN configuration
mode. To view a comprehensive list of commands, enter a question mark (
?
) at the prompt.
Switch(config-vlan)#
?
For extended-range VLANs, all characteristics except the maximum transmission unit (MTU) size must
remain at the default setting.
To return to global configuration mode, enter
exit
; to return to privileged EXEC mode, enter
end
.
All
the commands except
shutdown
take effect when you exit config-vlan mode.
Line Configuration Mode
Line configuration commands modify the operation of a terminal line. Line configuration commands
always follow a line command, which defines a line number. Use these commands to change terminal
parameter settings line-by-line or for a range of lines.
Use the
line vty
line_number
[
ending_line_number
] command to enter line configuration mode. The
new prompt means line configuration mode. The following example shows how to enter line
configuration mode for virtual terminal line 7:
Switch(config)#
line vty 0 7