
2-3
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
Chapter 2 Using the Command-Line Interface
Switch CLI Command Modes
Accessing the CLI Through Telnet
Before you can open a Telnet session to the switch, you must set the IP address (and in some cases, the
default gateway) for the switch. For information about setting the IP address and default gateway, see
Chapter 3, “Configuring the Switch IP Address and Default Gateway.”
Note
For more information about using Telnet, see the
“Using Telnet” section on page 20-6
.
To access the switch CLI from a remote host using Telnet, follow these steps:
Step 1
Make sure that the switch is on and is properly configured with an IP address and default gateway, if
necessary.
Step 2
Using the appropriate application or command on your host system, Telnet to the switch using the IP
address or the DNS host name of the switch. (You must configure DNS on the switch and on your
network name server in order to use DNS host names. For more information on DNS, see
Chapter 38,
“Configuring DNS.”
)
This example shows how to use the telnet command to connect to a switch with the DNS host name
Catalyst_1:
unix_host% telnet Catalyst_1
Trying 172.16.10.10...
Connected to Catalyst_1.
Escape character is '^]'.
Cisco Systems Console
Enter password:
After you successfully connect to the switch using Telnet, you can use normal-mode commands to
monitor the switch or enter privileged mode to change the configuration.
Switch CLI Command Modes
The switch CLI supports two modes of operation:
•
Normal (also called login or user mode)
•
Privileged (also called enable mode)
Both modes are password protected. Use normal-mode commands for system monitoring. Use
privileged-mode commands to change the system configuration.
Note
For complete information on configuring passwords and controlling access to the switch, see
Chapter 30,
“Configuring Switch Access Using AAA.”