How to recover the switch password

Source: Internet
Author: User
Tags config connect reset

As a basic component of network, the switch is one of the most common equipments of network, and its security has become the primary concern of many engineers and network administrators.

A switch is a network device that must be used in a unit local area network.

I work unit local area network use 15 Cisco Catalyst2950 switch. Management of the switch is an important responsibility of network administrators, in order to improve the security of the network, the switch password for network management is very important, once forgotten password will cause significant loss to the administrator.

This article takes Catalyst2950, Catalyst1900 series switches as an example to explain how to recover the switch password.

First, Catalyst 2950 series Switch password recovery

1. Establish a physical connection to the PC to the router, using the RS232 console line (with the switch belt) to connect the Router console interface and the PC's COM port.

2. Use HyperTerminal on your computer: Open start-Programs-attachments-communications-HyperTerminal-New HyperTerminal, first set the name for the new connection.

Then, set the connection with the port, generally choose COM1.

Then set the connection parameters, click the "Revert to Defaults" button, set the parameters as follows: Bits per second is 9600, data bits are 8, parity is zero, stop bit is 1, data flow control is none.

3. Open the switch power supply, the power-on 30 seconds, hold down the switch front panel to the left of the mode key.

4. Enter boot mode, show 3 options, enter "Flash_init" command, start to initialize Flash.

5. Enter the "Load_helper" command to perform the "Dir Flash:" Command.

6. Execute rename flash:config.text flash:config.old command to rename the configuration file containing password.

7. Execute the boot command to start the switch, which has a slightly longer execution time.

In the presence of "Would" to enter the initial configuration dialog? [yes/no]: "When, enter" no ".

The Enable command is then entered into the switch privilege mode to perform Switch#rename flash:config.old flash:config.text.

8. Perform copy Flash:config.text System:running-config, which is a copy of the configuration file to the current system, that is, restore the original switch configuration.

9. Use the Enable password or enable secret command to reset the password.

10. Use the Write memory command to save the configuration, reboot the switch, all OK.

Second, Catalyst1900 series switch password recovery

Connect your computer to the switch first and use HyperTerminal.

Then, within 30 seconds, hold down the mode key and restore the configuration to the factory value as prompted by the system.

Then enter the boot mode and enter or execute the related command in turn. Finally, use the Enable command to reset the password, save the configuration, restart it. There is no more to be said here.

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.