Use the enable password configuration command to set a local password to control access to the privileged EXEC mode. This command allows the administrator to input the password in encrypted format, which aids in transferring the enable password between devices without having to know the password.
| Format | enable password [encryption-type <encryption-type>] | [password [encryption-type <encryption-type>] [encrypted]] |
| Mode | Privileged EXEC |
| Parameter | Description |
|---|---|
| password | Password string. Range: 8 to 64 characters. |
| encryption-type | Specify the encryption algorithm type as MD5 or AES. The default value of encryption-type is AES. |
| encrypted | The password entered or copied from another switch configuration, and is already encrypted. The <password> parameter must be exactly 128 hexadecimal characters for AES, and 34 characters for MD5-Salt hash, if specified in encrypted format. |
Example: The following shows an example of the command.
(Switching) #enable password testtest (Switching) #enable password e8d63677741431114f9e39a853a15e8fd35ad059e2e1b49816c243d7e08152b052eafbf23b528d348cdba1b1b7ab91be842278e5e970dbfc62d16dcd13c0b864 encrypted
Example: The other option to change the enable password is to use interactive mode.
(Switching) #enable password Enter old password:******** Enter new password:******** Confirm new password:********