Chapter 2
Command-Line Interfaces
Working With the Command-Line Interface
These sections describe how to work with the switch CLI:
•
•
•
•
•
•
For additional information about the CLI, refer to the Command-Line Interfaces chapter in the
Catalyst 6500 Series Switch Command Reference.
Switch CLI Command Modes
The switch CLI supports two modes of operation: normal and privileged. Both modes are password
protected. Enter normal-mode commands for everyday system monitoring. Enter privileged-mode
commands to configure the system and perform basic troubleshooting.
After you log in, the system enters normal mode automatically, which gives you access to normal-mode
commands only. You can access privileged mode by entering the enable command followed by the
privileged-mode password. To return to normal mode, enter the disable command at the prompt.
This example shows how to enter privileged mode:
Console> enable
Enter Password: <password>
Console> (enable)
Designating Modules, Ports, and VLANs on the Command Line
Switch commands are not case sensitive. You can abbreviate commands and parameters as long as they
contain enough letters to be distinguished from any other currently available commands or parameters.
Catalyst 6500 series switches are multimodule systems. Commands that you enter from the CLI might
apply to the entire system or to a specific module, port, or VLAN.
Modules, ports, and VLANs are numbered starting with 1. The supervisor engine is module 1, residing
in slot 1. If your switch has a redundant supervisor engine, the supervisor engines reside in slots 1 and 2.
The Supervisor Engine 720 is module 5, residing in slot 5 (6- or 9-slot switches) or module 7, residing
in slot 7 (13-slot switches). With redundant Supervisor Engine 720s, the Supervisor Engine 720s reside
in slots 5 and 6 (6- or 9-slot switches) and slots 7 and 8 (13-slot switches).
To designate a specific module, use the module number.
Port 1 is always the left-most port. To designate a specific port on a specific module, the command
syntax is mod/port. For example, 3/1 denotes module 3, port 1. In some commands, such as set trunk
and set port channel, you can enter lists of ports.
To specify a range of ports, use a comma-separated list (do not insert spaces) to specify individual ports
or use a hyphen (-) between the port numbers to specify a range of ports. Hyphens take precedence over
commas.
Table 2-1
OL-8978-04
Switch CLI Command Modes, page 2-5
Designating Modules, Ports, and VLANs on the Command Line, page 2-5
Designating MAC Addresses, IP Addresses, and IP Aliases, page 2-6
Command Line Editing, page 2-6
History Substitution, page 2-7
Accessing Command Help, page 2-8
shows examples of how to designate ports and port ranges.
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
Catalyst Command-Line Interface
2-5