Controlling Switch Access with Passwords and Privilege Levels
Configuration Examples for Setting Passwords and Privilege
Levels
Example: Setting or Changing a Static Enable Password
This example shows how to change the enable password to l1u2c3k4y5. The password is not encrypted and
provides access to level 15 (traditional privileged EXEC mode access):
Switch(config)# enable password l1u2c3k4y5
Related Topics
Setting or Changing a Static Enable Password, on page 24
Example: Protecting Enable and Enable Secret Passwords with Encryption
This example shows how to configure the encrypted password $1$FaD0$Xyti5Rkls3LoyxzS8 for privilege
level 2:
Switch(config)# enable secret level 2 5 $1$FaD0$Xyti5Rkls3LoyxzS8
Related Topics
Protecting Enable and Enable Secret Passwords with Encryption, on page 25
Additional Password Security, on page 22
Example: Setting a Telnet Password for a Terminal Line
This example shows how to set the Telnet password to let45me67in89:
Switch(config)# line vty 10
Switch(config-line)# password let45me67in89
Related Topics
Setting a Telnet Password for a Terminal Line, on page 28
Terminal Line Telnet Configuration, on page 23
Example: Setting the Privilege Level for a Command
This example shows how to set the configure command to privilege level 14 and define SecretPswd14 as the
password users must enter to use level 14 commands:
Switch(config)# privilege exec level 14 configure
OL-29434-01
Configuration Examples for Setting Passwords and Privilege Levels
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
35