What if I forget the vro and vswitch password?

Source: Internet
Author: User
Tags cisco switch

What if I forget the vro and vswitch password?

 

In some enterprise networks, the passwords of some devices are often forgotten due to human factors. In this case, the administrator needs to recover or change the passwords of these devices one by one, the following configuration example shows how to change the password of these devices.

What should we do if the password of a Cisco switch is forgotten and needs to be changed again?

First, let's take a look at the switch. Generally, there is a button on the switch which is the "mode" key. Then we are linking the switch to the computer and powering on the switch, when the switch is powered on, immediately press the "mode" key on the switch and hold it for a while. Open the terminal simulation program SecureCRT and link it to the vswitch. When the "switch:" command prompt appears on the configuration page, you can perform the following configuration. (Some switches display the command prompt page only after they are long-pressed and released ).

// On the switch page: Enter the Flash_init command to initialize the program. (Change the suffix of Flash: config. text to Flash: config. old to skip the file loading because the password is stored in the file .)

 

 

// The post microcode will be guided during the loading process.

 

 

// In the red box below, do you want to enter the initial configuration dialog box? Answer no.

 

 

// Use show Flash to view the configuration information.

 

 

// Reload the Flash: config. text file to the memory.

 

 

// You can change the password this time. (The following remote plaintext password is written incorrectly and changed to the password setting on the console port)

 

 

// Use the write command to save the configuration, abbreviated as wr. Save the configuration and restart the vswitch. (You can also use the copy running-config startup-config command to save the file, abbreviated as copy run star .)

 

 

Command configuration for changing the vro password:

First, you must understand that the vro password is saved in startup-config. To bypass the startup-config configuration at startup, you must press and hold the Ctrl + Break key on the computer to interrupt IOS loading and introduce the router into ROM Monitor mode, changing the value of the configuration register 0x2102 to 0x2142 indicates that the startup-config configuration is ignored at startup.

1) restart the vro

Press Ctrl + Break.

2) modify the value of the configuration register:

The router (config) # confreg 0x2142

Router (config) # reset

3) modify the value of the configuration register and restart

Router (config) # reboot Huawei reboot

Router (config) # reload Cisco restart

4) after entering the configuration mode for the next time, manually load the configuration file back.

Router # copy startup-config running-config

5) run the show run command to check which vro password has been configured for your change.

6) modify the value of the Register

Machine (config) # config-register 0x2102

Router (config) # exit returns to the previous Mode

Router # copy running-config startup-config finally save the configuration (equivalent command write)

Note: Why should I change the configuration register value 0x2102 to 0x2142?

Because 0x represents the hexadecimal format, convert 2102 to the hexadecimal format of 0010.0001.0000.0010. The seventh digit on the right can control the sequence of the router startup. If this bit is 0, the configuration of startup-config is run at startup. If this bit is 1, the configuration of startup-config is bypassed at startup and enters Setup mode. If the number of this digit is 1, the value of the configured register is 0x2142.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.