Professional Documents
Culture Documents
Login Password Management: About This Chapter
Login Password Management: About This Chapter
This section describes how to configure login passwords based on modular and
fixed switches of multiple versions.
2.1 What Is the Default Login Password?
2.2 Restore the Password for Console Port Login
2.3 Restore the Password for Telnet Login
2.4 Restore BootROM/BootLoad Password
2.5 Restore the Password for Web Login
Table 2-1 Default passwords for console port login in different versions
Version Default User Default Password Default Level
Name
● Telnet login
● Web login
Table 2-4 Default passwords for BootROM menu login to devices of different
versions
The password may be huawei on a device that has been upgraded to the current version
from an earlier one.
NOTICE
Telnet may bring security risks. You are advised to log in to the switch through
STelnet V2.
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 switch through STelnet, perform the
following configuration.
# 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 service-type terminal
[HUAWEI-aaa] return
<HUAWEI> save
If the switch has two MPUs, remove the standby MPU before performing the following
operations. After performing the following operations, install the standby MPU and run the
save command to ensure the consistent configuration on the active and standby MPUs.
If multiple switches are stacked, power off the member switches. After completing the
following operations on the master switch, run the save command to ensure that the
configurations on the master switch can be synchronized after other member switches are
started.
You can use the BootROM/BootLoad menu of the switch 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.
1. Connect the terminal to the console port of the switch and restart the switch.
When the following message is displayed, press Ctrl+B or Ctrl+E immediately
and enter the password to enter the BootROM/BootLoad menu.
Some models of fixed switches allow you to enter the BootROM/BootLoad menu by
pressing Ctrl+E. Perform operations as prompted on the screen.
The command outputs of different versions on different devices may be different.
Therefore, the command outputs on your device may be different from that provided in
this example.
● The default BootROM password of fixed switches is huawei in versions earlier than
V100R006C03 and Admin@huawei.com in V100R006C03 and later.
● The default BootROM password of modular switches is 9300 in V100R006 and earlier
versions, and Admin@huawei.com in versions after V100R006.
2. Select Clear password for console user on the BootROM/BootLoad menu to
clear the password for console port login.
3. Select Boot with default mode on the BootROM/BootLoad menu to start the
switch as prompted.
Related Content
Videos
Recover the Console Port Login Password.
The following uses the command lines of the S7700 in V200R008C00 as an example.
[HUAWEI-ui-vty0] return
<HUAWEI> save
# Take AAA authentication for VTY0 login as an example. Set the user name and
password to admin123 and Huawei@123 respectively.
<HUAWEI> system-view
[HUAWEI] user-interface vty 0
[HUAWEI-ui-vty0] protocol inbound telnet //By default, switches in V200R006 and earlier versions
support Telnet, and switches in V200R007 and later versions support SSH.
[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 privilege level 15
[HUAWEI-aaa] return
<HUAWEI> save
NOTICE
Telnet may bring security risks. You are advised to log in to the switch through the
console port or STelnet.
# Set the user name and password to admin123 and Huawei@123 respectively.
<HUAWEI> 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
<HUAWEI> save