SUMMARY STEPS
1.
enable
2.
configure terminal
3.
line vty 0 15
4.
password password
5.
end
DETAILED STEPS
Purpose
Command 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 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
For
password
, specify a string from 1 to 25 alphanumeric characters.
The string cannot start with a number, is case sensitive, and allows spaces
but ignores leading spaces. By default, no password is defined.
abcxyz543
Returns to privileged EXEC mode.
end
Example:
Switch(config-line)#
end
Step 5
Related Topics
Preventing Unauthorized Access, on page 19
Terminal Line Telnet Configuration, on page 23
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29434-01
29
Controlling Switch Access with Passwords and Privilege Levels
Setting a Telnet Password for a Terminal Line