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 To Google
Scroll to top