Examples
The following example shows the commands available after executing the username command:
RP/0/RP0/CPU0:router# config
RP/0/RP0/CPU0:router(config)# username user1
RP/0/RP0/CPU0:router(config-un)# ?
Clear the uncommitted configurationclear
Commit the configuration changes to runningcommit
Describe a command without taking real actionsdescribe
Run an exec commanddo
Exit from this submodeexit
User group in which this user will be a member ofgroup
Negate a command or set its defaultsno
Specify the password for the userpassword
Commands used to reach current submodepwd
Exit to the global configuration moderoot
Specify the secure password for the usersecret
Show contents of configurationshow
RP/0/RP0/CPU0:router(config-un)#
The following example shows how to establish the clear-text password password1 for the user name user1:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# username user1
RP/0/RP0/CPU0:router(config-un)# password 0 password1
The following example shows how to establish an MD5-secured secret for the user user1 in administration
configuration mode:
RP/0/RP0/CPU0:P1(admin-config)# username user1
RP/0/RP0/CPU0:P1(admin-config-un)# secret 0 lab
RP/0/RP0/CPU0:P1(admin-config-un)# commit
RP/0/RP0/CPU0:May 6 13:06:43.205 : config[65723]: %MGBL-CONFIG-6-DB_COMMIT_ADMIN :
Configuration committed by user 'cisco'. Use 'show configuration commit changes 2000000005'
to view the changes.
RP/0/RP0/CPU0:P1(admin-config-un)# exit
RP/0/RP0/CPU0:P1(admin-config)# show run username
username user1 secret 5 $1$QB03$3H29k3ZT.0PMQ8GQQKXCF0
!
Related Commands
DescriptionCommand
Defines a method list for authentication.aaa authentication , on page 13
Adds a user to a group.group (AAA), on page 32
Cisco IOS XR System Security Command Reference for the Cisco CRS Router, Release 4.1
OL-24740-01 121
Authentication, Authorization, and Accounting Commands
username