Procedure
When you forget the password for logging in through the console port, use either of the following two methods to set a new password.
Logging In to the Device Through STelnet/Telnet to Set a New Password
It is recommended that you use STelnet V2 to log in to the device.
The following uses the command lines and outputs of logging in to the device using STelnet as an example. After logging in to the device through STelnet, perform the following operations.
# Take password authentication as an example. Set the password to Huawei@123.
<Huawei> system-view [Huawei] user-interface console 0 [Huawei-ui-console0] authentication-mode password [Huawei-ui-console0] set authentication password cipher Warning: The "password" authentication mode is not secure, and it is strongly re commended to use "aaa" authentication mode. Enter Password(<8-128>): Confirm password: [Huawei-ui-console0] return <Huawei> save
# Take AAA authentication as an example. Set the user name and password to admin123 and Huawei@123, respectively.
<Huawei> system-view [Huawei] user-interface console 0 [Huawei-ui-console0] authentication-mode aaa [Huawei-ui-console0] quit [Huawei] aaa [Huawei-aaa] local-user admin123 password irreversible-cipher Huawei@123 [Huawei-aaa] local-user admin123 privilege level 15 [Huawei-aaa] local-user admin123 service-type terminal [Huawei-aaa] return <Huawei> save
Clearing the Lost Password Using the BootROM Menu
You can use the BootROM menu of the device to clear the lost password for console port login. After starting the device, set a new password and save your configuration. Perform the following steps.
-
Connect the terminal to the console port of the device and restart the device. When the following message is displayed, press Ctrl+B and enter the BootROM password to enter the BootROM menu.
Press Ctrl+B to break auto startup ... 1 Enter Password: //Enter the BootROM password.
- In the BootROM menu, select Password Manager and then Clear the console login password.
- Then select the Return and Default Startup options in turn to restart the device.
- After the system starts, you can log in through the console port without password authentication. After logging in to the system, set an authentication mode and password for the console user interface as required. The configuration is similar to that of Logging In to the Device Through STelnet/Telnet to Set a New Password, and is not provided here.
More Information
- When you log in to the device through STelnet/Telnet to set a new password: Ensure that you have an STelnet/Telnet account and administrator rights.
- When you clear the lost password using the BootROM Menu, if you do not press Ctrl+B within the timeout (several seconds), you have to restart the router again.