17
4.
Configure password authentication for console login and set the password. You can also
configure a different login authentication mode.
<Sysname> system-view
[Sysname] line aux 1/1
[Sysname-line-aux1/1] authentication-mode password
[Sysname-line-aux1/1] set authentication password simple abc123
[Sysname-line-aux1/1] return
5.
Save the running configuration to use the configuration at the next reboot.
<Sysname> save
The current configuration will be written to the device. Are you sure? [Y/N] :y
Please input the file name(*.cfg)[flash:/default.cfg]
(To leave the existing filename unchanged, press the enter key):default.cfg
Validating file. Please wait....
Saved the current configuration to mainboard device successfully.
Using BootWare menus to change the console login
password
CAUTION:
•
Use this method only if you cannot access the CLI. A reboot is required to access BootWare menus.
•
Do not power off the device while you are using this method.
The procedure for using BootWare menus to change the console login password depends on
whether password recovery capability is enabled:
•
If password recovery capability is enabled, you can use the
Skip Authentication for Console
Login
option to skip console login authentication and configure a new password.
•
If password recovery capability is disabled, you can use the
Restore to Factory Default
Configuration
option to restore the factory-default configuration and configure a new
password.
To determine whether password recovery capability is enabled, use either of the following methods:
•
Telnet to the device and display the running configuration. If the
password-recovery enable
command is configured, password recovery capability is enabled.
<Sysname> display current-configuration
#
version 7.1.070, Release 7595
#
mdc Admin id 1
#
sysname Sysname
#
password-recovery enable
#
•
View the bootstrap information displayed when you access the extended BootWare menu. If the
message "Password recovery capability is enabled." is displayed, password recovery capability
is enabled.
Changing the console login password when password recovery capability is enabled
1.
Connect a configuration terminal to the console port of the device.