2-6
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 2 Command-Line Interfaces
Catalyst Command-Line Interface
VLANs are identified using the VLAN ID, which is a single number that is 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 on the Switch”
section on page 22-7
.
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 30, “Configuring DNS.”
Command Line Editing
You can scroll through the last 20 commands that are 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.
Table 2-1
Designating Ports and Port Ranges
Example
Function
2/1
Specifies port 1 on module 2.
3/4-8
Specifies ports 4, 5, 6, 7, and 8 on module 3.
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-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.