Use the password command in Line Configuration mode to specify a password on a line. The default configuration is no password is specified. This command allows the administrator to input the password in encrypted format, which aids in transferring the password between devices without having to know the password.
| Format | password [encryption-type <encryption-type>] | [password [encryption-type <encryption-type>] [encrypted]] |
| Mode | Line Config |
| Parameter | Definition |
|---|---|
| password | Password for this level. Range: 8-64 characters |
| encryption-type | Specify the encryption algorithm type as MD5 or AES. The default value 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 example specifies a password mcmxxyyy on a line.
(switch)(config-line)# password mcmxxyyy
Example: The following is another example of the command.
(Switching)(Config-line)# password testtest (Switching) (Config-line)# password e8d63677741431114f9e39a853a15e8fd35ad059e2e1b49816c243d7e08152b052eafbf23b528d348cdba1b1b7ab91be842278e5e970dbfc62d16dcd13c0b864 encrypted (Switching) (Config-line)# password Enter new password:******** Confirm new password:********
Example: The following is an example of the command in Line Configuration mode (ssh).
(Switching) (Config-ssh)#password e8d63677741431114f9e39a853a15e8fd35ad059e2e1b49816c243d7e08152b052eafbf23b528d348cdba1b1b7ab91be842278e5e970dbfc62d16dcd13c0b864 encrypted (Switching) (Config-ssh)#password Enter new password:******** Confirm new password:********