Cisco router and switch password recovery

Source: Internet
Author: User

Show Running-config SH Run

Show Startup-config sh star//view configuration File//

Copy running-config startup-config//Save config file//

Erase nvram//delete config file//

-----------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------

Password settings for routers and switches


Configure the console password

In the global mode

Line Console 0

passwd Password

Login


Configure Privileged mode passwords

In the global mode

Enable passwd password ==enable secret password//secret configured password is ciphertext, when two passwords are configured, secret configuration is in effect//

In the global mode

Service password-encryption//bar password all encrypted for ciphertext//

------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------

Password Recovery for routers

1. Restart the router and press ctrl+breack at the same time, the router will enter ROM monitor mode

2.confreg 0x2142//Change the value of the configuration register to 2142//

3.reset

4.copy startup-config running-config//Enter configuration mode, load configuration file over//

5. Use SH run to see which passwords are configured by the router and change//

6.config-register 0x2102//Change the value of the register back, press Exit to save exit//

7.copy Running-config Startup-config

--------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

Password recovery for the switch

1. Unplug the switch and restart

2. Plug in, immediately press and hold the switch and which "mode" key, when you see "switch" to release "mode"

3.flash_init//Initialize flash//

4.rename Flash:config.text flash:config.old//Can be viewed via dir config.text//

5.boot//Restart//

6.rename flash:config.old flash:config.text//Bar configuration command to come back//

7.copy flash:config.text system:running-config//load config file//

-----------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------

Conditions for remote administration

1 Configure the management address on the IP address switch

2 Configuring the Vty password

In the global mode

Line vty 0 4//0 4 flag allows simultaneous access to vty0,vty1,vty2,vty3,vty4 five virtual ports//

passwd Password

Login

Configure Privileged passwords

can be remotely via Telnet

If the switch and the administrator IP are not in the consent network segment, you need to configure the switch's default gateway

In the global mode

IP Default-gateway 192.168.2.254


Cisco router and switch password recovery

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.