Setting a Telnet Password for a Terminal Line
Beginning in user EXEC mode, follow these steps to set a Telnet password for the connected terminal line:
Before You Begin
•
Attach a PC or workstation with emulation software to the switch console port, or attach a PC to the
Ethernet management port.
•
The default data characteristics of the console port are 9600, 8, 1, no parity. You might need to press
the Return key several times to see the command-line prompt.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
line vty 0 15
4.
password password
5.
end
6.
show running-config
7.
copy running-config startup-config
DETAILED STEPS
PurposeCommand or Action
If a password is required for access to privileged EXEC
mode, you will be prompted for it.
Note
Enters privileged EXEC mode.
enable
Example:
Switch> enable
Step 1
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 2
Configures the number of Telnet sessions (lines), and enters line
configuration mode.
line vty 0 15
Example:
Switch(config)# line vty 0 15
Step 3
There are 16 possible sessions on a command-capable Switch. The
0 and 15 mean that you are configuring all 16 possible Telnet
sessions.
Sets a Telnet password for the line or lines.
password password
Step 4
Example:
Switch(config-line)# password abcxyz543
For password, specify a string from 1 to 25 alphanumeric characters.
The string cannot start with a number, is case sensitive, and allows
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
764
How to Control Switch Access with Passwords and Privilege Levels