Common System Operations :Handling Loss of the Password for Console Port Login

Created: Apr 1, 2016 11:13:13Latest reply: Apr 1, 2016 11:16:39 1859 1 0 0

If you forget the password for logging in through the console port, use either of the following two methods to set a new password.

Logging In to the Switch Through STelnet or Telnet to Set a New Password

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

Clearing the Lost Password Through the BootROM Menu

On S5710-X-LI, S5700S-28X-LI-AC, S5700S-52X-LI-AC, S5720SI, S5720S-SI, S5720EI, S5720HI and S6720EI, you can clear the password for console port login through the BootLoad menu. On other fixed switches, you can clear the password through the BootROM menu.

NOTE:

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.

You can use the BootROM 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 immediately and enter the BootROM password to enter the BootROM menu.

    Information displayed on modular switches:

    Press Ctrl+B to enter boot menu ...  1 
    
    Password:       //Enter the BootROM password.

    Information displayed on fixed switches:

    Press Ctrl+B or Ctrl+E to enter BootROM menu ... 2
    password:      //Enter the BootROM password.
    NOTE:
    • Some models of fixed switches allow you to enter the BootROM menu by pressing Ctrl+E. Perform operations as prompted on the screen.

    • 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 menu to clear the password for console port login.
  3. Select Boot with default mode on the BootROM menu to start the switch as prompted.
    NOTE:

    Do not select Reboot; otherwise, the password cannot be cleared.

  4. After the switch is started, log in through the console port. Authentication is not required when you log in. Set a password as prompted after login.
  5. You can set an authentication mode and password for the console user interface according to service requirements. The configuration is similar to that of Logging In to the Switch Through STelnet or Telnet to Set a New Password, and is not provided here.

 

 

More Information: S Series Switches Common Operation Guide

  • x
  • convention:

user_1763575     Created Apr 1, 2016 11:16:39 Helpful(0) Helpful(0)

Thanks!
  • x
  • convention:

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!
Fast reply Scroll to top