Lockable Command on CISCO Router/Switch

Command

Lockable

Use

Enables console session locking.

Syntax

Router(config-line)#lockable

Usage

  1. Before using the Lock command, you must first enable it by typing lockable under the console or VTY lines
  2. Type Lock
  3. You will be prompted to set a password. This is a one-time use password and shouldn’t be a password already on the router
  4. You will be asked to confirm the password. Confirm the password by re-entering it.
  5. To regain access to the router, type the password you have chosen.

Example

In this example the console is set to lockable. Afterwards, the user issues the lock command to lock his current session. When using lock to lock the session, the user is prompted to enter a password. Once the user unlocks the session by hitting enter, they have to use the password that was set previously to unlock.

R1(config)#line con 0
R1(config-line)#lockable
R1(config-line)#^Z
R1#
*Mar 1 00:08:15.311: %SYS-5-CONFIG_I: Configured from console by console

The lock command is used to lock the current session.

R1#lock
Password: ****
Again: ****

Locked

The user has to enter a password before unlocking the session.

Password: ****
R1#
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x