Hi, everyone! Today I’m going to introduce to you what can I do if I forget the password for login to S series switches through the console port.
A: When you forget the password for logging in through the console port, use either of the following two methods to set a new password.
1. Logging In to the Device Through STelnet/Telnet to Set a New Password.
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.
Step 1: 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
Step 2: 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
2. 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 the switch, set a new password and save your configuration. Perform the following steps.
Step 1: 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 or Ctrl+E to enter BootROM menu ... 2
password: //Enter the BootROM/BootLoad password.
Step 2: Select Clear password for console user on the BootROM/BootLoad menu to clear the password for console port login.
Step 3: Select Boot with default mode on the BootROM/BootLoad menu to start the device as prompted.
Step 4: 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. (In V200R009 and later versions, the authentication mode for console port login is non-authentication after the device starts, and the system does not ask you to configure an authentication password.)
Step 5: You can set an authentication mode and password for the console user interface according to service requirements. 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.
For details, see the S Series Switches FAQ .
Step 1: Log in to the enterprise technical support website at http://support.huawei.com/enterprise.
Step 2: Click Switches.
Step 3: Click the name of the product to be queried, for example, S7700.
Step 4: Choose Documentation> S7700&S9700 Series Switches FAQ to find the FAQ for your switch model.
Step 5: Open the FAQ. Choose Basic Configuration> What If I Forget the Password for Console Port Login in the navigation tree on the left, and follow the instructions.
S7700&S9700 Series Switches FAQ
http://support.huawei.com/enterprise/en/doc/EDOC0100547869?idPath=7919710|21782164|21782186|22318632|6805481
If you have any problems, please post them in our Community. We are happy to solve them for you!