When you forget Huawei S9700 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.
Ensure that you have an STelnet/Telnet account and administrator rights. 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 Huawei@123 [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/BootLoad Menu
You can use the BootROM/BootLoad menu of the device to clear the lost password for console port login. After starting Huawei switch, 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/BootLoad password to enter the BootROM/BootLoad menu.
Press Ctrl+B to enter boot menu ... 1 Password: //Enter the BootROM password.
- Select Clear password for console user on the BootROM/BootLoad menu to clear the password for console port login.
- Select Boot with default mode on the BootROM/BootLoad menu to start the device as prompted.
- After the device is started, log in through the console port. Authentication is not required when you log in. Set a password as prompted after login.
- You can set an authentication mode and password for the console user interface according to service requirements.