2-6
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 2 Command-Line Interfaces
Catalyst Command-Line Interface
VLANs are identified using the VLAN ID, a single number associated with the VLAN. To specify a list
of VLANs, use a comma-separated list (do not insert spaces) to specify individual VLANs or a hyphen
(-) between the VLAN numbers to specify a range of VLANs.
Table 2-2
shows examples of how to designate VLANs and VLAN ranges.
Designating MAC Addresses, IP Addresses, and IP Aliases
Some commands require a MAC address, IP address, or IP alias, which must be designated in a standard
format. The MAC address format must be six hexadecimal numbers separated by hyphens, as shown in
the following example:
00-00-0c-24-d2-fe
The IP address format is 32 bits, written as 4 octets separated by periods (dotted decimal format) that
are made up of a network section, an optional subnet section, and a host section, as shown in the
following example:
126.2.54.1
If you have configured IP aliases on the switch, you can use IP aliases in place of the dotted decimal IP
address. This is true for most commands that use an IP address, except for commands that define the IP
address or IP alias. For information on using IP aliases, see the
“Defining IP Aliases” section on
page 20-6
.
If DNS is configured on the switch, you can use DNS host names in place of IP addresses. For
information on configuring DNS, see
Chapter 28, “Configuring DNS.”
Command Line Editing
You can scroll through the last 20 commands stored in the history buffer, and enter or edit the command
at the prompt.
Table 2-3
lists the keyboard shortcuts to use when entering and editing switch commands.
5/2,5/4,6/10
Specifies ports 2 and 4 on module 5 and port 10 on module 6
3/1-2,4/8
Specifies ports 1 and 2 on module 3 and port 8 on module 4
Table 2-1
Designating Ports and Port Ranges (continued)
Example
Function
Table 2-2
Designating VLANs and VLAN Ranges
Example
Function
10
Specifies VLAN 10
5,10,15
Specifies VLANs 5, 10, and 15
10-50,500
Specifies VLANs 10 through 50, inclusive, and VLAN 500
Table 2-3
Command-Line Editing Keyboard Shortcuts
Keystroke
Function
Ctrl-A
Jumps to the first character of the command line.
Ctrl-B or the left arrow key
Moves the cursor back one character.
Ctrl-C
Escapes and terminates prompts and tasks.