Enable Authentication for Privileged EXEC Command Mode using CLI

With authentication enabled, you must enter a username and password to access Privileged EXEC command mode from User-EXEC command mode. The username and password is the same username and password you used to Telnet or SSH to the switch.

Note

Note

When you enable authentication for the Privileged EXEC CLI command mode, the changes do not affect any existing CLI sessions. For the changes to take effect, you must first log out from your current CLI session and log back in on a new session.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Enable authentication for Privileged EXEC CLI command mode:

    sys priv-exec-password

  3. Verify the configuration:

    show sys priv-exec-password

Example

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Switch:1(config)#sys priv-exec-password