Specifications
2-899
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco 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 configura tion mode
Usage Guidelines Use this command to enable enhanced password security for the specified username. This command
enables MD5 encryption on the passw ord. MD5 encryption is a stro ng encryption method tha t is not
retrievable. You cannot use MD5 encryption with protocols that requir e clear-text passwords, such as
CHAP.
You can use this command for defining usernames that get s pecial treatment. For example, you can
define an “info” username that does not re quire a password but that co nnects the user to a
general-purpose informati on 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 quota tion 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 I OS Command Reference.
Examples This example shows how to specify an MD5 encryption on a passwo rd (warrior) for a usernam e (xena):
Switch(config)# username xena secret 5 warrior
Switch(config)#
Related Commands
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 encry ption method).
password Password of the user.
Command Description
enable p ass wor d (refer to
Cisco IOS documen tation)
Sets a local password to control access to various privilege levels.
enable secret (refer to Cisco
IOS documentation)
Specifies an additional layer of security over the enable password
command.
username (refer to Cisc o IOS
documentation)
Establishes a username-based authentication system.