PurposeCommand or Action
Enters line configuration mode, and configures the console port (line
0) or the VTY lines (line 0 to 15).
Use one of the following:
Step 4
•
line console 0
•
line vty 0 15
Example:
Switch(config)# line console 0
or
Switch(config)# line vty 15
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 753
Username and Password Pairs, on page 757
Setting the Privilege Level for a Command
Follow these steps to set the privilege level for a command:
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
767
How to Control Switch Access with Passwords and Privilege Levels