Controlling Switch Access with Passwords and Privilege Levels
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
Switch# configure terminal
Step 2
enable password password
Example:
Switch(config)# enable password
secret321
Step 3
end
Example:
Switch(config)# end
Related Topics
Example: Setting or Changing a Static Enable Password, on page 35
Protecting Enable and Enable Secret Passwords with Encryption
Beginning in privileged EXEC mode, follow these steps to establish an encrypted password that users must
enter to access privileged EXEC mode (the default) or any privilege level you specify:
OL-29434-01
Protecting Enable and Enable Secret Passwords with Encryption
Purpose
Enters the global configuration mode.
Defines a new password or changes an existing password for access to privileged
EXEC mode.
By default, no password is defined.
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. It can contain the question mark (?) character if you precede the question
mark with the key combination Crtl-v when you create the password; for example,
to create the password abc?123, do this:
Enter abc.
Enter Crtl-v.
Enter ?123.
When the system prompts you to enter the enable password, you need not precede
the question mark with the Ctrl-v; you can simply enter abc?123 at the password
prompt.
Returns to privileged EXEC mode.
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
25