Got it

User login password [All About Switches 07] Highlighted

Latest reply: Aug 5, 2020 13:38:04 117470 23 10 0 1

This post is related to the user login password, as part of the the All About Switches section on our Forum. Please see more details as you read further down.


Are you still confused about the user login password of a switch? I'm going to offer answers to the following frequently asked questions:


555b24b2ba1bf.gif What is the default password of a switch?


            S Series Switch Default Usernames and Passwords: Enterprise Network or Carrier


555b24b2ba1bf.gif What should I do if I forget the password?


            TechNotes: What If I Forget the Passwords of S5700 Switches


Today I will introduce how to cope with passwords. Everyone can become a password expert and find the user login password. 555b24b2d0c5e.jpg

 

555b24b2e8ae8.jpg

                                             555b24b30a3ab.jpg

Knowledge point 1. In what ways can users log in to a switch? 555b24b32165a.jpg


Users can log in to a switch using common ways such as the console port, Telnet and the Web system.

 

Knowledge point 2. How is a PC connected to the console port on a switch? 555b24b32165a.jpg


555b24d5ce066.png 


Knowledge point 3. How are login users authenticated? 555b24b32165a.jpg


?  AAA mode: Login users are authenticated based on the user name and password.


?  Password mode: Login users are authenticated based on the password.


?  None: Authentication is not performed.


555b24b2e8ae8.jpg

                                      555b24b3603ce.jpg


 


Question 1. What should I do if I forget the password? 555b24b39090a.jpg


?  If you have not changed the default password of the switch, find the default password in the preceding table.


?  If you have changed the default password of the switch or no default password is configured on the switch, you can restore the password in different methods based on the login mode.


555b268a2ec10.png The operation interfaces of switches may be different.


1. Restoring the Password for Login Through the Console Port


Method 1: Log in to the switch using Telnet and change the password for login through the console port.


If you have a Telnet account and user rights of an administrator, log in to the switch using Telnet, change the password for login through the console port, and save the configuration.


Step 1. Log in to the switch via a Telnet account.


Step 2. Change the password for login through the console port.


For example, the password authentication is configured and the password is H*****@***.


<HUAWEI> system-view

[HUAWEI] user-interface console 0

[HUAWEI-ui-console0] authentication-mode password

[HUAWEI-ui-console0] set authentication password cipher h*****@***

[HUAWEI-ui-console0] return


Step 3. Run the save command to save the configuration and prevent configuration loss after the restart.


Method 2: Clear the password on the console port using BootROM and then set the password for login through the console port.


Note: If the switch has two MPUs, remove the standby MPU before restarting the switch. After performing the following operations, install the standby MPU and run the save command to ensure that the configurations on the active and standby MPUs are the same.


You can use the switch's BootROM menu to clear the password for console port login and skip password check when logging in to the switch using the console port. After the switch starts, you can change the password for console port login and save the configuration.


Step 1. Connect a host to the switch through a serial cable and restart the switch. When the message "Press Ctrl+B to enter Boot Menu..." is displayed, press Ctrl+B and enter the password (default password: A****@******). The BootROM main menu is displayed.


Step 2: Choose Clear password for console user under the BootROM main menu to clear the password for login through the console port.


Step 3. Choose Boot with default mode under the BootROM main menu to restart the switch.


Note: Do not choose Reboot; otherwise, the password fails to be cleared.


Step 4. After the switch starts, you can log in to the switch through the console port without entering the password only this time. After logging in to the switch, configure a new console port login password immediately. This following uses password authentication configuration as an example and the password is set to h*****@***.


<HUAWEI> system-view

[HUAWEI] user-interface console 0

[HUAWEI-ui-console0] authentication-mode password

[HUAWEI-ui-console0] set authentication password cipher h*****@***

[HUAWEI-ui-console0] return


Step 5. Run the save command to save the configuration and prevent configuration loss after the restart.


2. Restoring the Telnet Login Password


If you forget the Telnet login password, log in to the switch in other ways (for example, through the console port) and change the Telnet login password.


Step 1. Log in to the switch in other ways (for example, through the console port).


Step 2. Change the user password.


For example, configure AAA authentication in VTY user interfaces 0 to 4 and set the password of user huawei to h*****@***.


<HUAWEI> system-view

[HUAWEI] user-interface vty 0 4

[HUAWEI-ui-vty0-4] authentication-mode aaa

[HUAWEI-ui-vty0-4] quit

[HUAWEI] aaa

[HUAWEI-aaa] local-user huawei password irreversible-cipher h*****@***

[HUAWEI-aaa] local-user huawei service-type telnet

[HUAWEI-aaa] local-user huawei privilege level 3



3. Restoring the Password for Login Through the Web System


If you forget the password for login through the Web system, log in to the switch in other ways (for example, through the console port) and change the password for login through the Web system.


Step 1. Log in to the switch in other ways (for example, through the console port).


Step 2. Change the user password.


For example, set the password of user huawei to h*****@***.


<HUAWEI> system-view

[HUAWEI] aaa

[HUAWEI-aaa] local-user huawei password irreversible-cipher h*****@***

[HUAWEI-aaa] local-user huawei service-type http

[HUAWEI-aaa] local-user huawei privilege level 3 


4. Restoring the BootROM Login Password


If you forget the password for login through the BootROM menu, log in to the switch in other ways (for example, through the console port) and change the password for login through the BootROM menu.


Step 1. Log in to the switch through the console port.


Step 2. Run the reset boot password command in any view to restore the default password A****@****** for login through the BootROM menu.


Step 3. Run the reboot command in the user view to restart the switch.


Step 4. When the message "Press Ctrl+B to enter Boot Menu..." is displayed during the restart, press Ctrl+B and enter the default password. The BootROM main menu is displayed.


Step 5: Choose Modify bootrom password under the BootROM main menu to change the password as prompted.

 

555b279318fac.png That's all for today. For more questions about user login to switches, feel free to contact me.


★★★Summary★★★ All About Huawei Switch Features and Configurations

This article contains more resources

You need to log in to download or view. No account? Register

x

The post is synchronized to: All About Switch (feature)

Thank you for sharing.
View more
  • x
  • convention:

useful document, thanks
View more
  • x
  • convention:

Thank you
View more
  • x
  • convention:

I have the switch S3328TP-SI and when enter in BOOTROM not apperead option " Clear password for console user".
Look what apperead when i press Ctrl+B and passwor "www.huawei.com":


BIOS LOADING ...
Copyright (c) 2008-2009 HUAWEI TECH CO., LTD.
S3328 (Ver315, Nov 4 2009, 15:18:00)

Press Ctrl+B to enter BOOTROM menu ... 2
password:
BOOTROM MENU

1. Boot with default mode
2. Enter serial submenu
3. Enter startup submenu
4. Display flash files
5. Modify BOOTROM password
6. Reboot

Enter your choice(1-6):

Someone can help-me to clear passwor of console?
thanks
View more
  • x
  • convention:

Hi all,

Now it's very convenient to use the iknow to search for a default password or query the password restoration method.

http://support.huawei.com/iknow/

iknow


View more
  • x
  • convention:

Very useful information!!
View more
  • x
  • convention:

Thank you for sharing
View more
  • x
  • convention:

I have Huawei S2326-TP-EI version V100R006C03, I can’t get the password to enter through the console port. I have access to BootRom and downloaded the switch with the default parameters. Tried the following passwords: huawei, www.huawei.com, admin, Admin, Admin@huawei.com, admin@huawei.com, admin123, Huawei@123. What am I doing wrong?
View more
  • x
  • convention:

Thanks for sharing!
View more
  • x
  • convention:

thanks
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.