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