Purpose
Command or Action
Enables local password checking at login time. Authentication is
based on the username specified in Step 3.
login local
Example:
Switch(config-line)#
login local
Step 5
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 6
Verifies your entries.
show running-config
Example:
Switch#
show running-config
Step 7
(Optional) Saves your entries in the configuration file.
copy running-config startup-config
Example:
Switch#
copy running-config
Step 8
startup-config
Related Topics
Preventing Unauthorized Access, on page 17
Username and Password Pairs, on page 21
Setting the Privilege Level for a Command
Follow these steps to set the privilege level for a command:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
privilege mode level level command
4.
enable password level level password
5.
end
6.
copy running-config startup-config
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
OL-29048-01
31
Controlling Switch Access with Passwords and Privilege Levels
Setting the Privilege Level for a Command