What should I do if I forget the Telnet login password of CE series switches

4

If you forget the Telnet login password of a CE series switch, log in to the switch through the console port and set a new password for Telnet login.

# Take password authentication for VTY0 login as an example. Set the password to Huawei@123. The configuration is as follows:
<HUAWEI> system-view
[~HUAWEI] user-interface vty 0
[~HUAWEI-ui-vty0] authentication-mode password
[*HUAWEI-ui-vty0] set authentication password
Please configure the login password (8-16)
Enter Password:   \\Enter the password.
Huawei@123
Confirm Password:   \\Enter the password again.
Huawei@123
[*HUAWEI-ui-vty0] user privilege level 15
[*HUAWEI-ui-vty0] commit
[~HUAWEI-ui-vty0] return
<HUAWEI> save
Warning: The current configuration will be written to the device. Continue? [Y/N]: y


# Take AAA authentication for VTY0 login as an example. Set the user name to admin123 and password to Huawei@123. The configuration is as follows:

<HUAWEI> system-view
[~HUAWEI] user-interface vty 0
[~HUAWEI-ui-vty0] authentication-mode aaa
[*HUAWEI-ui-vty0] quit
[*HUAWEI] aaa
[*HUAWEI-aaa] local-user admin123 password irreversible-cipher Huawei@123
[*HUAWEI-aaa] local-user admin123 service-type telnet
[*HUAWEI-aaa] local-user admin123 level 15
[*HUAWEI-aaa] commit
[~HUAWEI-aaa] return
<HUAWEI> save
Warning: The current configuration will be written to the device. Continue? [Y/N]: y

Other related questions:
What should I do if I forget the web system login password
If you forget or want to change the web system login password, log in to the device through the console port, Telnet, or STelnet and set a new password after login. NOTE: Telnet has security vulnerabilities. You are advised to log in to the device using STelnet V2. # Set the password to Huawei@123 for the user admin123. The configuration is as follows: system-view [Huawei] aaa [Huawei-aaa] local-user admin123 password irreversible-cipher Huawei@123 [Huawei-aaa] local-user admin123 service-type http [Huawei-aaa] local-user admin123 privilege level 15 [Huawei-aaa] return save

How do I restore the BootROM login password of an AR if I forget it
The method is as follows: You can log in to an AR through the console port to reset the BootROM login password. 1. Log in to the AR through the console port. 2. Restore the default password. [Huawei] diagnose [Huawei-diagnose] restore boot-password Info: Restore boot password success! [Huawei-diagnose] return 3. Run the reboot command in the user view to restart the AR. 4. When the message "Press Ctrl+B to break auto startup ..." is displayed, press Ctrl+B and enter the default password ("huawei" for V200R003C01 and earlier versions, and "Admin@huawei" for V200R005C00 and later versions) to enter the BootROM main menu. 5. Choose Password Manager > Modify the menu password from the BootROM main menu and change the password as prompted. 6. Choose Return > Default Startup from the BootROM main menu.

How to configure or change the password for console port login on an AR
You can use either of the following methods to configure or change the password for console port login on an AR: Method 1: Log in to the AR using Telnet or other remote login modes, and configure and change the console port login password. The following is an example (using Telnet): If you have a Telnet account and administrator rights, log in to the AR using Telnet, change the console port login password, and save the configuration. 1. Log in to the AR using a Telnet account. 2. Change the console port login password. The following example changes the authentication mode to password authentication and the password to huawei@123. [Huawei] user-interface console 0 [Huawei-ui-console0] authentication-mode password [Huawei-ui-console0] set authentication password cipher huawei@123 //Enter the password in interactive mode (V200R005C00 and later versions). [Huawei-ui-console0] return The following example changes the authentication mode to AAA authentication, user name to admin123, and password to Huawei@123. [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 3. Run the save command to save the configuration to prevent configuration loss after a restart. Method 2: Clear the console port login password on the BootROM menu and change the password. You can clear the password for console port login on the BootROM menu. The system can skip password check when you log in to it through the console port. After the AR restarts, change the console port login password and save the configuration. // After the password is cleared, no password is required for the first login through the serial port. If you do not promptly change the password, you cannot re-login through the serial port after logout. 1. Connect a serial cable to the AR and restart it. When the message "Press Ctrl+B to break auto startup ..." is displayed, press Ctrl+B and enter the default password ("huawei" for V200R003C01 and earlier versions, and "Admin@huawei" for V200R005C00 and later versions) to enter the BootROM main menu. 2. Choose Password Manager > Clear the console login password > Return > Default Startup on the BootROM main menu. On the page that is displayed, clear the console port login password. Note: When you log in through the console port after the system is started, you will encounter three conditions depending on the device model. Perform the following operations as required: a. If the system prompts you to enter the password when you log in, set a password. b. If the AR is running V200R005C30 or a later version, enter the default user name (admin) and password (Admin@huawei). c. If no authentication is required when you log in, configure the console port password after the login.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top