2-492
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2Cisco IOS Commands for the Catalyst 4500 Series Switches
username
username
To establish a username-based authentication system, use the username command.
username name secret {0 | 5} password
Syntax Description
Defaults No username-based authentication system is established.
Command Modes Global configuration
Command History
Usage Guidelines Use this command to enable enhanced password security for the specified username. This command
enables MD5 encryption on the password. MD5 encryption is a strong encryption method that is not
retrievable. You cannot use MD5 encryption with protocols that require clear-text passwords, such as
CHAP.
You can use this command for defining usernames that get special treatment. For example, you can
define an “info” username that does not require a password but that connects the user to a
general-purpose information service.
The username command provides both username and secret authentication for login purposes only.
The name argument can be only one word. White spaces and quotation marks are not allowed.
You can use multiple username commands to specify options for a single user.
For information about additional username commands, refer to the Cisco IOS Command Reference.
Examples This example shows how to specify an MD5 encryption on a password (warrior) for a username (xena):
Switch(config)# username xena secret 5 warrior
Switch(config)#
Related Commands enable password (refer to Cisco IOS documentation)
enable secret (refer to Cisco IOS documentation)
username (refer to Cisco IOS documentation)
name User ID of the user.
secret 0 | 5 Specifies the authentication system for the user; valid values are 0 (text
immediately following is not encrypted) and 5 (text immediately following is
encrypted using an MD5-type encryption method).
password Password of the user.
Release Modification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.