Support

What If I Forget Huawei Switch Password for Console Port Login?

Huawei Switch default passwords for console port login are in different mode, if switch like S1720 S2700 S5700 and S6720 versions are V100R006C00 – V100R006C05, or V200R001C00 – V200R009C00, there is no default user and password; if V200R010C00 – V200R012C00, user is admin and password is . You can set new password when you login via console port when you firstly power on the switch. When you forget the password for logging in through the console port, use either of the following two methods to set a new password.

Huawei Switch

Notice: Please backup the previous configurations in case of configuration cannot to be recovered during operation; also because switch will restart when setting new password, please avoid operate it under busy service time.

Method 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.

# 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

Method 2

Clearing the Lost Password Using the BootROM/BootLoad Menu

NOTE:

On S2720-EI, S5700S-28X-LI-AC, S5700S-52X-LI-AC, S5710-X-LI, S5720EI, S5720HI, S5720I-SI, S5720LI, S5720S-LI, S5720S-SI, S5720-SI, S5730-HI, S5730S-EI, S5730-SI, S6720-EI, S6720-HI, S6720-LI, S6720S-EI, S6720S-LI, S6720S-SI, and S6720-SI, you can clear the password for console port login through the BootLoad menu. On other switch models, you can clear the password through the BootROM menu.

Huawei campus switch

Procedures:

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

2, Enter BOOTROM password

Huawei box switch version older than V100R006C03, BootROM default password is huawei; later than V100R006C03 (included), Admin@huawei.com;

Huawei Chassis switch version older than V100R006C03, BootROM default password is 9300; later than V100R006C03 (included), Admin@huawei.com;

3, Enter 7, clear password for console user

Press ctr1+B to enter BOOTROM menu ... 2

password:

B0OTROM MENU

Boot with default mode

Enter: serfa1 submenu

Enter startup submenu

Enter ether net submenu

Enter filesystemsubmenu

Modify BOOTROM password

Clear password for console user

Reboot

Enter your choice (1-8): 7

Note: Clear password for console user? Yes or NOCY/N): y.

Clear password for console user successfully. Choose “1” to boot. then set a new password.

Note: DO not choose “8. Reboot” or power off the device. otherwise this operation will not take effect.

BOOTROM MENU

4, Enter 1, boot with default mode

Note: Make sure choose 1”, DO not choose“8. Reboot” or power off the device, otherwise this operation will not take effect.

BOOTROM MENU

Boot with default mode

Enter serial submenu

Enter startup submenu

Enter ethernet submenu

Enter filesystem submenu

Modify BOOTRON password

Clear password for console user

Reboot

Enter your choice (1-8): 1

Decompressing Image file … done

There 1s no record in region Exception.

PPI DEV s……………………OK

Hard system init …………….OK

Begin to start the system. please waiting ……

VOs VFS init …………….OK

startup F11e Check………………….OK

Vos monitor init……………………OK

CFM init advance…………………OK

PAT init …………………OK

VOS VFS init hind………………..OK

VRP_RoOt begin

VRP_InitfaizeTask begin…

Init the Device link………..OK

Task init begin… ………..OK

Recover configuration…OK

Press ENTER to get started.

Please configure the login password (6-16)

Enter password:

5, Set new password

system-view

Enter system view, return user view with Ctrl+Z.

[hws2]user

[hws2]user-interface con

[hws2]user-interface console 0

[hws2-ui-console0]authentication-mode password

[hws2-ui-console0]set authentication password cipher Huawei@123

[hws2-ui-console0]

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.)

6, Save configuration

The current configuration will be written to the device.

Are you sure to continue?[Y/N]y

Jan 1 2020 00:26:03-05:13 hws2 %%01CFM/4/SAVE(l)[27]:The user chose Y when deciding whether to save the configuration to the device.

Now saving the current configuration to the slot 0.

Info: Save the configuration successfully.

When you forget your switch password for console login, you can reset a new password as above to methods; and Huawei recommends that use STelnet V2 to log in to switch.

Related Posts