[All About Switches] 07 User Login Password Highlighted

Created: May 19, 2015 20:11:21Latest reply: Mar 20, 2019 23:44:22 53160 13 1 0

Are you still confused about the password for logging in to a switch? I'm going to offer answers to the following frequently asked questions:


555b24b2ba1bf.gifWhat is the default password of a switch?


555b24b2ba1bf.gifWhat should I do if I forget the password?


Today I will introduce how to cope with passwords. Everyone can become a password expert. 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 is the default password of a switch? 555b24b376ab1.jpg


When logging in to a switch, pay attention to the version and login mode of the switch. The password may be different, depending on the version and login mode. By default, no Telnet user is configured on the switch. When users log in to the switch using Telnet, Telnet users should be configured. When users log in to the switch using the console port, no default password is configured.


555b2a7805830.png 


Question 2: 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.pngThe 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 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


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: Admin@huawei.com). 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 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


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 huawei@123.


<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 huawei@123

[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 huawei@123.


<HUAWEI> system-view

[HUAWEI] aaa

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

[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 Admin@huawei.com 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.pngThat'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
  • x
  • convention:

yangyong  Visitor   Created May 11, 2018 14:50:08 Helpful(0) Helpful(0)

Thank you for sharing.
  • x
  • convention:

wissal  Enthusiast Technician   Created Jun 5, 2018 18:48:44 Helpful(0) Helpful(0)

useful document, thanks
  • x
  • convention:

Mysterious.color  Visitor   Created Oct 28, 2018 02:42:22 Helpful(0) Helpful(0)

Thank you
  • x
  • convention:

find what you love and let it kill you.
jounishida     Created Mar 20, 2019 23:44:22 Helpful(0) Helpful(0)

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
  • x
  • convention:

12
Back to list

Reply

Reply
You need to log in to reply to the post Login | Register

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 " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

Login and enjoy all the member benefits

Login
Fast reply Scroll to top