DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch#
configure terminal
Restricts the minimum and/or maximum length of the user
password. The minimum password length is from 4 to 127
[
no
]
userpassphrase
{
min-length min-length
|
max-length
max-length
}
Step 2
characters, and the maximum password length is from 80
to 127 characters.
Example:
switch(config)#
userpassphrase min-length 8
max-length 80
Displays the minimum and maximum length of the user
password.
(Optional)
show userpassphrase
{
length
|
max-length
|
min-length
}
Example:
Step 3
switch(config)#
show userpassphrase length
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 4
switch(config)#
copy running-config startup-config
Enabling the Password Prompt for the Username
You can configure the switch to prompt the user to enter a password after entering the username.
SUMMARY STEPS
1.
configure terminal
2.
password prompt username
3.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch#
configure terminal
Configures the switch to prompt the user to enter a password
after she enters the
username
command without the
password prompt username
Example:
Step 2
password
option or the
snmp-server user
command. The
switch(config)#
password prompt username
Password prompt username is enabled.
password that the user enters will be hidden. You can use
the
no
form of this command to disable this feature.
After providing the required options in the
username command, press enter.
User will be prompted for the username password
and password will be hidden.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
32
Configuring AAA
Enabling the Password Prompt for the Username